Scan Codes for a Custom Keyboard

Chad Skeeters cskeeters at nciinc.com
Wed May 8 15:41:30 PDT 2013


I'm a programmer working on a project that has a custom keyboard
attached to a PC.  I am replacing Windows 2000 with OpenSUSE 12.2.
The keyboard has a whole bunch of extra buttons and I have the scan
codes for them from the source code that ran in windows.  The keys all
work in Windows, but when I use Linux, the non-standard keys are not
getting recognized in my program (using xlib) or at all using xev or
showkey -s.  The scan codes that I need to work are:

0x62
0x64
0x65
0x67
0x68
0x69
0x6A
0x6B
0x6D
0x6E
0x6F
0x72
0x74
0x75

I started fiddling with /usr/share/X11/xkb/keycodes/evdev and I
changed tab to one of my scan codes (0x64 or 100).  I ran setxkbmap
-keycodes evdev and the new button does not do what tab did, but tab
was disabled too.

I'm wondering how to go about getting these scan codes to show up as
keyboard KeyPress events in xlib.  Where should I start?

Thanks,

Chad Skeeters
NCI Information Systems, Inc.
210-582-3275


More information about the xorg mailing list