Annoying keys on AT keyboards
Heya,
My Dell laptop has a good bunch of keys that show this behaviour:
Apr 25 11:23:10 snoogens kernel: atkbd.c: Unknown key pressed (translated set 2, code 0x87 on isa0060/serio0). Apr 25 11:23:10 snoogens kernel: atkbd.c: Use 'setkeycodes e007 <keycode>' to
make it known.
Given that all Dell laptops generate this kind of behaviour, that all the keys match on all the models (I know about), would it be possible/sane to add some code to the AT keyboard driver to handle those keys when the DMI matches?
I can think of a number of reasons why it would be a bad idea:
- overly complicated driver that handles a lot of "broken" hardware cases
- slippery-slope (next it's for IBM/Sony/whatever laptops/keyboards, etc.)
But I'd rather have this done completely in kernel space, where it belongs (after all, that's the point of drivers to handle hardware through common interfaces).
Any comments, ideas on how to do this as cleanly and unobtrusively?
Cheers
Signature · 1 line
Bastien Nocera <[email protected]>
Hi,
Quoted 11 lines · Bastien Nocera
Heya,
My Dell laptop has a good bunch of keys that show this behaviour:
Apr 25 11:23:10 snoogens kernel: atkbd.c: Unknown key pressed (translated set 2, code 0x87 on isa0060/serio0). Apr 25 11:23:10 snoogens kernel: atkbd.c: Use 'setkeycodes e007 <keycode>' tomake it known.
Given that all Dell laptops generate this kind of behaviour, that all the keys match on all the models (I know about),
Hmm, mine does not generate e007...
Quoted 3 lines
would it be
possible/sane to add some code to the AT keyboard driver to handle those keys when the DMI matches?
No, because it is not guaranteed that user will not plug external AT keyboard with different keys assigned to the same keycodes. For drivers like atkbd that may drive several devices at once DMI solution will not work reliably (but it will work and is used for fixed hardware, such as wistron_btns).
I just put:
setkeycodes e001 171
setkeycodes e002 172
setkeycodes e003 187
setkeycodes e004 189
in my rc.local several years ago and that is it. Distributions may do that for users automatically during installation.
Signature · 1 line
Dmitry