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

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

From: federico ferri <hidden>
Date: 2007-07-19 21:39:37

Dmitry Torokhov ha scritto:
quoted
# 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
What is 84? For SUB you map a "usage" to a keycode and regular key
usages start with 0x00070000...
84 == 0x5d (KEY_SYSRQ)
183 is the code generated from my keyboard when I press F13

I don't get what "usage" means here; my keyboard has no fancy/multimedia 
keys (except 4 buttons_ volumeup, volume-down, mute, eject, but those 
belong to another event device)

the keyfuzz manual page says:
       The  scancode/keycode  translation  tables  as  read from STDIN
       [...]. All other lines have to contain a scancode and a keycode
       number separated by white space. The numbers may be specified
       either in decimal or in hexadecimal notation. [...]

I typed my commands with the above in mind.
anyway, if I try to load the bundled translation tables (r.g. the 
default one) to my event device, I get the same error.

do you see some solution? perhaps can you supply an example of 
re-mapping F13 to SysRq?

-- 
Federico Ferri
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help