I have a strange problem under SuSE 9.1 trying to use setkeycodes to define an unknown >>key and then using xmodmap to map it to the key I want. Here is what I have done:
Not sure if this answers my own question or not... Anyone? Maybe the reason it works in FC2 is because of the newer X.org? Problem: ~~~~~~~~ Ok, evtest shows everything correctly, but I get incorrect keysyms assigned to these keys in XFree86. Solution: ~~~~~~~~~ While the 2.6 kernel tries to use the "standard" scancodes as much as possible, it is not posible for all keys. A good solution is to modify the XKB keyboard definition to match the scancodes one can obtain from 'showkeys -s', after the above problem is solved and the keys work in evtest. An better solution would be to write a kernel-2.6 keyboard definition, as the scancodes are the same for every type of keyboard, independend of the hardware. This is called hardware abstraction. A perfect solution would be to get X to use the event protocol. If you're an XFree86 developer, you might consider this.