LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 05-29-2015, 02:01 AM   #1
Kuriibaa
Member
 
Registered: Jul 2014
Posts: 53

Rep: Reputation: Disabled
Question Best way to get Joysticks working in Linux?


Hi,

I'm looking for a solution that's about as universal as possible, and have had trouble installing things like Joy2Key on Linux. I'd prefer a solution that's effective across distros(I use a few for various purposes,) but even one I could reliably make use of in games for Ubuntu/Mint would be very helpful.

What's the best program to use to get USB joysticks to work in Linux, and how might I get such a thing up and running properly? Thanks in advance!
 
Old 05-29-2015, 03:42 AM   #2
Weapon S
Member
 
Registered: May 2011
Location: Netherlands
Distribution: Debian, Archlinux
Posts: 262
Blog Entries: 2

Rep: Reputation: 49
In Debian I had no problem getting a PS3 controller working via USB. You need the xserver-xorg-input-joystick package, and then everything works automagically. So I guess you need a proper X-server configuration for other distros?
 
Old 05-29-2015, 05:27 AM   #3
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Quote:
Originally Posted by Weapon S View Post
In Debian I had no problem getting a PS3 controller working via USB.
Same here for a XBox360 controller, SpeedLink Drift OZ steering wheel and Logitech Extreme 3D Pro Joystick on Slackware, Gentoo and Arch.
Please be more specific what exactly does not work as you want.
 
Old 06-03-2015, 05:34 AM   #4
Kuriibaa
Member
 
Registered: Jul 2014
Posts: 53

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TobiSGD View Post
Same here for a XBox360 controller, SpeedLink Drift OZ steering wheel and Logitech Extreme 3D Pro Joystick on Slackware, Gentoo and Arch.
Please be more specific what exactly does not work as you want.
Well, I'd love to just find some solution that works very broadly across distros as well as across programs/games, such as one that'll pretty much nail any issue I'm having on Steam games. There seem to be a small minority of them that just work out of the box with my usb gamepad(which is a Kinobo, though I could live with using my PS3 controller if that was somehow more reliable.) Most don't recognize the joystick at all and this has been one of few hardware issues with Linux I've had consistently since I started using it over a year ago.

If getting it to work on every Linux game that has joystick support isn't doable, I'd resort to asking about some Joy2Key equivalent that'd just map it to my keyboard, but ideally I'm wanting some type of driver, etc. that wouldn't require mapping. I may try this package suggested for 24 hours to see how it works.
 
Old 06-03-2015, 08:03 AM   #5
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
i think anything like antimicro (not sure why you cant use joy2key ?) would be dependent on your gamepad latching onto a device like /dev/input/event10. maybe running dmesg after plugging it in will clue us into if the system recognizes it. also show us the contents of:
ll -R /dev/input/
with it plugged in.

iirc correctly not all steam games support gamepads (e.g. the swapper which is point and click).

Last edited by schneidz; 06-03-2015 at 08:08 AM.
 
Old 06-03-2015, 03:14 PM   #6
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
Quote:
What's the best program to use to get USB joysticks to work in Linux
plug the usb joystick in

the os should auto detect it

i have yet to have one not detected

unless this is some VERY!!! minimal ( server type) install
almost all joysticks should "just work"

now if your STEAM and WINE ( microsoft) games are not seeing the joystick that thew Operating System dose

then that is steam and wine issue
 
Old 06-03-2015, 07:20 PM   #7
Kuriibaa
Member
 
Registered: Jul 2014
Posts: 53

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by John VV View Post
plug the usb joystick in

the os should auto detect it

i have yet to have one not detected

unless this is some VERY!!! minimal ( server type) install
almost all joysticks should "just work"

now if your STEAM and WINE ( microsoft) games are not seeing the joystick that thew Operating System dose

then that is steam and wine issue
Right. I did notice that on Linux(or Ubuntu 15.04 at least) the game Electronic Super Joy has no issues working out of the box with NO programs/drivers needed, but I can't think of another game now that recognizes it. This may be a sign I need a mapper program. Most all games I'll be playing will be on Steam or Desura--any ideas out there as to how I could universally get the controller to work on those reliably?
 
Old 06-03-2015, 10:52 PM   #8
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
if the games developer didnt add joystick support then i dont think there is a way to get one to work with it natively. you can petition the publisher and maybe they will add support for their next update.

as a work-around, programs like antimicro could be used to map joystick buttons to keyboard/mouse controls.
 
