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

Reply via email to