Bug: changing keycodes generated by sony-laptop doesn't work

From: John Hughes
Date: Sun Oct 16 2011 - 08:30:07 EST


Something about the way sony-laptop sends scancodes and keycodes to the input subsystem doesn't work.

1. using the /lib/udev/keymap utility to show the scancodes and keycodes generated by the Sony Vaio keys device shows them out-of sync:

start keymap, press EJECT (mapped by sony-laptop to FN_E) twice, then AV MODE (mapped to PROG1) twice:

# /lib/udev/keymap -i input/event5
Press ESC to finish
scan code: 0x00 key code: fn_e
scan code: 0x1B key code: fn_e
scan code: 0x1B key code: prog1
scan code: 0x20 key code: prog1
^C

Notice that each time a key is pressed the scancode shown is the scancode of the previous key.

2. Changing the keycode for a given scancode has no effect:

# /lib/udev/keymap input/event5 0x1B ejectcd
setting scancode 0x1B to key code 161
# /lib/udev/keymap -i input/event5
Press ESC to finish
scan code: 0x00 key code: fn_e
scan code: 0x1B key code: fn_e
^C


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/