How do I use a PS3 controller with Ubuntu.


You should use sixad/QtSixA http://qtsixa.sourceforge.net/ . Just install from the repo and pair with sixpair while the sixaxis is connected with usb, and then connect with Bluetooth by pressing the PS button.

sudo add-apt-repository ppa:falk-t-j/qtsixa
sudo apt-get update
sudo apt-get install qtsixa

Connect with USB


Disconnect sixaxis from USB

sixad -s

press PS button to connect over bluetooth

  • I Could not get this working on linux mint 17 – Exile Jan 3 '15 at 18:24
  • Never mind I have just got this working! – Exile Jan 3 '15 at 18:40
  • Sorry for yet another comment but this is amazing with MAME! – Exile Jan 3 '15 at 22:47
  • 2
    This solution doesn't work anymore! Terminal says E: The repository 'ppa.launchpad.net/falk-t-j/qtsixa/ubuntu xenial Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. – Cirelli94 Jul 10 '16 at 11:21

Sorry to be that guy but compiling from source worked for me and the PPA has been pretty quiet for a while now (not weird at all considering the GitHub hasn't been updated in 4 years and the "final" version was released around the same time), so don't hold your breath for a xenial package.

The excellent guide I linked gives you a few commands to download all prereqs and compile but I will summarize here:

sudo apt-get update &&
  sudo apt-get install git dialog build-essential pyqt4-dev-tools libusb-dev libjack-dev libbluetooth-dev python-dbus checkinstall -y &&
  git clone https://github.com/falkTX/qtsixa.git && 
  cd qtsixa &&
  make &&
  sudo checkinstall
  • I get nathan@nathan-vm:~/projects/sixad-master$ sudo sixpair USB_REQ_GET_CONFIGURATION: Broken pipe Current Bluetooth master: Unable to retrieve local bd_addr from hcitool dev. Please enable Bluetooth or specify an address manually. – Void Nov 9 '19 at 14:29

You are able to connect the controller to the pc via usb cable. This is supplied with a PS3 device (it is the primary way to charge the controller). I don't know how to connect the controller via bluetooth to your computer (if you even have a bluetooth receiver), so this answer focusses on usb connection. It might be that the controller already works if you do this (You can test this with jstest-gtk as listed below). I use another similar PnP controller, and it works without difficulty.

if it does not work automatically, this link might answer your question. In summary:

  • install xboxdrv from the Ubuntu Software Center or with sudo apt-get install xboxdrv
  • start xboxdrv with sudo xboxdrv --detach-kernel-driver
  • If you press the Playstation button, the computer will receive its input and simulate it as an Xbox 360 controller, which should work the same as the playstation controller.

You can test the functionality of your controller through Jstest-gtk (install: sudo apt-get install jstest-gtk)

Good luck, let me know if it works.

  • I will try and let you know – nerd7473 Jan 23 '14 at 21:03
  • Seems to work for me! – Exile Jan 3 '15 at 18:23
  • Doesn't work anymore with ubuntu 14.10. I tested it with the 14.04 debs. – migueleon Jan 5 '15 at 21:50
  • This should be the accepted answer. – Yokai Oct 3 '16 at 7:47

PPA won't work on Ubuntu Xenial derivates but there is a solution. If you have Ubuntu 16.04 and would like to use qtsixa, you can use these commands to trick the PPA into thinking that you’re running 15.10:

sudo cp /etc/lsb-release /etc/lsb-release.backup
sudo gedit /etc/lsb-release

Change the following lines to the values below:





and save.

Now install the PPA for qtsixa. Then copy the original lsb-release file back to were it was.

sudo cp /etc/lsb-release.backup /etc/lsb-release

Now you can reboot.

sudo reboot

Useful for using Intel Graphics Installer for Linux™ too, tested in Linux Mint 18 thanks to this post.

  • This not recommended... this cold break your system – Maxwel Leite May 10 '17 at 2:37
  • Answer downvoted. Changing the description of your release is NOT the way you do things on Ubuntu or Debian. – dotz Mar 19 '18 at 19:19

On Ubuntu 15.10/16.04 and Linux Mint 18, you can still use the QtSixA PPA, but specifying "vivid" as the Ubuntu version (15.04), since that was the last officially supported version. To do so, execute the following:

sudo add-apt-repository "deb http://ppa.launchpad.net/falk-t-j/qtsixa/ubuntu vivid main"
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 736E4F0B
sudo apt update
sudo apt install sixad

Note: as far as I can tell, the GUI based application is no longer useful, at least to detect and connect controllers through Bluetooth. Because of that, you need to use the command line-based applications, i.e. sixad and sixpair

Edit: Apparently and according to my tests, sixad automatically starts at the boot, but doesn't work at all when that happens, having to stop it an re-start it to make it to work. To prevent sixad from being started at the boot, you have to execute:

sudo systemctl disable sixad

and, when you're going to use it, execute:

sudo sixad -s

of course, all the above is because QTSixA is no longer supported. The PS3 and PS4 controllers are supposed to work natively in Linux, but I still prefer to use it instead of the native support. I haven't been able to connect my PS3 controllers natively, and when I use QTSixA, I can do other things like specify the Bluetooth MAC address to be paired with.

I think I will mail the developer to know if it's possible for him to resume the support. I believe that only applying small modifications, the project could work properly out-of-the-box. And, even without doing anything, the PPA could still work.

  • Not work for me on 16.04 – Maxwel Leite May 10 '17 at 1:14
  • Pair is sucessful but don't connect to controller. – Maxwel Leite May 10 '17 at 2:34
  • @Maxwel Leite are you able to start sixad successfully? Did you take into account what I explained about preventing sixad from starting at the boot? – Luisg123v May 11 '17 at 23:02
  • yes sixad starts and wait for press PS button - does work and yes, I disable sixad from start on boot .Thank you for try to help me but I solve the problem for my own. – Maxwel Leite May 12 '17 at 0:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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