First make sure your PS3 is turned off from the back! The first few times I tried it, my PS3 kept turning on. Also make sure you have libusb-devel installed and have your Bluetooth dongle, adapter, or whatever connected already.
sudo yum install libusb libusb-devel
It is necessary for when you pair your Sixaxis over USB cable because the controller can't be paired like a conventional Bluetooth product. It is argueably supposed to be "more secure". I disagree but anyways.
Next, download the sixpair.c command line utility. This will search all USB ports and check if a Sixaxis is connected. If it is, it will pair with it.
Compile it with:
gcc -o sixpair sixpair.c -lusb
You should get a binary where in your home folder named sixpair
. What I did is move this binary to my /usr/bin folder so I can just do everthing as root.
sudo mv sixpair /usr/bin
Ok we are ready to get connected. Make yourself root by using the su -
Restart your Bluetooth service:
service bluetooth restart
Connect your Sixaxis and run the pairing utility "sixpair":
and you should get something like this:
[root@localhost ~]# sixpair
Current Bluetooth master: 00:0a:3a:59:99:21
Setting master bd_addr to 00:0a:3a:59:99:21
Disconnect your Sixaxis and restart the HIDP daemon:
hidd --server --nocheck -n
Press the PS button and you should see something like this:
[root@localhost ~]# hidd --server --nocheck -n
hidd: Bluetooth HID daemon
hidd: New HID device 00:1B:FB:78:FD:55 (Sony Computer Entertainment Wireless Controller)
Now open a new terminal and check to see if the buttons register when you press them:
jstest /dev/js0<----(change the number if you already have a joystick plugged in)
If that doesn't work use:
jstest /dev/input/js0<----(again change the number if you have a joystick connected)
You should see a huge list of numbers that change everytime that you press a button or move an analog stick. And there you have it, Sixaxis over bluetooth.
I want to give every piece of credit to the guy who could make this possible. This
is where I got all of this from.
Now there is one thing that I would like to point out. If you have the RTL8187B "Integrated" USB Adapter, libusb-devel will kill your connection with it. It took me a long time to realize this, and found out when I installed the Windows version on Vista and I lost my wireless connection. I just install it when I want to connect my Sixaxis and uninstall it when I am not using my Sixaxis. Not the best solution but it works.