Using PS3 Sixaxis Controller as a Joystick via Bluetooth

From LinuxMCE
Revision as of 04:21, 5 September 2008 by IOU (Talk | contribs) (New page: It is VERY easy to set up your PS3 Controller to act as a bluetooth joystick for changing channels in MythTV Here is a short howto: USB Pairing #Connect the controller to a USB port. #R...)

(diff) ←Older revision | view current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search

It is VERY easy to set up your PS3 Controller to act as a bluetooth joystick for changing channels in MythTV

Here is a short howto:

USB Pairing

  1. Connect the controller to a USB port.
  2. Run sixpair
    1. Download <a href="https://help.ubuntu.com/community/Sixaxis?action=AttachFile&do=get&target=sixpair.c">sixpair.c</a> (save to a directory such as /home/linuxmce)
    2. Compile sixpair using
           gcc -o sixpair sixpair.c -lusb
    1. Run sixpair
           sudo ./sixpair

sixpair will echo

           Current Bluetooth master: xx:xx:xx:xx:xx:xx
           Setting master bd_addr to xx:xx:xx:xx:xx:xx
  1. Disconnect the USB cable

Bluetooth Monitoring

  1. Stop the BlueTooth service
     sudo /etc/init.d/bluetooth stop
  1. Make sure all hcid processes are stopped
     sudo killall hcid
  1. Run HIDP daemon in terminal
     hidd --server --nocheck -n
    1. Press the PS button on the Sixaxis hidd should echo
           hidd[pid]: Bluetooth HID daemon
           hidd[pid]: New HID device 00:19:C1:xx:xx:xx (Sony Computer Entertainment Wireless Controller)
    1. Press Ctrl+C to end the process
  1. Start the BlueTooth service
     $sudo /etc/init.d/bluetooth start