Click to See Complete Forum and Search --> : Gamepad not working at all
Icarus
12-11-2001, 04:12 PM
I need to make my own Game Controller issue here, this is driving me nuts...
I have a GamePro GamePad that connects to the Game Port on the Sound Card (SB Live!)and have not been able to get it to work in Linux (RedHat 7.2) at all. In Windows it requires the drivers to be loaded from disk and all works fine, I've tried every HOWTO, tip and suggestion I could find on this and nothing works (test js0 = device not found)
I need some ideas on what to try to get this working :p
StarbuckZero
12-11-2001, 06:50 PM
I'm trying to get my Sidewinder to work in RedHat 7.2. If you want you could look in the Hardware Help form where I posted a question just like yours. Oh and if you get your joystick to work please let me know. :D
Closer
12-11-2001, 07:40 PM
I was able to get a madcatz panther xl working
in RH 7.2 after some work. The commands below must be done in this order.
insmod joydev {required}
insmod gameport {required}
insmod emu10k1-gp {for sound blaster live only}
insmod a3d {REPLACE a3d WITH THE MODULE FOR YOUR JOYSTICK}
jstest /dev/js0 should show output when buttons are pushed
Closer
[ 11 December 2001: Message edited by: CLOSER ]
A. Buza
12-11-2001, 10:33 PM
I have almost the exact same set up as you (I have a SBPro instead of a live).
I had a bit of trouble getting it working too.
Eventually, I had to edit modules.conf (might be conf.modules on your system) and add the line:
alias char-major-15 js0
Make sure you have the linux joystick drivers installed too, of course!
Icarus
12-12-2001, 12:13 AM
Not sure what module to use for this but most of them returned this...
analog.o: unresolved symbol input_unregister_device_Rdf64c28d
analog.o: unresolved symbol input_register_device_R281d2fb2
analog.o: unresolved symbol input_event_Ra0b62081
I added the line Buza suggested even...no responce from the controller at all (it is plugged in, checked three times :))
Closer
12-12-2001, 01:45 AM
There is a joystick rpm on the rh-cd please make sure its installed.
possible kernel need to compiled with joystick support
closer
bwkaz
12-12-2001, 08:58 AM
Originally posted by mahdi:
<STRONG>Not sure what module to use for this but most of them returned this...
analog.o: unresolved symbol input_unregister_device_Rdf64c28d
analog.o: unresolved symbol input_register_device_R281d2fb2
analog.o: unresolved symbol input_event_Ra0b62081</STRONG>
Try using modprobe rather than insmod. It looks like one of the modules that you're trying to load has some modules that it's dependent on, that aren't loaded. Or, maybe the module you're loading was compiled with an older kernel, that's possible too. Anyway, modprobe loads the module you ask it to, and ALL of its dependencies as listed my modules.dep (this means you have to run depmod before modprobe, but most distros do this on bootup anyway).
Icarus
12-12-2001, 09:51 AM
How would I know which module to even use? Is it just guess and hope? Or is there a better way of finding the right module?
bwkaz
12-12-2001, 11:51 AM
Read the help stuff in the kernel source -- when you "make menuconfig", you can go into each section, so find the one that matches your gamepad, and hit the "Help" selection. It SHOULD tell you the module name somewhere in there. Mine is sidewinder.o (SW FF Pro joystick, not a gamepad, but whatever), so I use modprobe sidewinder
Unfortunately, some of the entries either have no help, or don't tell you the module name. If that's the case, go into /lib/modules/<kernel version>/kernel/ and look around until you find something that looks promising. Just remember to omit the .o extension when you give the module name to modprobe.
StarbuckZero
12-12-2001, 02:14 PM
I got my Microsoft Sidewinder to working today at work(by telnet). Just make sure you install the joystick rpm. Then do a modprobe for analog, your joystick, gameport, and emu10k1-gp(emu10k1-gp is for the SB Live! port). Then run jstest /dev/js0 to see if it works. :) Now I just need to go download Zsnes. :D
A. Buza
12-12-2001, 07:57 PM
Ah.. my memory is coming back now. I think someone hinted at this earlier with a sidewinder example, but you'll have to load the joystick AND the gravis module (modprobe joy-gravis).
My distro (Debian) included a .deb (like an rpm sorta) for the joystick driver but oddly it didn't work (Or more accurately, *I* couldn't get it to work). I doubt this is the case for RedHat, but if nothing else works you might want to try building the drivers from source. I had some issues getting the joystick devices (/dev/js0) created. If they're there already you should be in good shape though.
..just a few things that I remembered I had to do to get my joystick working while I was reading this thread.
Icarus
12-12-2001, 09:49 PM
Grrr...at leat I'm reloading this soon (I have some partitions I want merged)
# jstest js0
jstest: No such file or directory