xserver-xorg-input-evdev eats my eject key

John Hughes john at Calva.COM
Sun Mar 9 05:00:55 PDT 2008


Daniel Stone wrote:
> On Sat, Mar 08, 2008 at 10:36:52AM +0100, John Hughes wrote:
>   
>> I've got a Sony Vaio TX3 laptop, with some extra buttons, running Debian 
>> Sid, kernel 2.6.24.
>>
>> The sony-laptop module makes a new input device to represent these extra 
>> buttons.  This is nicely detected by HAL and so evdev:
>>
>> [...]
>>
>> One of which has a "dvd eject" symbol on it.  When pressed the keycode 
>> KEY_FN_E (0x1e1) is produced.
>>
>> After much debugging I've found that it gets at least as far as 
>> EvdevKeyProcess  in evdev_key.c, but some time after that the key 
>> disappears into a black hole - xev &c don't see it.
>>
>> Where should I be looking?
>>     
>
> Unfortunately this is next-to-impossible to do within the protocol:
> http://bugs.freedesktop.org/show_bug.cgi?id=x11-keycode-limit
>
> (0x1e1 = 481)
>   
Oh what joy.

So it seems the best thing would be to teach sony-laptop not to use 
keycodes > 255  (Like maybe it should be producing KEY_EJECTCD when I 
press the button with a nice "eject CD" label.




More information about the xorg mailing list