evdev keyboard, messed arrow keys - how to fix it?
Tomasz Chmielewski
mangoo at wpkg.org
Tue Jul 14 14:36:23 PDT 2009
Tomasz Chmielewski wrote:
> When using an evdev keyboard, arrow keys do not work as they should:
>
> - Left, Down - key works, but do not repeat
> - Up - key do not work at all
> - Right - works correctly
>
>
> I can fix the Left and Down keys (so that they repeat) with xset:
>
> xset r 113
> xset r 116
>
>
> No idea how to fix the Up key though (it is detected in xev; if I should
> provide xev output, let me know).
If someone has a clue on how to debug this and get the "Up" key working, I'd be glad.
For reference, here is xev output for the not working "Up" key (key pressed and released),
note that there is no "KeyPress event" here, but "FocusOut", "FocusIn" and "KeymapNotify" instead:
FocusOut event, serial 34, synthetic NO, window 0x2c00001,
mode NotifyGrab, detail NotifyAncestor
FocusIn event, serial 34, synthetic NO, window 0x2c00001,
mode NotifyUngrab, detail NotifyAncestor
KeymapNotify event, serial 34, synthetic NO, window 0x0,
keys: 0 0 0 0 0 0 0 0 0 0 0 0 0 4294967168 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
KeyRelease event, serial 34, synthetic NO, window 0x2c00001,
root 0xb2, subw 0x0, time 16907569, (99,-20), root:(1135,5),
state 0x10, keycode 111 (keysym 0xff52, Up), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
And for comparison, a working "Right" key pressed and released:
KeyPress event, serial 34, synthetic NO, window 0x2c00001,
root 0xb2, subw 0x0, time 16783920, (65,-14), root:(1101,11),
state 0x10, keycode 114 (keysym 0xff53, Right), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 34, synthetic NO, window 0x2c00001,
root 0xb2, subw 0x0, time 16783976, (65,-14), root:(1101,11),
state 0x10, keycode 114 (keysym 0xff53, Right), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
--
Tomasz Chmielewski
http://wpkg.org
More information about the xorg
mailing list