> Linux > Linux Hardware
Various Topics Home | Disclaimer | Report Adult Posts

Various Topics on Linux Hardware



Linux Hardware - "USB Analogue joystick" in Linux


Old 07-06-2003   #1
..sh.. ....
 
Default USB Analogue joystick


I'm trying to read from a USB analogue joystick, and have got as far as:
Quote:
jstest /dev/js0
{dawson}halej: jstest /dev/js0
Joystick (Saitek Cyborg 3D Rumble Force) has 7 axes and 12 buttons.
Driver version is 2.1.0.
Testing ... (interrupt to exit)
Axes: 0:-32767 1:-32767 2: 0 3: 0 4:-32767 5:-32767
6: 0 Buttons: 0ff 1ff 2ff 3ff 4ff 5ff 6ff
7ff 8ff 9ff 10ff 11ff

The joystick type is detected correctly (its a USB joystick) but I can't
get any data, i.e. moving the stick, pressing the buttons etc. doesn't
work. I loaded the joydev module, and the analog module before I could
get any response from jstest.
Quote:
uname -m -r -s -v
Linux 2.4.18 #2 Tue Feb 26 12:07:22 GMT 2002 i686
I'm running redhat 7.3.

So, any suggestions for getting some feedback from the joystick?

Thanks,

Josh.

 
Old 07-06-2003   #2
..nc.. .... ..o..
 
Default Re: USB Analogue joystick

[ excessive crossposting trimmed, followup set ]
On Sun, 06 Jul 2003 20:32:19 +0100, Joshua Hale staggered into the Black
Sun and said:
Quote:
I'm trying to read from a USB analogue joystick
Er. "analog joystick" typically means "old-fashioned joystick with max
4 buttons connected to the 15-pin gameport."
Quote:
{dawson}halej: jstest /dev/js0
Joystick (Saitek Cyborg 3D Rumble Force) has 7 axes and 12 buttons.
Well, the device exists, which is a good sign.
Quote:
The joystick type is detected correctly (its a USB joystick) but I
can't get any data, i.e. moving the stick, pressing the buttons etc.
doesn't work. I loaded the joydev module, and the analog module before
I could get any response from jstest.
Every USB joystick I've heard of/seen out there uses the "hid" module,
not the "analog" module. You need to have the following modules loaded
for most USB joysticks to work:

usbcore
usb-uhci (or usb-ohci)
joydev
input
hid

The docs in /usr/src/linux/Do***entation/input/joystick.txt say that
many Saitek joysticks are supported by the analog module, but since this
is a USB device, it should be handled by hid, unless this joystick was
designed by crack-smoking monkeys.
Quote:
Linux 2.4.18 I'm running redhat 7.3.
Hm. The hotplug daemon should've loaded hid automagically when you
plugged this device in. Unplug the joystick, plug it back in again, and
do "dmesg | tail -20" right after plugging it in again, then post the
output.

--
Matt G|There is no Darkness in Eternity/But only Light too dim for us to see
Brainbench MVP for Linux Admin /
http://www.brainbench.com / "He is a rhythmic movement of the
-----------------------------/ penguins, is Tux." --MegaHAL
 
Old 07-07-2003   #3
..sh.. ....
 
Default Re: USB Analogue joystick


Hi dude,

Thanks for the response... I checked all those modules that you
mentioned and they are all loaded:

usbcore
usb-uhci
usb-ohci
joydev
input
hid


So I plugged it in and out, ran dmesg and got the following... (about
ten million disk change events which seems a bit odd...?)

VFS: Disk change detected on device ide1(22,0)
VFS: Disk change detected on device ide1(22,0)
usb.c: USB disconnect on device 2
VFS: Disk change detected on device ide1(22,0)
VFS: Disk change detected on device ide1(22,0)
VFS: Disk change detected on device ide1(22,0)
hub.c: USB new device connect on bus2/1, ***igned device number 3
VFS: Disk change detected on device ide1(22,0)
VFS: Disk change detected on device ide1(22,0)
VFS: Disk change detected on device ide1(22,0)

Whats your verdict?

Josh.



