[EDIT 1]: Oh, games-util/joystick comes with a nice toolie called evtest, which shows every keyboard event, even Fn!!!
[EDIT 2]: Unfortunately, the keycodes reported by evtest do not match with what xmodmap actually changes... They're randomly different!
[EDIT 3]: OK, so it is actually very simple: the keypad is locked in numlock off, even though the keymap recognises the key [clear] as NumLock, and the numlock LED in my laptop goes on when I press it. So it behaves exactly as described in the xorgcfg reference figure, where it shows how to move the pointer with the keyboard if the mouse is not working. Now I must find a way to be able to make numlock work...
[EDIT 4]: Finally, a christmas gift! Both the internal and external keypads are working as expected. Set /etc/conf.d/keymaps with
Code: Select all
EXTENDED_KEYMAPS="keypad"Code: Select all
# /etc/init.d/keymap restart[EDIT 5]: All that made NumLock work correctly in the console, but it is still the same in X.
[EDIT 6]: It's getting warmer...
Code: Select all
Option "XkbTypes" "default+numpad(microsoft)"[EDIT 6]: Can't reproduce it anymore. No advance in X. Argh.
[EDIT 7]: getscancodes does not work in my system. AAARRRRGGGGHHH.
[EDIT 8]: Oh, finally reproduced the nice behaviour I got in Edit 4. I have to press shift+numlock to have the keypad working as expected. Now only KP_Enter is not working. Good enough for now. I' ll try to polish it later
[EDIT 9]: Got it working as expected, with NumLock working without the Shift key. I just had to add (to my .Xmodmap)
Code: Select all
keycode 77 = Pointer_EnableKeys
keycode 108 = KP_Enter[EDIT 10]: There is a minor annoyance though. While numlock is on, the mouse can't click. Also, the numlock LED is permanently on. Oh, well, I hope either someone answers this post, or Xorg is fixed upstream...


