Home » Questions » Computers [ Ask a new question ]

How can I get USB keyboard extra buttons working?

How can I get USB keyboard extra buttons working?

I have recently bought an USB keyboard. It has 12 extra buttons but only 5 of them are working. There are no "unknown scancode" messages in the logs. Evtest can't detect them it can't even detect the working 5 (only regular keys). Xev detects the working 5 but not the others. "cat /dev/input/by-path/pci-0000:00:02.0-usb-0:4:1.0-event-kbd" is the same as evtest with uglier output. In fact the only way I was able to detect the other 7 keys is USB sniffing with wireshark. So my keyboard is not defective.

Asked by: Guest | Views: 249
Total answers/comments: 1
Guest [Entry]

"I use lineakd to map any key that generates a keycode in xev (1). On the current keyboard I have about half the buttons generate keycodes, the others don't. I haven't found a solution for keys that X doesn't recognise as generating a keycode.

KeyPress event, serial 28, synthetic NO, window 0x4400001,
root 0xfd, subw 0x0, time 9475187, (382,534), root:(417,620),
state 0x0, **keycode 69** (keysym 0xffc0, F3), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False

I wrote about this a while ago, but haven't updated the post with the details of using xev to supplement the supplied keycodes."