LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 02-08-2006, 04:37 PM   #1
bobbens
Member
 
Registered: Sep 2004
Location: Barcelona
Distribution: Debian, FreeBSD, Gentoo
Posts: 586

Rep: Reputation: 30
getting my keyboard dongle working: take 2


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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Keyboard Not Working whittler Linux - Newbie 3 02-16-2005 05:40 PM
Keyboard not working cycmaster Linux - Hardware 2 08-07-2004 03:42 PM
keyboard not working in X taoweijia Linux - Newbie 0 07-08-2004 01:44 AM
keyboard not working in X mcd Slackware 6 05-27-2004 11:37 PM
How to get keyboard working? pecca999 Linux - Newbie 0 10-07-2002 04:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 03:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration