Page 1 of 5 123 ... LastLast
Results 1 to 10 of 48

Thread: HOWTO: Set-up a gameport gamepad or joystick

  1. #1
    Join Date
    Nov 2006
    Beans
    260
    Distro
    Ubuntu 6.10 Edgy

    Post HOWTO: Set-up a gameport gamepad or joystick

    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:
    Code:
    lsmod
    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:
    Code:
    sudo modprobe a3d
    -Logitech ADI digital joysticks and gamepads:
    Code:
    sudo modprobe adi
    -Creative Labs Blaster Cobra gamepad:
    Code:
    sudo modprobe cobra
    -Genius Flight2000 Digital joysticks and gamepads:
    Code:
     sudo modprobe gf2k
    -Gravis GrIP joysticks and gamepads:
    Code:
    sudo modprobe grip
    -InterAct digital joysticks and gamepads:
    Code:
     sudo modprobe interact
    -ThrustMaster DirectConnect joysticks and gamepads:
    Code:
    sudo modprobe tmdc
    -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
    Last edited by Extreme Coder; May 11th, 2007 at 01:44 AM. Reason: Added some extra info.

  2. #2
    Join Date
    Feb 2005
    Location
    Leeds UK
    Beans
    127
    Distro
    Kubuntu 6.10 Edgy

    Re: HOWTO: Set-up a gameport gamepad or joystick

    if anyone wants to use an xbox controller then the command is


    Code:
    sudo modprobe xpad
    then do jscalibrator

    ps cheers for jscallibrator i didnt no of this app its great now i have my xbox pad working in epsxe MINT

  3. #3
    Join Date
    Apr 2006
    Beans
    75
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: HOWTO: Set-up a gameport gamepad or joystick

    Will it work for USB joysticks?

  4. #4
    Join Date
    Aug 2006
    Beans
    19

    Re: HOWTO: Set-up a gameport gamepad or joystick

    what is the module for playstation 2 controlers

  5. #5
    Join Date
    Nov 2006
    Beans
    260
    Distro
    Ubuntu 6.10 Edgy

    Re: HOWTO: Set-up a gameport gamepad or joystick

    binks: Thanks a lot for the xbox module, but doesn't the Xbox controller use some other type of port that needs a converter to USB first? If you're talking about the Xbox 360 controller (which uses USB), then you're right, you only need to modprobe xpad.

    hito1: USB joysticks and gamepads work automagically in Ubuntu. You can try out jscalibrator on your joystick.

    dragonfixed: There isn't currently a specific module for PS2 controllers, since PS2 controllers don't use a Serial or USB port. But if you're using something like the JoyPad, which outputs USB, then I guess it will work fine.

    I would like to know if this guide worked for anyone other than me and my friends , so if it worked for you, just post!

  6. #6
    Join Date
    Aug 2006
    Beans
    19

    Re: HOWTO: Set-up a gameport gamepad or joystick

    Quote Originally Posted by Extreme Coder View Post
    binks: Thanks a lot for the xbox module, but doesn't the Xbox controller use some other type of port that needs a converter to USB first? If you're talking about the Xbox 360 controller (which uses USB), then you're right, you only need to modprobe xpad.

    hito1: USB joysticks and gamepads work automagically in Ubuntu. You can try out jscalibrator on your joystick.

    dragonfixed: There isn't currently a specific module for PS2 controllers, since PS2 controllers don't use a Serial or USB port. But if you're using something like the JoyPad, which outputs USB, then I guess it will work fine.

    I would like to know if this guide worked for anyone other than me and my friends , so if it worked for you, just post!
    Thanks

  7. #7
    Join Date
    Apr 2006
    Beans
    75
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: HOWTO: Set-up a gameport gamepad or joystick

    Quote Originally Posted by Extreme Coder View Post
    hito1: USB joysticks and gamepads work automagically in Ubuntu. You can try out jscalibrator on your joystick.
    Thanks, it worked, but is there another software besides jscalibrator? It inverted my joystick axis (and I don't think it guessed the right model, mine is like ps2 joystick, I think jscalibrator thinks it's an airplane joystick).

  8. #8
    Join Date
    Nov 2006
    Beans
    260
    Distro
    Ubuntu 6.10 Edgy

    Re: HOWTO: Set-up a gameport gamepad or joystick

    Quote Originally Posted by hito1 View Post
    Thanks, it worked, but is there another software besides jscalibrator? It inverted my joystick axis (and I don't think it guessed the right model, mine is like ps2 joystick, I think jscalibrator thinks it's an airplane joystick).
    The same case happened with my gamepad, but that was before you callibrate it. After you callibrate it, it works fine. Just try calibrating it

  9. #9
    Join Date
    Jan 2005
    Location
    Mount Morris, Michigan
    Beans
    176

    Re: HOWTO: Set-up a gameport gamepad or joystick

    What games can you use a gamepad with?

    I want one to work with SuperTux and with the FCEU NES emulator. What else is there?

  10. #10
    Join Date
    Mar 2007
    Location
    Margate, UK
    Beans
    1
    Distro
    Ubuntu 6.10 Edgy

    Re: HOWTO: Set-up a gameport gamepad or joystick

    Thats great, now I can calibrate my USB Jotstick. BUT I cannot get Linux to find my Gameport joystick!! Its connected to the on-board sound card and works ok in windoze.
    The sound chip identifies it self as SiS SI7012.

Page 1 of 5 123 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •