So I'm starting to add more keys to my fluxbox keybindings and figure it'd be nice to have the extra _27_ key combos my Saitek Command Pad has to offer. So I decide to embark on the journey of improving my X.org server...
First scanning USB:
Code:
$ lsusb
Bus 002 Device 002: ID 06a3:8000 Saitek PL
Making sure module is loaded:
Code:
$ lsmod | grep evdev
evdev 9856 1
Finding out what event it is:
Code:
$ cat /proc/bus/input/devices
I: Bus=0003 Vendor=06a3 Product=8000 Version=0120
N: Name="Chicony USB Gaming Keyboard Pro"
P: Phys=usb-0000:00:02.1-1/input2
S: Sysfs=/class/input/input3
H: Handlers=event3
B: EV=3
B: KEY=7ff0000 0 0 0 0 0 0 0 0
Testing the device with evtest.
Code:
$ evtest /dev/input/event3
Input driver version is 1.0.0
Input device ID: bus 0x3 vendor 0x6a3 product 0x8000 version 0x120
Input device name: "Chicony USB Gaming Keyboard Pro"
Supported events:
Event type 0 (Reset)
Event code 0 (Reset)
Event code 1 (Key)
Event type 1 (Key)
Event code 304 (BtnA)
Event code 305 (BtnB)
Event code 306 (BtnC)
Event code 307 (BtnX)
Event code 308 (BtnY)
Event code 309 (BtnZ)
Event code 310 (BtnTL)
Event code 311 (BtnTR)
Event code 312 (BtnTL2)
Event code 313 (BtnTR2)
Event code 314 (BtnSelect)
Testing ... (interrupt to exit)
All looks alright, now onto xorg.conf:
Code:
...
Section "Module"
...
Load "evdev"
...
EndSection
...
Section "InputDevice"
Identifier "Saitek Command Pad"
Driver "evdev"
Option "Device" "/dev/input/event3"
Option "Dev Phys" "usb-0000:00:02.1-1/input2"
Option "Dev Name" "Chicony USB Gaming Keyboard Pro"
Option "SendCoreEvents" "true"
EndSection
...
Section "ServerLayout"
...
InputDevice "Saitek Command Pad" "SendCoreEvents"
...
EndSection
...
and onto the pain:
Code:
(**) Option "SendCoreEvents"
(**) Saitek Command Pad: always reports core events
(**) Saitek Command Pad: Device: "/dev/input/event3"
(WW) Saitek Command Pad: Don't know how to use device
(EE) PreInit failed for input device "Saitek Command Pad"
(II) UnloadModule: "evdev"
What surprises me is that the evtest obviously show that it's working right, as I can start hitting keys and it identifies all of them, but it just doesnt seem like it wants to work. I don't understand the "Don't know how to use device" part... I'll be troubleshoooting more these days, but this is just endlessly frustrating... Anyone have any ideas? I'm probably doing something wrong, but the man evdev is tiny and barely says anything, most of the stuff