{"id":33,"date":"2013-07-21T07:34:00","date_gmt":"2013-07-20T21:34:00","guid":{"rendered":"https:\/\/www.serenux.com\/?p=33"},"modified":"2021-01-14T07:41:53","modified_gmt":"2021-01-13T21:41:53","slug":"howto-pair-a-sony-playstation3-dualshock-controller-with-ubuntu","status":"publish","type":"post","link":"https:\/\/www.serenux.com\/index.php\/2013\/07\/21\/howto-pair-a-sony-playstation3-dualshock-controller-with-ubuntu\/","title":{"rendered":"HowTo: Pair a Sony PlayStation3 DualShock controller with Ubuntu"},"content":{"rendered":"\n<p>The ubiquitous&nbsp;Sony PlayStation3 DualShock controller. This controller has been around for ages now and IMO it\u2019s one of the nicest multi-button game controllers out there. One of its nicer features is that it has USB and Bluetooth connectivity.<a href=\"https:\/\/web.archive.org\/web\/20150206051520\/http:\/\/www.serenux.com\/~hyrax\/pics\/sony\/PS3-DualShock3-Controller.jpg\" target=\"_blank\" rel=\"noreferrer noopener\"><\/a><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/web.archive.org\/web\/20150206051520im_\/http:\/\/www.serenux.com\/~hyrax\/pics\/sony\/PS3-DualShock3-Controller.jpg\" alt=\"Click for full size!\"\/><figcaption>The Sony PlayStation Dual Shock 3 Controller<\/figcaption><\/figure>\n\n\n\n<p>It\u2019s already been proven that you can connect a PS3 controller to Ubuntu using a standard USB cable, which is fine, but it\u2019d be kinda cool to use Bluetooth as well. The thing is that the PS3 controller doesn\u2019t follow the complete Bluetooth specification with regards to pairing. The reason for this is deliberate \u2013 you don\u2019t want people being able to steal control of your PS3 controllers or your PS3 remotely, so pairing is performed manually using the USB cable. Once paired that way, the cable can be disconnected and you can continue using Bluetooth instead.<\/p>\n\n\n\n<p>So can we replicate this in Ubuntu? Can we pair a controller via USB and then continue to use it via Bluetooth? Thanks to the&nbsp;<a href=\"https:\/\/web.archive.org\/web\/20150206051520\/http:\/\/qtsixa.sourceforge.net\/\" target=\"_blank\" rel=\"noreferrer noopener\">QTSixA project<\/a>, we can!<\/p>\n\n\n\n<p><strong>Prerequisites:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>One PlayStation3 DualShock controller or compatible equivalent<\/li><li>One normal USB charge cable<\/li><li>Any Bluetooth adapter on your desktop PC or&nbsp;in-built&nbsp;in your laptop<\/li><\/ul>\n\n\n\n<p><strong>Procedure:<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>First we need to add the QTSixA project\u2019s PPA to your system. Open a terminal and type in the following and hit Enter:<br><br><code>$\u00a0sudo add-apt-repository ppa:falk-t-j\/qtsixa<\/code><br><\/li><li>You will be prompted about adding the repository. Just hit Enter:<br><br><code>You are about to add the following PPA to your system:<\/code><br><code>Packages for QtSixA and sixad software<\/code><br><br><code>To enable this repository in Karmic and Lucid:<\/code><br><code>sudo add-apt-repository ppa:falk-t-j\/qtsixa<\/code><br><br><code>In Jaunty and Intrepid, add the line to the software sources:<\/code><br><code>deb http:\/\/ppa.launchpad.net\/falk-t-j\/qtsixa\/ubuntu UBUNTU_VERSION main<\/code><br><br><code>More info: https:\/\/launchpad.net\/~falk-t-j\/+archive\/qtsixa<\/code><br><code>Press [ENTER] to continue or ctrl-c to cancel adding it<\/code><br><\/li><li>Once the PPA has been added, have your system\u00a0update\u00a0its cache of available software from the PPA\u2019s with:<br><br><code>$ sudo\u00a0apt-get update<\/code><br><\/li><li>Now let\u2019s install the QTSixA application:<br><br><code>$ sudo\u00a0apt-get install qtsixa<\/code><br><\/li><li>Now the fun can really begin! Get your PS3 controller and connect it to your system with its USB charge cable. The four red LED\u2019s on the back of the controller will begin to flash and if you issue an\u00a0<em>lsusb<\/em>\u00a0command you will see the controller listed:<br><br><code>$ lsusb<br>Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub<br>Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub<br>Bus 004 Device 003: ID 0480:a006 Toshiba America Info. Systems, Inc.<br>Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub<br>Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub<br>Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub<br>Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub<br><strong><span class=\"has-inline-color has-vivid-red-color\">Bus 001 Device 012: ID 054c:0268 Sony Corp. Batoh Device \/ PlayStation 3 Controller<\/span><\/strong><br>Bus 001 Device 003: ID 046d:08d7 Logitech, Inc. QuickCam Communicate STX<br>Bus 001 Device 004: ID 046d:c517 Logitech, Inc. LX710 Cordless Desktop Laser<br>Bus 001 Device 005: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)<\/code><br><\/li><li>Now let\u2019s pair the controller to your PC\u2019s Bluetooth adapter:<br><br><code>$ sudo\u00a0sixpair<br>Current Bluetooth master: 00:25:56:2e:7f:52<br>Setting master bd_addr to 00:1b:dc:00:3c:f1<\/code><br><\/li><li>We\u2019re nearly there! Now we just need to activate the controller so we can start using it! At this point you can now disconnect the USB cable (you don\u2019t have to, especially if you\u2019re still charging it) and enter the following command:<br><br><code>$ sixad --start<br>sixad-bin[13374]: started<br>sixad-bin[13374]: sixad started, press the PS button now<\/code><br><\/li><li>When prompted, press the PS button on your controller to activate it and the terminal will show something similar to the following:<br><br><code>sixad-sixaxis[13430]: started<br>New Device: 00:1E:3D:AA:82:6C PLAYSTATION(R)3 Controller (Bluetooth)<br>sixad-sixaxis[13430]: Connected 'PLAYSTATION(R)3 Controller (00:1E:3D:aa:82:6c)' [Battery 05]<\/code><br><\/li><li>That\u2019s it! Your PS3 controller is now connected! You can now start using it in games that support using it.<\/li><\/ol>\n\n\n\n<p><strong>Questions:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><em>Can you pair multiple controllers?<\/em><br>Yes! Just repeat the pairing process for all new controllers. The appropriate red LED number will light up on the controller to indicate which one it is.<br><\/li><li><em>The terminal is nice, but is there a GUI application to manage the controllers as well?<\/em><br>Yes! Just launch the QTSixA application from the Ubuntu Dash menu launcher.<br><\/li><li><em>I don\u2019t want to use my controller on my PC anymore \u2013 how do I reconnect it to my PS3?<\/em><br>Simply reconnect the controller to your PS3 via its USB charge cable and turn your PS3 on. This will immediately change its pairing to the PS3 and prevent it connecting to your PC anymore.<br><\/li><li><em>Can I have the controller paired with the PS3 and the PC at the same time?<\/em><br>No. The controller only allows for one master.<br>.<\/li><li><em>I notice there\u2019s a number of extra applications in the QTSixA suite. What are they for?<br><\/em>The package allows for connecting other PlayStation accessories such as the keyboard and remote as well as extended features for the controller itself. Refer to the\u00a0<a rel=\"noreferrer noopener\" href=\"https:\/\/web.archive.org\/web\/20150206051520\/http:\/\/qtsixa.sourceforge.net\/manual.pdf\" target=\"_blank\">documentation of the QTSixA project<\/a>\u00a0for more information.<\/li><\/ul>\n","protected":false},"excerpt":{"rendered":"<p>The ubiquitous&nbsp;Sony PlayStation3 DualShock controller. This controller has been around for ages now and IMO it\u2019s one of the nicest multi-button game controllers out there. One of its nicer features is that it has USB and Bluetooth connectivity. It\u2019s already been proven that you can connect a PS3 controller to Ubuntu using a standard USB [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-33","post","type-post","status-publish","format-standard","hentry","category-tutorials"],"_links":{"self":[{"href":"https:\/\/www.serenux.com\/index.php\/wp-json\/wp\/v2\/posts\/33","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.serenux.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.serenux.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.serenux.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.serenux.com\/index.php\/wp-json\/wp\/v2\/comments?post=33"}],"version-history":[{"count":1,"href":"https:\/\/www.serenux.com\/index.php\/wp-json\/wp\/v2\/posts\/33\/revisions"}],"predecessor-version":[{"id":34,"href":"https:\/\/www.serenux.com\/index.php\/wp-json\/wp\/v2\/posts\/33\/revisions\/34"}],"wp:attachment":[{"href":"https:\/\/www.serenux.com\/index.php\/wp-json\/wp\/v2\/media?parent=33"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.serenux.com\/index.php\/wp-json\/wp\/v2\/categories?post=33"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.serenux.com\/index.php\/wp-json\/wp\/v2\/tags?post=33"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}