PDA

View Full Version : how to get joysticks in FC4 working?


kRogue
30th June 2005, 08:30 AM
o my system I have a couple of joysticks (namely 2 very old sidewinder gamepads and 1 Sidewinder USB joystick). In Fedora Core 1 I added the lines:

################################################
###### Get the joysticks working ###############

action "Loading joydev module: " insmod joydev
action "Loading gameport module: " insmod gameport

######## choose physical gameport device #########
## uncomment below to use gameport on SBLive! card
## action "Loading emu10k-gp module: " insmod emu10k1-gp ##

## load the generic gameport driver:
action "Loading ns558 (Genertic ISA gameport driver):" insmod ns558

#### now load sidewinder module #####
action "Loading sidewinder module: " insmod sidewinder


to rc.sysinit... now if I do modprobe by hand the above modules, whn I run jstest, it syas there are no joysticks... hmm... so what do I do?

Update: chagned since FC1, the joystick devices are now in /dev/input/ instead of /dev, however, at this point it only finds the USB joystick, the Sidewinder are MIA.

Update: the startup sequence apparently automaticly loadsup the module for my aging SBLive's gameport (emu10k1_gp), bt the sidewinder pads are hooked up to the Moterboards (builtin) gameport [this is becuase under Win9x, the SBLive gameport is flaky). after (by hand) removing emu10k1_gp via rmmod, and then doing the above the sidewinders appeared. Though, would one remove the emu10k1_gp loading for the boot up sequence?

kRogue
1st July 2005, 09:09 AM
Well, this is what I thought would work to get the sidewinders reconized:

I added the following to my rc.sysinit:

action "Loading joydev module: " modprobe joydev
action "Loading gameport module: " modprobe gameport
action "Removing EMU10K1-gp module: " rmmod emu10k1_gp
action "Loading ns558 (Genertic ISA gameport driver):" modprobe ns558
action "Loading sidewinder module: " modprobe sidewinder

just before the command

# Load modules (for backward compatibility with VARs)
if [ -f /etc/rc.modules ]; then
/etc/rc.modules
fi


as of this time, at boot the joypads (but not the joystick) is missing in action. Agian if I log in as root and do:

rmmod sidewinder
rmmod emu10k1_gp
rmmod gameport
modprobe joydev
moprobe gameport
modprobe ns558
modprobe sidewinder

then they are apear.. so... what can I do to get this to work at boot?! is there a way to pass a parameter to sidewinder telling it to use the ns558 gameport and not the SBLive!'s ?

Best Regards

SuperNu
1st July 2005, 05:31 PM

As I have posted here (http://www.fedoraforum.org/forum/showthread.php?t=58605), you could always try adding emu10k1_gp to /etc/hotplug/blacklist to prevent hot plug from automatically loading emu10k1_gp. Another tip on preventing modules from loading is here (http://forums.fedoraforum.org/forum/showthread.php?t=51124). If these two methods do not work, you could always add the rmmod/modprobe command lines to /etc/rc.d/rc.local so they run after everything else has run on system initialization.

--SN

kRogue
3rd July 2005, 08:31 AM
well, I first tried to add emu10k1_gp to /etc/hotplug/blacklist, the module still got loaded at boot. then I tried adding the line:

install emu10k1_gp /bin/true

to modules.conf, now the module does not get loaded, BUT the joypads are still not reconized after booting even though I added:

/sbin/modprobe joydev
/sbin/modprobe gameport
/sbin/modprobe ns558
/sbin/modprobe sidewinder

to /etc/rc.d/rc.local

but if I run a script which is just the following:

/sbin/rmmod sidewinder
/sbin/rmmod ns558
/sbin/rmmod emu10k1_gp
/sbin/rmmod joydev
/sbin/rmmod gameport
/sbin/modprobe joydev
/sbin/modprobe gameport
/sbin/modprobe ns558
/sbin/modprobe sidewinder

after logging in, then the joypads get reconzied and work... jsut wierd.... I also ran lsmod to see what modules where loaded, and sure enough at boot the modules: joydev, ns558, gameport and sidewinder are loaded, BUT the joypads are not reconized. but by unloading then and then re-loading them then they are ok... wierd.. any ideas?


Best Regards

allmain
9th September 2005, 08:36 AM
I think it will be ns558 module which is causing the problem. On my system i added to /etc/rcd/rclocal
/sbin/modprobe ns558
/sbin/modprobe analog
/sbin/modprobe joydev
/sbin/rmmod ns558
/sbin/modprobe ns558

now joystick works after boot

Regards
Allmain