# Re: \[PATCH\] input: change SysRq keycode for systems without SysRq key

- From: Dmitry Torokhov \<dmitry.torokhov@gmail.com\>
- Date: 2007-07-19 21:00:23 
- List: linux-input
- Page: https://ratatoskr.run/linux-input/2007/07/8908081
- Thread: https://ratatoskr.run/linux-input/2007/07/8907992/t.md

```text
On 7/19/07, Dmitry Torokhov [ref] wrote:
> On 7/18/07, federico ferri [ref] wrote:
> > Dmitry Torokhov ha scritto:
> > > EVIOCSKEYCODE support for HID (USB) went in in 2.6.22-rc1.
> > >
> > > There is keyfuzz utility you can use to play with keymaps for a
> > > particular device:
> > >
> > >       http://0pointer.de/lennart/projects/keyfuzz/
> > hi Dmitry,
> > I tried keyfuzz, but I'm not able to change sysrq key (I get an invalid
> > argument error).
> > I paste some log of my tries:
> >
> > # uname -r
> > 2.6.22
> >
> > # for i in /dev/input/event*; do echo -e ">>>> $i:"; keyfuzz -i -d$i; done
> >  >>>> /dev/input/event0:
> > evdev driver version 1.0.0.
> > device name: PC Speaker
> >  >>>> /dev/input/event1:
> > evdev driver version 1.0.0.
> > device name: Mitsumi Electric Apple Extended USB Keyboard
> >  >>>> /dev/input/event2:
> > evdev driver version 1.0.0.
> > device name: Mitsumi Electric Apple Extended USB Keyboard
> >  >>>> /dev/input/event3:
> > evdev driver version 1.0.0.
> > device name: Microsoft Basic Optical Mouse
> >
> > # echo "84 183" | keyfuzz -s -d/dev/input/event1
> > EVIOCGKEYCODE: Invalid argument
> >
> > # echo "84 183" | keyfuzz -s -d/dev/input/event2
> > EVIOCGKEYCODE: Invalid argument
> >
> > # echo "0x05d 0x0b7" | keyfuzz -s -d/dev/input/event2
> > EVIOCGKEYCODE: Invalid argument
> >
> > (strace gives me no useful info)
> >
>
>
> What is 84? For SUB you map a "usage" to a keycode and regular key
                        ^^^ USB

> usages start with 0x00070000...
>
> --
> Dmitry
>


-- 
Dmitry
```
