{"id":363,"date":"2009-10-21T00:29:02","date_gmt":"2009-10-20T14:29:02","guid":{"rendered":"http:\/\/brnz.org\/hbr\/?p=363"},"modified":"2009-10-21T23:12:12","modified_gmt":"2009-10-21T13:12:12","slug":"sixaxis-as-joystick-and-mouse-over-bluetooth","status":"publish","type":"post","link":"https:\/\/brnz.org\/hbr\/?p=363","title":{"rendered":"sixaxis as joystick and mouse over bluetooth"},"content":{"rendered":"<p>sixaxisd is a little daemon that will translate sixaxis input, sent via bluetooth, into joystick and (optionally) mouse input.\u00a0 I found it as part of the pdaXrom-ng distro, available <a href=\"http:\/\/www.pdaxrom.org\/index.php\/Bootable_CD_for_PS3\">here<\/a>.<\/p>\n<p>To set it up, grab the source <a href=\"http:\/\/mail.pdaxrom.org\/downloads\/PS3\/bootloader\/src\/sixaxisd-0.2.1.tar.bz2\">here<\/a>, unpack, apply the patch from <a href=\"http:\/\/brnz.org\/f\/sixaxisd-0.2.1-axes_fix.patch\">here<\/a> (which fixes a couple of axis mappings) and compile using make.<\/p>\n<p>You need a kernel with uinput support (Device drivers -&gt; Input device support -&gt; Miscellaneous devices -&gt; User level driver support &#8211; or CONFIG_INPUT_UINPUT) and appropriate bluetooth support (I use ps3_defconfig&#8217;s defaults in this area), although you don&#8217;t need any particular system bluetooth services running &#8211; we set that up ourselves.<\/p>\n<p>To configure the bluetooth device using hciconfig (which is part of Debian&#8217;s bluez package), run the following commands &#8211;<\/p>\n<pre>hciconfig hci0 up        # bring up the interface\r\nhciconfig hci0 lm master # set link mode to master\r\nhciconfig hci0 piscan    # enable page and inquiry scan<\/pre>\n<p>And then start the daemon &#8211;<\/p>\n<pre># optional -mouse param provides mouse emulation\r\n.\/sixaxisd -mouse<\/pre>\n<p>Hit the PS button on the controller to bring it to life &#8211; all going well, there device nodes \/dev\/input\/js0 and \/dev\/input\/mouse0 will be created.<\/p>\n<p>There&#8217;s an init script to handle the hci configuration and\u00a0 all of this that may be found <a href=\"https:\/\/pdaxrom.svn.sourceforge.net\/svnroot\/pdaxrom\/trunk\/pdaXrom-ng\/generic\/etc\/init.d\/sixaxismouse\">in the pdaXrom svn repo<\/a>.<\/p>\n<p>(I use my sixaxis with my PS3 &#8211; if you want to use it with a different system, you&#8217;ll need to use sixpair, available <a href=\"http:\/\/www.pabr.org\/sixlinux\/sixlinux.en.html\">here<\/a>)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>sixaxisd is a little daemon that will translate sixaxis input, sent via bluetooth, into joystick and (optionally) mouse input.\u00a0 I found it as part of the pdaXrom-ng distro, available here. To set it up, grab the source here, unpack, apply the patch from here (which fixes a couple of axis mappings) and compile using make. &hellip; <a href=\"https:\/\/brnz.org\/hbr\/?p=363\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;sixaxis as joystick and mouse over bluetooth&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[5,8],"tags":[14,15,13,12],"_links":{"self":[{"href":"https:\/\/brnz.org\/hbr\/index.php?rest_route=\/wp\/v2\/posts\/363"}],"collection":[{"href":"https:\/\/brnz.org\/hbr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/brnz.org\/hbr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/brnz.org\/hbr\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/brnz.org\/hbr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=363"}],"version-history":[{"count":9,"href":"https:\/\/brnz.org\/hbr\/index.php?rest_route=\/wp\/v2\/posts\/363\/revisions"}],"predecessor-version":[{"id":371,"href":"https:\/\/brnz.org\/hbr\/index.php?rest_route=\/wp\/v2\/posts\/363\/revisions\/371"}],"wp:attachment":[{"href":"https:\/\/brnz.org\/hbr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=363"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/brnz.org\/hbr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=363"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/brnz.org\/hbr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=363"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}