Thread (22 messages) 22 messages, 6 authors, 2007-08-17

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

On 7/19/07, Dmitry Torokhov [off-list ref] wrote:
On 7/18/07, federico ferri [off-list ref] wrote:
quoted
Dmitry Torokhov ha scritto:
quoted
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help