Thanks for the reply and it's nice here from a another slacker in a world of Red Hat'ers :-).
A couple of years ago I also got a cheap Thrustmaster USB joystick working under Slackware. Just followed the USB Users Guide and it worked fine.
If you have time.I'll walk you through what I do and what system messages are. Oh, I might mention I have a Belkin USB serial adapter and it works just fine.
Ok I boot the system and modprobe input; modprobe input; modprobe input; modprobe joydev. A lsmod shows.
hid 15496 0 (unused) joydev 6048 0 (unused) input 3232 0 [hid joydev] uhci 25616 0 (unused) ehci-hcd 17544 0 (unused) usbcore 62016 1 [hid uhci ehci-hcd]
A dmesg responds: usb.c: registered new driver hid hid-core.c: v1.8.1 Andreas Gal, Vojtech Pavlik <[EMAIL PROTECTED]> hid-core.c: USB HID support drivers At the bottom. T: Bus=02 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=1.5 MxCh= 0 D: Ver= 1.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1 P: Vendor=06a3 ProdID=0006 Rev= 0.01 C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=100mA I: If#= 0 Alt= 0 #EPs= 1 Cls=03(HID ) Sub=00 Prot=00 Driver=(none) E: Ad=81(I) Atr=03(Int.) MxPS= 7 Ivl=10ms
Notice that it does not show a manufacturer string. But now look at dmesg:
usb.c: USB device 2 (vend/prod 0x6a3/0x6) is not claimed by any active driver.
usbdevfs: USBDEVFS_CONTROL failed dev 2 rqt 128 rq 6 len 18 ret -110
usbdevfs: USBDEVFS_CONTROL failed dev 2 rqt 128 rq 6 len 18 ret -110
usbdevfs: USBDEVFS_CONTROL failed dev 2 rqt 128 rq 6 len 18 ret -110
usbdevfs: USBDEVFS_CONTROL failed dev 2 rqt 128 rq 6 len 18 ret -110
With the last line repeating over and over again.
And /dev/input/js0 is "No such device"
Any ideas?
tj Marr wrote:
On Friday 09 April 2004 01:22am, tj wrote:
I recently purchased a used Saitek Cyborg 3D joystiack and I cannot get
it to run on Linux 2.4.22 kernel.
I've been reading about your joystick problems (and your later related question about "hid module needing keybdev & mousedev", for which I posted my experience in a different message).
I'm also running Slackware (v9.1) with the 2.4.22 kernel but I have a CH Products "F-16 CombatStick USB" joystick (model FSCU99). I hadn't tested the thing under Linux in quite a while, but a few years ago, I wrote some simple software to "listen" for joystick events using the standard Linux joystick API. I decided to plug this joystick into my Slackware box and I tried to duplicate some of your problems, hoping that it would shed some light....
Plug it in and usbview and
/proc/bus/usb/devices list the Saitek joystick. Cool I said.
Same here -- all is working well:
T: Bus=01 Lev=01 Prnt=01 Port=01 Cnt=02 Dev#= 3 Spd=1.5 MxCh= 0
D: Ver= 1.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=068e ProdID=0504 Rev= 1.08
S: Manufacturer=CH Products S: Product=CH 3-Axis 10-Button+POV USB Joystick
C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr= 50mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=03(HID ) Sub=00 Prot=00 Driver=hid
E: Ad=81(I) Atr=03(Int.) MxPS= 7 Ivl=8ms
I read the HID section in the Users Guide at linux-usb.org and made sure
all of the usb and input modules were loaded. hid, input, joydev, etc.
I do a cat /dev/input/js0 and I get a "No such device".
After I plugged the joystick in, these modules auto-loaded:
keybdev 1952 0 (unused) mousedev 4244 0 (unused) hid 21156 0 (unused) input 3200 0 [keybdev mousedev hid]
I didn't notice that 'joydev' failed to auto-load (in the distant past [Aug 2001, Slackware 8.0], I never needed to 'modprobe joydev' to have a working setup), so when I tried to access the joystick (using my custom program, which accesses the joystick via '/dev/js0'), it failed (predictably) with a 'No such device' error.
So, I did the 'modprobe joydev' manually, and now my program works fine. I can see valid data coming from the USB joystick for both "axis" data and "button" data.
Furthermore, 'cat /dev/js0' (sym-linked to '/dev/input/js0') works as expected, dumping out raw data as the joystick axes and buttons are manipulated.
Oh yea, /dev/input/js0 is major 13 and minor 0.
Same here -- I checked.
On Friday 09 April 2004 01:36am, tj wrote:
I discovered that if you connect the joystick BEFORE loading joydev, it
detects the joystick.
Same here. I did it in that order merely by coincidence, not intentionally.
If you load joydev BEFORE plugging joystick in,
then you get the unknown device. You can rmmod joydev, but re-plugging
the joystick STILL results in "unknown device".
Without ever rebooting, I unplugged the joystick, did 'rmmod joydev', verified that my program failed ('No such device'), then did 'modprobe joydev', then re-plugged the joystick. Everything is working perfectly again, as expected.
On Friday 09 April 2004 02:39am, tj wrote:
In playing around I notice something. Boot the system with the joystick unplugged. Plug in the joystick and usbview reports cyborg joystick. Plus, modules input, hid, keybdev and mousedev are now loaded. Unplug the stick and it goes away in usbview. Plug it back in and it is listed as an "unkown device" 2.4.22 kernel.
1: Why is joydev not being loaded when the joystick is plugged in, but
the other hids are?
I don't know, but, as I mentioned above, I see the same behavior.
2: Why after the first plug in is it listed as unknown when unplugged
and plugged back in again?
Is it because you still don't have the 'joydev' module loaded?
--------------------
Bottom Line: From my testing, I cannot see anything seriously wrong with Slackware or the USB joystick handling, other than the minor inconvenience of the 'joydev' module not auto-loading when the USB joystick is first plugged in.
If there's something I'm missing or if you like me to try some other tests, please let me know.
Good luck!
Bill Marr
------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users