Using PS3 BD Remote with Ubuntu Linux
Posted on March 4th, 2009 in Python, Ubuntu |
(There is now 2nd part of this post. Check it out.)
So, you want to use PS3 BD (bluetooth) remote with your computer which is running Ubuntu. Great. Here you can find all the information needed to accomplish this. All the scripts are written by me so your feedback is very appreciated. I’m using D-Link DBT-122 Bluetooth adapter (all bluetooth adapters should work) with already mentioned PS3 BD Remote (Model CECHZR1E) on Ubuntu 8.10 (Intrepid Ibex).
First of all, you need to install all the required applications:
sudo apt-get install bluez-utils python-bluez
Next, we need to find out bluetooth address of remote. On remote press start+enter and on computer start hcitool for scanning bluetooth devices:
hcitool scan
You will get output similar to this:
Scanning ... 00:82:7C:B9:14:7A BD Remote Control
Copy address of remote as we will need it in a second. If the scanning command provide no results, you should try it several times.
Next, download required scripts and extract them:
wget http://h00s.net/ps3bdremote.tar.gz tar xvzf ps3bdremote.tar.gz cd ps3bdremote
Now open ps3bdremote-test.py file (gedit ps3bdremote-test.py) and change address of remote (approx. 27th line) to match the address you did get with hcitool:
remote = ps3bdremote.PS3BDRemote("00:82:7C:B9:14:7A")
That’s all configuring. Let’s test it. On remote again press start+enter and start the testing script:
python ps3bdremote-test.py
Output should be similar to this:
Trying to connect to PS3 BD Remote... Trying to connect to PS3 BD Remote... Trying to connect to PS3 BD Remote... Connected
If you have problems connecting to remote, terminate script. Press start+enter and immediatly after that start testing script. Eventually, it will connect with remote. After that press buttons on your remote and it will display pressed keys:
audio releasedbutton play releasedbutton eject releasedbutton
That’s it. Now it would be cool if you could use these buttons to play/pause player on your computer, start tvtime etc. Well, you can. I will explain how in next post. To be continued
Scripts: ps3bdremote.tar.gz

15 Responses
Thanks! Great and concise guide!

When you’ll teach us how to use it with XBMC?
Tommaso
Thanks Tommaso! I will post sequel to this post very soon, tomorrow maybe! Stand by
ive just hacked in lirc support using code out of anyremote-lirc in like 5 minutes, so excuse the mess.
it just works, so im sure you will make a better version out of it and put it somewhere for us
it would be really nice to fix this autopairing ..
http://www.mathematik.uni-freiburg.de/IAM/homepages/ainan/ps3bdremote-lirc.tar.gz
ahmet
Time for the sequel??
Yep, it’s definitely time for sequel
sorry for keeping you waiting! I’m preparing all the needed stuff on http://github.com/h00s/ps3bdremote I hope I finalize very soon (I want to define all multimedia keys so you don’t have to ;))
[...] get to work. I assume you have done all the “work” from part 1. If not, do it now. Next, we need library to emulate keyboard [...]
D-Link DBT-122 worked fine with Ubuntu 8.04 (Bluez 3.xx) but support seems to be broken with 8.10 and 9.04 with Bluez 4.xx. Which kernel do you use? Which version of Bluez?
There seems to be two different DBT-122 (with different ID). Mine is as hereunder. The other is filed as D-Link System, ID 07d1:f101
In the case of ID 2001:f111 D-Link Corp. [hex] DBT-122 Bluetooth adapter, it seems that it was not so much a kernel bug than a bluez bug:
It still does NOT work with kernel 2.6.29 and the regular Bluez 4.3x from the Ubuntu distribution.
It DOES work OK with Bluez 4.40-2 from Debian.
@Dominique: yeah, I have DBT-122 (07d1:f101 D-Link System DBT-122 Bluetooth). I had no problem with it in 8.10 and it’s working ok in 9.04 too.
Now I’m using Ubuntu 9.04 with 2.6.28-11-generic kernel, Bluez version 4.32-0ubuntu4, python-bluez version 0.16-1ubuntu1.
I didn’t know that there are 2 versions of DBT-122 and that one of them isn’t working :/. Thanks for the heads up!
Thanks!!! It works!!!
I’m glad it works for you! Thanks for the feedback
Thankyou works perfect
XBMC rocks, thanks for the info.
h00s help me please. im new to linux.
I followed ur intructions exactly and it just keeps repeating
Trying to connect to PS3 BD Remote…
Trying to connect to PS3 BD Remote…
Trying to connect to PS3 BD Remote…
it will never connect, i just pushed start and enter for 5 seconds; ive paired it with a few other bluetooth utilities ive downloaded from the ubuntu software center, but for some reason it wont connect when trying to run the python file. oh dear
How Ubuntu’s broken bluetooth support came to be…
Pairing up your Bluetooth device was relatively well documented, by the community anyway. It was mostly done using the bluez package from bluez.com. Ubuntu town and in fact all of Linux land was generally at peace and the trendy folk at the BlueTooth B…