You were dead on about the hotplug causing the
usbdevfs: USBDEVFS_CONTROL failed dev 2 rqt 128 rq 6 len 18 ret -11
error. Disabled hotplug and it went away, but still no joy. I now have my original Thrustmaster I have used before. In fact, seveal years ago I used it AND an analog joystick at the same time while playing around with xforms. Moving bar graphs with sticks and turning indicators on and off with joy buttons.
Now here is what happens with the Thrustmaster.
Boot system and run, remember hot plug is disabled so some things that were loaded are no longer loaded:
modprobe uhci mount -t usbdevfd none /proc/bus/usb modprobe input modprobe hid modprobe joydev
So, now the followinf modules are loaded: Module Size Used by Not tainted joydev 6048 0 (unused) hid 15496 0 (unused) input 3232 0 [joydev hid] uhci 25616 0 (unused) usbcore 62016 1 [hid uhci]
A dmesg shows all hubs and ports detected and 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
So hid is loaded, now plug in thrustmaster, dmesg returns: hub.c: new USB device 00:10.0-1, assigned address 2 input: USB HID v1.00 Joystick [044f:a0a1] on usb1:2.0
So, thurstmaster joystick is detected. Run jstest and it reports stick, but moving or pressing buttons caused no output changes, Hmmm, say I, on a lark I unscrew the bottom of Thrustmaster and lo and behold the connector from buttons and pots to the motherboard was disconnected. (My friend said he took it apart "to seee how it worked", sigh) Anyway the bottom line is now the Thrustmaster Top Gun works under Linux.
However, when you plug in the Saitek and cat /dev/input/js0 results in "No device found and dmesg reports:
hub.c: new USB device 00:10.0-1, assigned address 2
usb.c: USB device 2 (vend/prod 0x6a3/0x6) is not claimed by any active driver.
usb.c: error getting string descriptor 0 (error=-110)
usb.c: error getting string descriptor 0 (error=-110)
usb.c: error getting string descriptor 0 (error=-110)
usb.c: error getting string descriptor 0 (error=-110)
So, there is still a problem with the Saitek, big sigh.
Well, at least I learned some things about the usb and hotplug systems under Linux.
Guess its off to developers mailing list and start digging into joystick code myself.
Thanks Sergy, Bill and Stephen for all ya'lls time and patience
Jeff
Sergey Vlasov wrote:
On Fri, 09 Apr 2004 13:39:35 -0400 tj wrote:
Boot up messages, no usb devices attached.[skip]
This part seems to be OK.
hid.o, keybdev.o, input.o are not loaded.
Plug in Saitek Cyborg joystick.and run dmesg, Th following is added on.
hub.c: new USB device 00:10.0-1, assigned address 2
usb.c: USB device 2 (vend/prod 0x6a3/0x6) is not claimed by any active driver.
usb.c: registered new driver hiddev
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
mice: PS/2 mouse device common for all mice
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
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
usbdevfs: USBDEVFS_CONTROL failed dev 2 rqt 128 rq 6 len 18 ret -110
<Keeps repeating last line>
Here is the problem. Most likely hotplug runs something which wants
to talk with the new device and manages to confuse it in the process. You need to track down and disable this thing.
You can try to modprobe hid before attaching the joystick, so that the hid driver will grab the device before that hotplug crap.
lsmod now yeilds:
Module Size Used by Not tainted
keybdev 2080 0 (unused)
mousedev 4276 0 (unused)
hid 21636 0 (unused)
input 3232 0 [keybdev mousedev hid]
<rest of modules>
Still no joydev module.
joydev is not loaded automatically - the input subsystem does not support hotplug.
------------------------------------------------------- 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