Results 1 to 8 of 8

Thread: Controllers for Ubuntu?

  1. #1
    Join Date
    Apr 2014
    Location
    Tucson AZ, USA
    Beans
    1,057
    Distro
    Ubuntu

    Controllers for Ubuntu?

    For Kubuntu. Looking for a controller, similar to the Xbox 360 controller although the analog sticks are not needed. I discovered SuperTux and find it very addicting. I would prefer wireless that can be mapped to keyboard keys. I can deal with wired if I need to though. Any suggestions?

  2. #2
    Join Date
    Oct 2009
    Location
    Elgin, IL USA
    Beans
    3,363
    Distro
    Ubuntu 16.10 Yakkety Yak

    Re: Controllers for Ubuntu?

    Logitech F710 seems to work fine with Linux including Steam Big picture. Haven't used it that much except to qualify for Steam Machine beta test drawing and for a space game that was under development (Salvation Prophecy). It had a keyboard config gui, but no gamepad config gui (assumed XBox 360 controller). The only thing that did not work as expected was that D-pad worked in menus, but not for zoom and weapon switch in space flight. But I fixed that by pressing D-pad directions for some unused things in keyboard config gui, then transferred those results from the keyboard config text file to the gamepad config file for zoom and weapon switch, then everything worked. I just used the gamepad for space combat and still used familiar WASD keys and mouse for ground movement.

    I also tried the F710 with a RC flight simulator and it worked.

    If you actually want to have the gamepad work keys instead of gamepad aware games, you might look at joy2key package (have not tried it).

    PS: I guess the first step in seeing if your controller/gamepad is recognized would be to install jstest-gtk, see what it shows for your device, then see what response you get in Properties to pressing buttons, triggers, and moving joysticks. From there you can Calibrate or change Mapping of controls.

    For example my F710 is recognized as :

    Generic X-Box pad
    Device: /dev/input/js0
    Axes: 8
    Buttons: 11

    Although, I have to press a button once on this wireless F710 (which does not have an on/off switch) to wake something up initially before jstest-gtk sees any joystick movement.
    Last edited by efflandt; June 2nd, 2015 at 11:43 PM.
    i5 650 3.2 GHz upgraded to i7 870, 16 GB 1333 RAM, nvidia GTX 1060, 32" 1080p & assorted older computers

  3. #3
    Join Date
    Nov 2009
    Beans
    Hidden!
    Distro
    Kubuntu 20.04 Focal Fossa

    Re: Controllers for Ubuntu?

    the xbox controler works in Linux I believe.
    Read the easy to understand, lots of pics Ubuntu manual.
    Do i need antivirus/firewall in linux?
    Full disk backup (newer kernel -> suitable for newer PC): Clonezilla
    User friendly full disk backup: Rescuezilla

  4. #4
    Join Date
    May 2014
    Location
    black mesa
    Beans
    73
    Distro
    Lubuntu 15.04 Vivid Vervet

    Re: Controllers for Ubuntu?

    Quote Originally Posted by mastablasta View Post
    the xbox controler works in Linux I believe.
    yes it does i use one for euro truck simulator 2 and it runs great.

  5. #5
    Join Date
    Apr 2008
    Location
    Norwich CT
    Beans
    2,659
    Distro
    Ubuntu Mate

    Re: Controllers for Ubuntu?

    The drivers for the (at least wired) Xbox controller are right in the Linux kernel, and it works perfectly for me.

    Not that I'm a big fan of controllers; you can have my mouse and keyboard when you pry them from my cold, dead fingers.

    I drink my Ubuntu black, no sugar.
    Ubuntu user 28819

  6. #6
    Join Date
    May 2015
    Beans
    9

    Re: Controllers for Ubuntu?

    I have a playstation controller but i can't use it and i don't find a driver that work, can anyone help me?
    Last edited by Francesco_Verlato; May 27th, 2015 at 08:58 AM.

  7. #7
    Join Date
    May 2015
    Beans
    2

    Unhappy Re: Controllers for Ubuntu?

    Hi everybody! Please, help me.
    I have Genius MaxFire Grandias 12V, but not be work how should.



    I start play in Left4Dead2 through Steam, and I enable support the gamepad in settings.
    But.
    But the key in the settings, the game responds only to press the buttons 1, 2, 3, 4, and sticks. But Axis 5, 6 (ABS_HAT0X and ABS_HAT0Y) no reaction at all.

    Drivers are only for Windows.

    I install the xboxdrv and make my config.

    Code:
    [xboxdrv]
    evdev=/dev/input/event4
    silent=true
    
    [evdev-absmap]
    ABS_X=X1
    ABS_Y=Y1
    ABS_Z=Y2
    ABS_RZ=X2
    ABS_HAT0X=Black
    ABS_HAT0Y=White
    
    [ui-axismap]
    X1=REL_X:10
    Y1=REL_Y:-10
    X2=KEY_A:KEY_D
    Y2=KEY_S:KEY_W
    Black=KEY_LEFT:KEY_RIGHT
    White=KEY_UP:KEY_DOWN
    
    [evdev-keymap]
    BTN_TRIGGER=A
    BTN_THUMB=B
    BTN_THUMB2=X
    BTN_TOP=Y
    BTN_TOP2=RT
    BTN_PINKIE=RB
    BTN_BASE=LT
    BTN_BASE2=LB
    BTN_BASE3=Back #select
    BTN_BASE4=Start
    BTN_BASE5=TL
    BTN_BASE6=TR
    
    [ui-buttonmap]
    A=BTN_LEFT
    B=BTN_RIGHT
    X=KEY_E
    Y=KEY_G
    RT=KEY_Q
    RB=KEY_E
     LT=KEY_SPACE
     LB=KEY_LEFTCTRL
    Back=KEY_ESC
    Start=KEY_ENTER
    TL=BTN_RIGHT
    TR=BTN_LEFT
    
    # EOF #
    Almost all works. Only one BUT! LT button is pressed after the first seized, and the cursor is constantly rises at a rate of approximately 10 pixels per second.

    !!! I use Ubuntu 15.04

    P.S. > Sorry for my English. I use translator.
    Last edited by MaxAlexQNEI; May 29th, 2015 at 09:09 PM.

  8. #8
    Join Date
    May 2015
    Beans
    2

    Thumbs up Re: Controllers for Ubuntu?

    Hello everybody! Don't use joy2key, qjoypad and other.

    My recipe...

    Configuration, settings, setups, installing, install joystick/gamepad Genius MaxFire Grandias 12V, Steam BigPicture, Left4Dead2, Linux Ubuntu 12.04+

    01. Ctrl+Alt+T - TERMINAL
    02. sudo apt-get -y install joystick
    03. Ctrl+Alt+F1 - CONSOLE
    04. sudo su
    05. service lightdm stop
    06. Xorg -configure
    07. service lightdm start
    08. Goto TERMINAL
    09. sudo gedit /root/xorg.conf.new
    10. Add this text after all content and SAVE, after Close:
    Code:
    Section "InputClass"
        Identifier "joystick catchall"
        MatchIsJoystick "on"
        MatchDevicePath "/dev/input/event*"
        Driver "joystick"
        Option "StartKeysEnabled" "False"       #Disable mouse
        Option "StartMouseEnabled" "False"      #support
    EndSection
    11. Goto TERMINAL
    12. mv /root/xorg.conf.new /etc/X11/xorg.conf
    13. Goto CONSOLE
    14. service lightdm restart
    15. Run Steam in BigPicture mode, before open a "Controller" and setup this.

    You can play!

    !!! OR, you can make other file "/etc/X11/xorg.conf.d/50-joystick.conf", and write in this file from the step 10.

    Thnx for watching!

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
  •