2009-11-02, 13:17
Hi,
I got my BD Remote working with XBMC and LIRC in the following way:
1. Prerequisites
sudo apt-get cmake libbluetooth-dev lirc
YOU should know your BD remote Bluetooth address before
YOU MUST HAVE SUCCESSFULLY PAIRED THE BD DONGLE WITH YOUR REMOTE ONLY ONCE BEFORE
THIS CAN ALSO BE ON ANOTHER MACHINE. THE PS3 BD REMOTE REMEMBERS THE LAST DEVICE IT WAS SUCCESFULLY CONNECTED TO.
2. Download latest bdremoteng from
http://code.google.com/p/bdremote-ng/downloads/list
3. extract the content of the source archive file to /usr/src so you have /usr/src/bdremote-ng-0.4
4. Build bdremoteng
cd /usr/src/bdremote-ng-0.4/build
sudo ./gen.sh
cd /usr/src/bdremote-ng-0.4/build/linux/
sudo make
5. You should have now a bdremoteng we will copy that file
sudo cp /usr/src/bdremote-ng-0.4/build/linux/bdremoteng /usr/local/bin/
6. Now edit your /etc/rc.local file (change the Bluetooth adress)
7. Reboot
sudo shutdown -r now
8. Open a command shell
irw /dev/lircd
Press some buttons on remote can take a couple of seconds until you should see some out put like this
9. copy Lircmap.xml to ~/.xbmc/userdata
10. copy remote.xml to /home/xbmc/.xbmc/userdata/keymaps/remote.xml (the location somewhat changed in latest XBMC versions I also have this file in the userdata folder ) Use the content from the Keymap.xml described in that thread:
http://www.xbmc.org/forum/showthread.php?t=51842
11. reboot and XBMC should know your remote
I tested this on Ubuntu 9.0.4 and 9.10. and XBMC Installation.
Thanks to the following posters:
http://www.xbmc.org/forum/showthread.php?t=51842
http://ubuntuforums.org/archive/index.php/t-874284.html
Have fun!
I got my BD Remote working with XBMC and LIRC in the following way:
1. Prerequisites
sudo apt-get cmake libbluetooth-dev lirc
YOU should know your BD remote Bluetooth address before
YOU MUST HAVE SUCCESSFULLY PAIRED THE BD DONGLE WITH YOUR REMOTE ONLY ONCE BEFORE
THIS CAN ALSO BE ON ANOTHER MACHINE. THE PS3 BD REMOTE REMEMBERS THE LAST DEVICE IT WAS SUCCESFULLY CONNECTED TO.
2. Download latest bdremoteng from
http://code.google.com/p/bdremote-ng/downloads/list
3. extract the content of the source archive file to /usr/src so you have /usr/src/bdremote-ng-0.4
4. Build bdremoteng
cd /usr/src/bdremote-ng-0.4/build
sudo ./gen.sh
cd /usr/src/bdremote-ng-0.4/build/linux/
sudo make
5. You should have now a bdremoteng we will copy that file
sudo cp /usr/src/bdremote-ng-0.4/build/linux/bdremoteng /usr/local/bin/
6. Now edit your /etc/rc.local file (change the Bluetooth adress)
Code:
/etc/init.d/bluetooth stop
sleep 1
/usr/local/bin/bdremoteng -a 00:1E:3D:1A:E0:21 -p 8888 -t 20 &
sleep 1
# only required on Ubuntu 9.10, no /var/run/lirc directory on reboot
mkdir /var/run/lirc
/usr/sbin/lircd -H null --connect 127.0.0.1:8888
sleep 1
/etc/init.d/bluetooth start
# only required on Ubuntu 9.10, no /dev/lircd device so XBMC could not connect
ln -s /var/run/lirc/lircd /dev/lircd
exit 0
7. Reboot
sudo shutdown -r now
8. Open a command shell
irw /dev/lircd
Press some buttons on remote can take a couple of seconds until you should see some out put like this
Code:
0083 00 yellow SonyBDRemote
0083 00 yellow SonyBDRemote
0082 00 green SonyBDRemote
0081 00 red SonyBDRemote
...
9. copy Lircmap.xml to ~/.xbmc/userdata
Code:
<lircmap>
<remote device="SonyBDRemote">
<obc101>1</obc101>
<obc102>2</obc102>
<obc103>3</obc103>
<obc104>4</obc104>
<obc105>5</obc105>
<obc106>6</obc106>
<obc107>7</obc107>
<obc108>8</obc108>
<obc109>9</obc109>
<obc110>0</obc110>
<obc111>enter</obc111>
<obc112>up</obc112>
<obc113>right</obc113>
<obc114>down</obc114>
<obc115>left</obc115>
<obc116>circle</obc116>
<obc117>stop</obc117>
<obc118>pause</obc118>
<obc119>ps</obc119>
<obc120>prev</obc120>
<obc121>next</obc121>
<obc122>play</obc122>
<obc123>scanrev</obc123>
<obc124>scanfwd</obc124>
<obc125>cross</obc125>
<obc126>eject</obc126>
<obc127>select</obc127>
<obc128>l3</obc128>
<obc129>r3</obc129>
<obc130>start</obc130>
<obc131>l2</obc131>
<obc132>r2</obc132>
<obc133>l1</obc133>
<obc134>r1</obc134>
<obc135>triangle</obc135>
<obc136>topmenu</obc136>
<obc137>time</obc137>
<obc138>square</obc138>
<obc139>return</obc139>
<obc140>clear</obc140>
<obc141>popup</obc141>
<obc142>steprev</obc142>
<obc143>stepfwd</obc143>
<obc144>subtitle</obc144>
<obc145>audio</obc145>
<obc146>angle</obc146>
<obc147>display</obc147>
<obc148>blue</obc148>
<obc149>red</obc149>
<obc150>green</obc150>
<obc151>yellow</obc151>
</remote>
</lircmap>
10. copy remote.xml to /home/xbmc/.xbmc/userdata/keymaps/remote.xml (the location somewhat changed in latest XBMC versions I also have this file in the userdata folder ) Use the content from the Keymap.xml described in that thread:
http://www.xbmc.org/forum/showthread.php?t=51842
11. reboot and XBMC should know your remote
I tested this on Ubuntu 9.0.4 and 9.10. and XBMC Installation.
Thanks to the following posters:
http://www.xbmc.org/forum/showthread.php?t=51842
http://ubuntuforums.org/archive/index.php/t-874284.html
Have fun!