lkml.org 
[lkml]   [2011]   [Oct]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Bug: changing keycodes generated by sony-laptop doesn't work
On 10/16/2011 02:30 PM, John Hughes wrote:
> Something about the way sony-laptop sends scancodes and keycodes to
> the input subsystem doesn't work.

I forgot to say that this is in 2.6.32.

Further testing shows that it is possible to change the keycode
generated for a particular scancode but that the mapping is wrong.

For example:

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

All the scancodes are 7 off, setting the mapping for scancode 0x14
changes the mapping for what the driver claims is scancode 0x1B.

I guess this has something to do with a confusion between the jog-dial
scancodes and the Vaio keys scancodes.





\
 
 \ /
  Last update: 2011-10-16 15:33    [W:0.058 / U:3.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site