Copied from the
XBMScript thread:
UPDATE 10-02-2009- PS3 Bluetooth Remote support. A very special thanks to walmis (blueman developer)
- Fixed minor bugs and redesigned the questions asked on installation
XBMScript is the first program that has ps3 bluetooth remote support integrated and does not require the tedious process of having a Graphical Desktop (such as GNOME) just to run the blueman-applet
For this feature I would like to give a special shout out to:
walmis: for the ps3_pair program. Without him the ps3 remote pairing would be a lot more difficult! Be sure to check out
http://blueman-project.org for the best bluetooth applet on GNOME!
kubax: for all the brainstorming and bluez headaches we shared together
ruff: ps3 remote powersaving and keymapping patches
-------------------------------
It have been a couple of very long days, but I shall explain the technical details here so that you can all enjoy easy ps3 remote usage.
I've had a long and entertaining brainstorm session with kubax to get the ps3 remote initially working with xbmc. During this we discovered that
the latest version of bluez supports ps3 remote keymapping and powersaving out of the box! We don't know if ruff's patches got accepted upstream, but this also fixed the problem that kubax had with his remote after he disconnected and reconnected his remote.
This process was done using the latest bluez from the official ubuntu repository and the blueman applet.
After this got figured out I started working on a now graphical way of discovering and pairing the remote. I soon discovered that this was completely impossible with its current commandline tools.
Since the blueman-applet is in fact capable of properly creating the connection and setting up authorization and the input device I decided to have a chat with
walmis the maintainer of blueman and owner of
http://blueman-project.org.
His help has been very generous and he created a python program that uses the bluez API to:
- Discover the remote
- Enumerates a list of bluetooth devices and automatically selects the PS3 BD Remote
- Sets up pairing
- Connects it as a input device
The only issue that remains with the remote setup is that it can't redirect uinput by default. This is circumvented by first running "modprobe uinput" before starting bluetoothd.
To archieve this i removed bluetooth as a service and added "modprobe uinput" and "bluetoothd" to rc.local.
Not all buttons work, but I believe this will be fixed soon enough when ruff's keymapping patch gets accepted at the bluez source. However, the most important buttons (navigation, video buttons) do work.
To easily install the ps3 bluetooth remote without
XBMScript use this script:
Code:
apt-get install bluez -y
wget http://flx.me/script/ps3_pair.tar.gz
tar -xzvf ps3_pair.tar.gz
echo -e '\E[1;37m\033[1mHold the ENTER and START key remote for 7 seconds after pressing any key\033[0m'
echo Press a key to continue
read -n1 any_key
verify="n"
while [ "$verify" != y ]
do
python ps3_pair.py
echo "Did the Remote got detected and set up? If no, it shall repeat the process(y/n)"
read verify
done
echo "PS3 Remote installation succesful, press any key to reboot"
read -n1 any_key
update-rc.d -f bluetooth remove
echo modprobe uinput > /etc/rc.local
echo /usr/sbin/bluetoothd >> /etc/rc.local
echo "exit 0" >> /etc/rc.local
reboot
Any questions I'll be happy to answer
Regards,
Dennis