Old 06-04-2015, 12:48 AM   #9
Kuriibaa
Member
 
Registered: Jul 2014
Posts: 53

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by schneidz View Post
if the games developer didnt add joystick support then i dont think there is a way to get one to work with it natively. you can petition the publisher and maybe they will add support for their next update.

as a work-around, programs like antimicro could be used to map joystick buttons to keyboard/mouse controls.
Hmm. Antimicro seems to work somewhat and may even be a catch-all solution, at least for Ubuntu-compatible OSes. One glaring issue is that the thing seems to emulate mouse by default too, making the cursor move around every time I use the stick. Anyone know how to disable the mouse emulation altogether? Thanks, and thanks for the suggestion.

Edit: I've found Ubuntu documentation on exactly how to do it supposedly, but after adding the lines and saving it's not working. https://help.ubuntu.com/community/Sixaxis

Last edited by Kuriibaa; 06-04-2015 at 01:50 AM.
 
Old 06-06-2015, 07:12 AM   #10
UdoBlunt
LQ Newbie
 
Registered: Jun 2015
Posts: 3

Rep: Reputation: Disabled
Using Debian Jessie I just installed Steam, started Super Meat Boy, my Logitech F710 worked the second I picked it up. Have not tried non-steam games.
 
Old 06-08-2015, 10:07 PM   #11
Kuriibaa
Member
 
Registered: Jul 2014
Posts: 53

Original Poster
Rep: Reputation: Disabled
Exclamation

Quote:
Originally Posted by UdoBlunt View Post
Using Debian Jessie I just installed Steam, started Super Meat Boy, my Logitech F710 worked the second I picked it up. Have not tried non-steam games.
Even if this only fixed Steam games it'd help a lot, though I'll be making use of Desura as well.

I still can't get this program to stop emulating the mouse input in addition to keyboard. It's wrecking what seems like it could fix most or all of my problems. Any info on how to disable mouse emulation on this is greatly appreciated.
 
Old 06-09-2015, 03:52 AM   #12
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
OFFTOPIC:
Quote:
Originally Posted by Kuriibaa View Post
Even if this only fixed Steam games it'd help a lot, though I'll be making use of Desura as well.
Sadly, Desura's parent company has filed for bankruptcy, so you might want to download the installers for all your Desura games as long as you are still able to (if you haven't already).
 
Old 06-09-2015, 04:03 AM   #13
Kuriibaa
Member
 
Registered: Jul 2014
Posts: 53

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TobiSGD View Post
OFFTOPIC:


Sadly, Desura's parent company has filed for bankruptcy, so you might want to download the installers for all your Desura games as long as you are still able to (if you haven't already).
Wow. Thanks for the heads up. I only hope that just like Bad Juju bought it from another company, someone will buy it from Bad Juju. That'd be pretty bad if we just lost the whole service, installers or not.
 
Old 06-09-2015, 01:29 PM   #14
Sefyir
Member
 
Registered: Mar 2015
Distribution: Linux Mint
Posts: 634

Rep: Reputation: 316Reputation: 316Reputation: 316Reputation: 316
Quote:
Originally Posted by TobiSGD View Post
OFFTOPIC:


Sadly, Desura's parent company has filed for bankruptcy, so you might want to download the installers for all your Desura games as long as you are still able to (if you haven't already).
They made a statement on this:
http://www.desura.com/news/may-27th-update

Quote:
  • Desura is not going out of business, we are not in financial crisis. We are moving forward and actively working toward partnerships and opportunities for growth.
...
The second rumor, that we are going out of business, is also false. We are in fact exploring some very exciting new avenues in terms of partnerships and growth opportunities. The payout issues are not an indication that we don't have the funds to pay. Bringing in the changes to the payout system, as well as new contracts being lowered to a $250 threshold will both help prevent this from being a recurring problem in the future.
 
Old 06-09-2015, 01:43 PM   #15
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
That's good news, thanks for posting that.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Flightgear joysticks budkou Linux - Games 2 05-29-2011 06:42 PM
How do I get my joysticks to work in Linux? LAPIII Linux - Games 34 04-25-2011 05:25 PM
How to get Parallel Port Joysticks (eg SNES pad) working in linux 2.6.4 kernel Tyco Linux - Hardware 1 06-06-2004 02:59 PM
joysticks acid_kewpie Linux - Hardware 3 05-04-2002 07:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 04:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration