Forums » Linux

joysticks

12»
Feb 26, 2004 red cactus link
Ok, Roguelazer tried to help me with this, but I'm afraid what information he supplied me with didn't do the trick...

I have a Thrustmaster Top Gun Fox 2 Pro USB joystick. I have these options set in my kernel .config:
<font size=3 face=monaco>
CONFIG_INPUT_JOYSTICK = y
CONFIG_JOYSTICK_TMDC = y
CONFIG_USB_HID = y
CONFIG_INPUT = y
CONFIG_USB_HIDINPUT = y
CONFIG_USB_HIDDEV = y
CONFIG_HID_FF = n
CONFIG_INPUT_EVDEV = y

and lsmod returns this:
nvidia 2078568 12
ide_scsi 16900 0
tmdc 8064 0
analog 12672 0
gameport 6016 2 tmdc,analog
joydev 11712 0
</font>

(I tried to put a font tag on that stuff, to preserve the spacing, but I don't know whether it worked.)

However, Vendetta still doesn't recognize my joystick. When I click 'scan' nothing happens. I went to their website, and they told me that this particular joystick doesn't need drivers. But I'm assuming that is for Windows, not Linux...

Any ideas?

Thanks,
-rc
Feb 26, 2004 raybondo link
Vendetta looks for these 8 devices:
/dev/js0-3
/dev/input/js0-3

If one of these are not there then Vendetta won't find your joystick.
Feb 26, 2004 red cactus link
Well, they seem to exist:
# ls /dev/js*
/dev/js0 /dev/js1 /dev/js2 /dev/js3
# ls /dev/input/js*
/dev/input/js0 /dev/input/js1 /dev/input/js2 /dev/input/js3

However, the command 'joycal /dev/js0' through 3 and also with /dev/input/js0-3 didn't work, it gave me this error message:
joycal: cannot open joystick device /dev/input/js0
etc.

-rc
Feb 26, 2004 roguelazer link
chmod 777 /dev/js*
chmod 777 /dev/input/js*
Feb 26, 2004 red cactus link
Vendetta, nor anything else, still does not recognize the joystick, even after those permission changes.

-rc
Feb 26, 2004 incarnate link
Are you sure the joystick is functional? Have you tested it elsewhere, or in another OS?
Feb 26, 2004 red cactus link
Quite sure. It works like a charm in Windows (as much as I hate to admit it.)

-rc
Feb 28, 2004 red cactus link
Bump to the top of the list because this is important!
Mar 03, 2004 slpyhd link
First make sure the joystick is started. (attach the output of dmesg right after boot) Look for js*, perhaps you need to add special usb js devices.(???)
Mar 04, 2004 sorg link
I have a problem too:

My Sidewinder Precision 2 is well installed and recognised by the utilities of calibration.
I can use it as a normal user .
Inside Vendetta the button works well but the axis don't . My aeronef is condamn to go straight !!!
Mar 11, 2004 Turmoyl link
I hate to be the one to tell you this, but your joystick isn't supported by the Linux joystick driver.

You can read the HCL at http://atrey.karlin.mff.cuni.cz/~vojtech/joystick/

I ran up against this wall with my Saitek X-45 controller, too. Although I was able to hack around and get it to work a bit in Linux it never was at a desirable level of functionality so I picked up a $20 Logitech Wingman Extreme Digital foruse in Nix.
Mar 11, 2004 roguelazer link
Turmoyl? That document you referenced to has not been updated since Linux Kernel 2.3. The input subsystem supports a lot more joysticks in these days of 2.6.4 than it did in 2.3.1. That particular driver doesn't even support USB joysticks. While I do doubt that his joystick is supported, Linux now supports several times the number of joysticks as are listed on that page. According to the tdmc driver help file:

>> Say Y here if you have a ThrustMaster controller using the
>> DirectConnect (BSP) protocol

So, I guessed at that one. The other thing you can try is the I-Force driver with I-Force USB support. It's what I used for my Logitech Wingman Force 3d.
Mar 11, 2004 red cactus link
Maybe I'll just set up a plea for money on some random web page, and hope I get enough for a new joystick.

-rc
Mar 12, 2004 thorne link
Get a Logitech Wireless 2.4 Freedom.. I've had mine for a few weeks now. Fully functional in every game that uses a joystick so far. Can't beat wireless either. :)

Sell your old joystick to some poor sap on ebay. >:)
Apr 18, 2004 Imek link
I have exactly the same problem as sorg. My Saitek Cyborg 3D Gold joystick worked fine when I used it in Vendetta a few months ago, is detected and calibrated correctly, but none of the axes work, only the buttons. Seeing as it worked fine before and my system hasn't changed a bit, I think this may be a bug in vendetta.

EDIT: Wait a second.. It works fine if I don't run jscalibrator. If I run jscalibrator, the joystick doesn't work in vendetta until I reboot. Strange..
Apr 21, 2004 Turmoyl link
It's the same for me, Imek, but running jscalibrator doesn' seem to affect any other game than Vendetta. Odd indeed.
Apr 22, 2004 a1k0n link
Hmm. Guess I should probably read the linux input docs some day and fix this...
Apr 23, 2004 mr_spuck link
Does vendetta use libjsw? Don't know if its related. I think I've read about some binary incompatibility between certein versions.

yeah here: http://wolfpack.twu.net/libjsw/

I just use jscal to calibrate my joystick, works with everything. :)
May 23, 2004 Ard Righ link
What package does the 'jscal' util come with ? I've installed libjsw in Gentoo, and ran 'jscalibrator' and noticed the response issue also.

If 'jscal' is any better than 'jscalibrator', I might install it.

Also, I noticed 'jscalibrator' doesn't detect the usage of the shift buttons on my Saitek Cyborg Evo :(
May 25, 2004 mr_spuck link
jscal is more like a demo application for the joystick driver, but works very well :D

download instructions are here:
http://linuxconsole.sourceforge.net/quick.html

you only need to checkout the "ruby" module from their cvs, It's in the "utils" directory. No idea if there are any packaged versions of the thing.