Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I recently received a Logitech Rumblepad 2 (a joystick, like a PS2 controller) from a friend.

How would I configure this in Ubuntu? If possible, I would prefer to use a GUI utility.

I tried jstest-gui, but it shows my accelerometer!

share|improve this question
Do you mind to say what brand name and model your joystick is? – Geppettvs D'Constanzo Mar 25 '11 at 22:16
@GeppettvsD'Constanzo: never!!!! :D (joking) updating the question – RolandiXor Mar 25 '11 at 23:03
jscalibrator: - no longer available, - bugged - won't be fixed Ref: Looking for an alternative – user42794 Jan 20 '12 at 9:42

This process will work for Ubuntu 11.04 (Natty) and older versions. For the newest versions please refer to this Answer by RolandiXor. Thank you.

Not tested by me, but found in a link provided at:, I hope this may help.

Install joystick

sudo apt-get update

sudo apt-get install joystick

then install jscalibrator

sudo apt-get install jscalibrator

then run the calibration processes

jscal -c /dev/input/js0 (this is my joystick location check yours)

jstest /dev/input/js0 (or wherever) If I remember correctly, this should return 0 for no error.

run jscalibrator


and it should recognize the type of gamepad correctly and recognize all of your buttons, and axis

enter image description here

enter image description here

There is also an application called jstest-gtk, which seems to do something like that, I post here a screenshot and the link for you: (This software may need to be compiled in order to make it work)

enter image description here

share|improve this answer
Time to update this answer: $ sudo apt-get install jscalibrator Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package jscalibrator – matteo May 26 '13 at 20:16
The answer was updated. Please refer to this answer by RolandiXor for further support on newer versions. Thank you – Geppettvs D'Constanzo May 27 '13 at 22:05
I assume the first screenshot shows jscalibrator? That's exactly the software I'm searching for. Since it doesn't exist in newer versions of Ubuntu anymore, is there an alternative that actually shows what any particular button press should look like? Because I don't know what buttons 0-11 are supposed to map to so I don't know how to use jstest or jscal. If there is no such software, is there some picture that shows a reference mapping? I'm guessing X=0, O=1, square=2, triangle=4 but that's about as far as I can guess. – Christian Nov 24 '13 at 17:15
does some of theese tools give me the ability to choose what input driver the controller should use? like udev for example? – philx_x Apr 23 at 18:44
up vote 24 down vote accepted

It is possible to calibrate Joysticks in Kubuntu using KDE's system settings. This is a bit of an "overkill" solution, as of course it requires KDE (and most Ubuntu users will not want this).

enter image description here

I did not have my joystick plugged in for the above screenshot, but I have tried it before and it works.

JStest gtk and joystick

These are two tools included in the Ubuntu repositories that I have not tested recently (I found these when looking for other options). The first of the two, jstest-gtk, is a graphical tool, and joystick is a set of commandline utilities.

You can install them using:

sudo apt-get install jstest-gtk 


sudo apt-get install joystick

Jstest-gtk is a front end to joystick's commandline tools.

share|improve this answer
I installed kde-system-settings but can't find these settings. Where exactly are they? Do I need to install another package? – Seth Mar 19 '13 at 23:31
@Seth type joystick in the search box and input devices should be highlighted. – RolandiXor Mar 19 '13 at 23:35
I must need another package then.. See: – Seth Mar 19 '13 at 23:36
@Seth I would need to track it down :( – RolandiXor Mar 19 '13 at 23:39
I've tried jstest-gtk but it doesn't seem to allow me to change anything.. useful for testing though. – Seth Mar 19 '13 at 23:54

I'm using Ubuntu 13.04 and have Logitech Rumblepad 2. And what I did was installing these, joystick and jstest-gtk. It's already been calibrate to default and joystick device is detected right. Just plug and play.

If you need to calibrate and save your configuration you can do this, open jtest-gtk, You will see this,

enter image description here

You can calibrate by double click on the device.

enter image description here

Hope it will help you out as it has done to me.

share|improve this answer

I am currently using qjoypad for mapping keys (even the mouse) to a Logitech Gamepad F310. It's working well for games that are designed with only keyboard and mouse controls in mind. It seems to require being run from cli as qjoypad --notray. It does use a GUI.

How to Install Qjoypad
First add the GetDeb Games ppa

wget -q -O - | sudo apt-key add -
sudo sh -c 'echo "deb raring-getdeb games" >> /etc/apt/sources.list.d/getdeb.list'

Then update and install package

sudo apt-get update
sudo apt-get install qjoypad

Alternatively download the package here and install with your favorite package manager.

share|improve this answer
qjoypad isn't in ubuntu's repository. Mind giving instructions on how to add it? – Nil May 28 '13 at 16:59
I seem to recall installing via the synaptic package manager. I'll check when I get home, but you can get it at Decompress the tar.gz and the installation should be as simple as ./config make make install – iyrin May 28 '13 at 21:51
doesn't look as though the package as been updated in over 3 years. Also doesn't seem like there is a ppa for it, not like it would matter given how there are no updates. It is definitely not in raring's repository. Nvm, found it – Nil May 28 '13 at 22:17
Thanks! This is the source I used as well. – iyrin May 29 '13 at 0:33
@Nil at the time of writing this, qjoypad in fact in the Ubuntu repositories. – Enkouyami May 24 '14 at 9:45

The answers here are getting a bit old now, and users seem to be having issues again, so this is an current 2016 solution to configuring your joystick or gamepad on Ubuntu.

You can use antimicro, it is a fork of joy2key and has a GUI, use this PPA for 12.04 to 15.10

sudo add-apt-repository ppa:ryochan7/antimicro
sudo apt-get update
sudo apt-get install antimicro

For 16.04 use this PPA

sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt-get update
sudo apt-get install antimicro


enter image description here

share|improve this answer
This also worked with the droidpad application which allows android phone to be used as gamepad. – vivi Apr 16 at 17:56
This application doesn' tedetct my USB gamepads on 15.10 - they work well on 14.04 though. Any workarounds for 15.10? – TenLeftFingers May 6 at 13:30
I don't know a work around, it worked for me on 15.10 but here are some things to try, update your kernel and system with sudo apt-get dist-upgrade try installing the xbox driver sudo apt-get install xboxdrv reboot after each one. I also updated the answer to include a version for 16.04 if you want to upgrade. @TenLeftFingers – Mark Kirby May 6 at 16:42
Thanks Mark Kirby. Turns out my laptop doesn't provide enough power via USB unless the power chord is connected. – TenLeftFingers May 6 at 19:24

protected by RolandiXor Mar 19 '13 at 15:21

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.