Forums » Linux

No joystick detected.

Nov 05, 2004 MatTwagnet link
Hi all,

Probably a bit of a newB questions, but I've searched around and can't find an answer.

I'm using a Gravis Eliminator Shock Gamepad in Fedora Core 2 (x86_64). The joystick is detected fine by the OS, 'jstest --normal /dev/js0' operates correctly and shows the correct input from the gamepad. However, Vendetta still does not detect the gamepad.

Can someone please help?

Thanks.
Nov 06, 2004 a1k0n link
Hmm, interesting. Is there anything relevant at the beginning of ~/.vendetta/errors.log about joysticks?
Nov 08, 2004 MatTwagnet link
I can't find any mention of Joysticks. :(
Nov 12, 2004 quximoz link
I'm having the same problem. Joystick works with jstest. I'm using Gentoo, and also x86_64. I know it worked during the Vendetta test, but I haven't played for several months.
Nov 13, 2004 a1k0n link
Yeah, the Linux joystick code has been pretty much untouched for years.. And to be honest I haven't tested it in a while but it did work last time I did.

It scans /dev/js* and /dev/input/js* and I don't see any reason why it wouldn't work unless you don't have permission or something. Or the joystick API changed drastically again and the code needs updating. Which doesn't look to be the case.

Can someone look at the beginning of their ~/.vendetta/errors.log? It should always say "Found (n) joystick(s)".

I want to know if it says "Found 0 joystick(s)" or "Found 'something' numaxes=n numbuttons=b".

I'm gonna add some extra debugging info for the version we release Monday.
Nov 14, 2004 quximoz link
Found 0 joystick(s)
Nov 14, 2004 quximoz link
I just tried it on my 32 bit machine and the joystick was detected without issue... I suspect that this is somehow related to the fact that both MatTwagnet and I are using x86_64.
Nov 14, 2004 a1k0n link
Ahhh, very interesting.

I can't think of any reason off-hand why that would matter... Well, tomorrow's release will contain some more information so we can track this down.
Dec 30, 2004 Beolach link
I'm also having this problem, also on x86_64. Joystick is USB Logitech WingMan Force 3D, is detected and works fine in jscalibrator, is /dev/input/js0, but vendetta doesn't detect it.

beolach@mandalor ~ $ cat .vendetta/errors.log
[Thu Dec 30 10:27:24 2004] Found driver: "OpenGL Reference GKGL driver". Type 5, Version 28.0. Load @0x082d16c8
[Thu Dec 30 10:27:24 2004] Instantiate address: 0x5602f380
[Thu Dec 30 10:27:24 2004] Found driver: "Open Sound System driver". Type 1, Version 7.1. Load @0x082d2918
[Thu Dec 30 10:27:24 2004] Instantiate address: 0x5605fce0
[Thu Dec 30 10:27:24 2004] Found driver: "ALSA driver". Type 1, Version 7.1. Load @0x082d2bd8
[Thu Dec 30 10:27:24 2004] Instantiate address: 0x561d7340
/dev/js0: No such file or directory
/dev/js1: No such file or directory
/dev/input/js1: No such file or directory
/dev/js2: No such file or directory
/dev/input/js2: No such file or directory
/dev/js3: No such file or directory
/dev/input/js3: No such file or directory
Found 0 joystick(s)
osssound: ospace info: fragment=0010000a fragstotal=16, fragsize=1024
OSS sound initialized: 44100Hz, 16bit stereo, 92ms buffer using /dev/dsp
/dev/js0: No such file or directory
/dev/js1: No such file or directory
/dev/input/js1: No such file or directory
/dev/js2: No such file or directory
/dev/input/js2: No such file or directory
/dev/js3: No such file or directory
/dev/input/js3: No such file or directory
Found 0 joystick(s)
/dev/js0: No such file or directory
/dev/js1: No such file or directory
/dev/input/js1: No such file or directory
/dev/js2: No such file or directory
/dev/input/js2: No such file or directory
/dev/js3: No such file or directory
/dev/input/js3: No such file or directory
Found 0 joystick(s)beolach@mandalor ~ $ uname -a
Linux mandalor 2.6.9-gentoo-r4-mandalor #1 Sat Nov 27 22:14:16 MST 2004 x86_64 AMD Athlon(tm) 64 Processor 3200+ AuthenticAMD GNU/Linux
beolach@mandalor ~ $ v /dev/input/js0
crw-rw-rw- 1 root root 13, 0 Dec 28 17:23 /dev/input/js0
Dec 30, 2004 The Kid link
I don't see a mention of /dev/input/js0 in the error.log...
Dec 30, 2004 Beolach link
Exactly. I also at one point created a symlink /dev/js0 to /dev/input/js0, after which /dev/js0 was not mentioned in the errors.log either.
Dec 31, 2004 Beolach link
Hmm, this might be useful... just saw this in my syslog:

syslog:Dec 31 03:25:49 mandalor ioctl32(vendetta:9670): Unknown cmd fd(18) cmd(80046a01){00} arg(ffffd1f8) on /dev/input/js0
syslog:Dec 31 03:25:51 mandalor ioctl32(vendetta:9670): Unknown cmd fd(18) cmd(80046a01){00} arg(ffffd1f8) on /dev/input/js0
syslog:Dec 31 03:25:51 mandalor ioctl32(vendetta:9670): Unknown cmd fd(18) cmd(80046a01){00} arg(ffffd1f8) on /dev/input/js0
syslog:Dec 31 03:25:52 mandalor ioctl32(vendetta:9670): Unknown cmd fd(18) cmd(80046a01){00} arg(ffffd1f8) on /dev/input/js0