Hi everybody. I had some hard time figuring out how to setup my gameport gamepad to work in Ubuntu. But finally, I think I figured it out. I am writing this so that other members do not hit their heads in the wall, like I did So without any further ado,
1) First, we need to check if the gameport module is already loaded.
In a terminal, type the following:
It should display a list of the currently loaded modules.
One of the lines should begin with 'gameport'
My line looked like:
Code:
gameport 17160 2 snd_es1938
If you didn't find any similar line, look for the way to enable the gameport for your specific sound card in the list below.
2) Now, we need to setup the gamepad/joystick.
Again in a terminal, type the following:
Code:
sudo modprobe joydev
Then, from the list at the bottom, load the right module for your type of gamepad/joystick.
3) Testing and calibrating the gamepad/joystick.
If you want to check if everything's working correctly or/and you want to callibrate your device, you can either try out jscalibrator, or if you're using KDE, run kcontrol from the terminal, and in the Peripherals section, there is a joystick calibrator. You can install jscalibrator by searching for it in the Synaptic package manager, or by typing in a terminal:
Code:
sudo apt-get install jscalibrator
jscalibrator
A new window should appear which should allow you to test and calibrate your device.
4) Setting the modules for the gamepad/joystick permanently.
After you figured out what modules work for your gameport and pad or stick, you need to make these modules load every time you boot the PC, or else you will have to type all the commands again every time you reboot.
Begin by doing the following:
If you're using GNOME:
Code:
sudo gedit /etc/modules
If you're using KDE:
Code:
sudo kwrite /etc/modules
If you're using XFCE:
Code:
sudo mousepad /etc/modules
Then in the text editor, type the following after the last line in the file:
Code:
# Modules needed to set-up my gamepad or joystick
<insert your gameport module here>
joydev
<insert your gamepad/joystick module here>
So for example, if I was to set-up a Creative Cobra gamepad on a SoundBlaster Live! gameport, I would write:
Code:
# Modules needed to set-up my gamepad or joystick
pcigame
joydev
cobra
And that's it! Don't forget to save the file
List of gameports, gamepads/joysticks and their corresponding commands:
Gameports:
-Classic ISA/PnP gameports:
Code:
sudo modprobe ns558
-Crystal SoundFusion gameports:
Code:
sudo modprobe cs461x
-Aureal Vortex and Trident 4DWave gameports:
Code:
sudo modprobe pcigame
-SoundBlaster Live! gameports:
Code:
sudo modprobe emu10k1-gp
-Any other gameports: (If your sound card isn't one of the above and you couldn't find it in lsmod, try this command)
Code:
sudo modprobe gameport
Gamepads and joysticks:
-Analog joysticks and gamepads: (Most gamepads and joysticks, especially generic ones, work well with this one)
Code:
sudo modprobe analog
-Assassin 3D and MadCatz Panther devices:
-Logitech ADI digital joysticks and gamepads:
-Creative Labs Blaster Cobra gamepad:
Code:
sudo modprobe cobra
-Genius Flight2000 Digital joysticks and gamepads:
-Gravis GrIP joysticks and gamepads:
-InterAct digital joysticks and gamepads:
Code:
sudo modprobe interact
-ThrustMaster DirectConnect joysticks and gamepads:
-Microsoft SideWinder digital joysticks and gamepads:
Code:
sudo modprobe sidewinder
So what do you think? Constructive criticism is always welcome. If I forgot to write or add anything, please let me know.
I hope it helps anybody, and please post your experiences!
Extreme Coder
Bookmarks