[ILUG] joydev strangeness

fuzzbucket fuzzbucket at eircom.net
Sat Oct 16 19:17:17 IST 2004


$ uname -a
Linux localhost 2.6.8.1-10mdk #1 Wed Sep 8 17:00:52 CEST 2004 i686
Pentium III (Coppermine) unknown GNU/Linux

I have a USB joypad which I know works under Linux with joydev, and I
know actually works (tested on another box). However, I cannot get any
response from /dev/js:

# ls -l /dev/js*
lrwxrwxrwx  1 root root 9 Oct 16 16:50 /dev/js -> input/js0
# cat /dev/js

# cat /dev/input/js0

Neither the buttons or axes produce anything. Info in /proc:

# cat /proc/bus/input/devices
.
.
.
I: Bus=0003 Vendor=06a3 Product=0510 Version=0101
N: Name="Saitek Saitek P150"
P: Phys=usb-0000:00:07.2-1/input0
H: Handlers=event2 js0
B: EV=b
B: KEY=ff 0 0 0 0 0 0 0 0 0
B: ABS=700 3

joydev and usbcore are loaded:

# lsmod | grep usb
usbhid                 41088  0
usbcore               103172  5 quickcam,usbhid,uhci-hcd
# lsmod | grep joy
joydev                  8032  0

The relevant (I think) section from demsg output:

hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
usb 1-1: new low speed USB device using address 2
usb 1-2: new full speed USB device using address 3
usbcore: registered new driver hiddev
input: USB HID v1.00 Joystick [Saitek Saitek P150] on usb-0000:00:07.2-1
usbcore: registered new driver usbhid
drivers/usb/input/hid-core.c: v2.0:USB HID core driver

Info from usbview:

Saitek P150
Manufacturer: Saitek
Speed: 1.5Mb/s (low)
USB Version:  1.10
Device Class: 00(>ifc )
Device Subclass: 00
Device Protocol: 00
Maximum Default Endpoint Size: 8
Number of Configurations: 1
Vendor Id: 06a3
Product Id: 0510
Revision Number:  1.01

Config Number: 1
	Number of Interfaces: 1
	Attributes: 80
	MaxPower Needed:  20mA

	Interface Number: 0
		Name: usbhid
		Alternate Number: 0
		Class: 03(HID  )
		Sub Class: 00
		Protocol: 00
		Number of Endpoints: 1

			Endpoint Address: 81
			Direction: in
			Attribute: 3
			Type: Int.
			Max Packet Size: 8
			Interval: 12ms

Any help appreciated. I can provide further details if required.

-- 
ICQ:139064407 Jabber:fuzzbucket at jabber.org Yahoo:rapidyokes



More information about the ILUG mailing list