Dances With Crows wrote:
Quote:
[ excessive crossposting trimmed, followup set ]
On Sun, 06 Jul 2003 20worms diseases:32:19 +0100, Joshua Hale staggered into the Black
Sun and said:

Quote:
I'm trying to read from a USB analogue joystick
Er. "analog joystick" typically means "old-fashioned joystick with max
4 buttons connected to the 15-pin gameport."


Quote:
{dawson}halej: jstest /dev/js0
Joystick (Saitek Cyborg 3D Rumble Force) has 7 axes and 12 buttons.
Well, the device exists, which is a good sign.


Quote:
The joystick type is detected correctly (its a USB joystick) but I
can't get any data, i.e. moving the stick, pressing the buttons etc.
doesn't work. I loaded the joydev module, and the analog module before
I could get any response from jstest.
Every USB joystick I've heard of/seen out there uses the "hid" module,
not the "analog" module. You need to have the following modules loaded
for most USB joysticks to work:

usbcore
usb-uhci (or usb-ohci)
joydev
input
hid

The docs in /usr/src/linux/Do***entation/input/joystick.txt say that
many Saitek joysticks are supported by the analog module, but since this
is a USB device, it should be handled by hid, unless this joystick was
designed by crack-smoking monkeys.


Quote:
Linux 2.4.18 I'm running redhat 7.3.
Hm. The hotplug daemon should've loaded hid automagically when you
plugged this device in. Unplug the joystick, plug it back in again, and
do "dmesg | tail -20" right after plugging it in again, then post the
output.


 
Old 07-07-2003   #4
..sh.. ....
 
Default Re: USB Analogue joystick



Hi dude,

Thanks for the response... I checked all those modules that you
mentioned and they are all loaded:

usbcore
usb-uhci
usb-ohci
joydev
input
hid


So I plugged it in and out, ran dmesg and got the following... (about
ten million disk change events which seems a bit odd...?)

VFS: Disk change detected on device ide1(22,0)
VFS: Disk change detected on device ide1(22,0)
usb.c: USB disconnect on device 2
VFS: Disk change detected on device ide1(22,0)
VFS: Disk change detected on device ide1(22,0)
VFS: Disk change detected on device ide1(22,0)
hub.c: USB new device connect on bus2/1, ***igned device number 3
VFS: Disk change detected on device ide1(22,0)
VFS: Disk change detected on device ide1(22,0)
VFS: Disk change detected on device ide1(22,0)

Whats your verdict?

Josh.



Dances With Crows wrote:
Quote:
[ excessive crossposting trimmed, followup set ]
On Sun, 06 Jul 2003 20worms diseases:32:19 +0100, Joshua Hale staggered into the Black
Sun and said:

Quote:
I'm trying to read from a USB analogue joystick
Er. "analog joystick" typically means "old-fashioned joystick with max
4 buttons connected to the 15-pin gameport."


Quote:
{dawson}halej: jstest /dev/js0
Joystick (Saitek Cyborg 3D Rumble Force) has 7 axes and 12 buttons.
Well, the device exists, which is a good sign.


Quote:
The joystick type is detected correctly (its a USB joystick) but I
can't get any data, i.e. moving the stick, pressing the buttons etc.
doesn't work. I loaded the joydev module, and the analog module before
I could get any response from jstest.
Every USB joystick I've heard of/seen out there uses the "hid" module,
not the "analog" module. You need to have the following modules loaded
for most USB joysticks to work:

usbcore
usb-uhci (or usb-ohci)
joydev
input
hid

The docs in /usr/src/linux/Do***entation/input/joystick.txt say that
many Saitek joysticks are supported by the analog module, but since this
is a USB device, it should be handled by hid, unless this joystick was
designed by crack-smoking monkeys.


Quote:
Linux 2.4.18 I'm running redhat 7.3.
Hm. The hotplug daemon should've loaded hid automagically when you
plugged this device in. Unplug the joystick, plug it back in again, and
do "dmesg | tail -20" right after plugging it in again, then post the
output.


 

Thread Tools
Display Modes





Powered by vBulletin®
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0