[LINUX] HOW-TO Sony Bluetooth BD PS3 on with on Ubuntu 9.04 and 9.10 with LIRC
#31
I had problems pairing the BDremote with a cheap bluetooth dongle, one I bought for $0.99 on amazon. After tracking down the issue to the dongle hardware, I tried with a $5 dongle. Worked much better.

I used kbluetooth in Fedora 12 to do the pairing, worked well. For XBMC to see the keypresses, I needed to make the link to /dev/lircd:

/dev/lircd -> /var/run/lirc/lircd

To answer a question above, I put the maps in:
$HOME/.xbmc/userdata/keymaps/Keymap.xml
$HOME/.xbmc/userdata/Lircmap.xml

From the logs (see path below) I see these are being loaded on xbmc startup.

tail -f $HOME/.xbmc/temp/xbmc.log
...
NOTICE: special://masterprofile/ is mapped to: /home/fds/.xbmc/userdata
NOTICE: special://profile/ is mapped to: special://masterprofile/
NOTICE: special://xbmc/ is mapped to: /usr/local/share/xbmc
...
INFO: Loading special://masterprofile/keymaps/Keymap.xml
INFO: Loading special://profile/keymaps/Keymap.xml
INFO: Loading special://xbmc/system/Lircmap.xml

However, I have a problem. Lirc knows which keypress is happening, but XBMC does not assign it the correct action. For example, below the "right" keypress is assigned the null action.

DEBUG: LIRC: Update - NEW at 104042:0055 00 right SonyBDRemote (right)
DEBUG: OnKey: 242 pressed, action is
Reply
#32
Fixed. I used the Lircmap.xml and Keymap.xml (note capitalization matters) from http://forum.xbmc.org/showthread.php?tid=51842 and that worked fine.
Reply
#33
I find that even without bdremoteng and lirc my Fedora 12 x86_64 kernel is finding the Sony BDRemote (after pairing it with my dongle using kbluetooth) and xbmc sees its inputs. Great.

kernel:input: PS3 Remote Controller as /devices/virtual/input/input9

However the kernel:input assigns it the same device name as a normal USB keyboard, so xbmc cannot use a different Keymap!

DEBUG: SDLKeyboard: scancode: 116, sym: 274, unicode: 0, modifier: 0

Trying to work around it now. Sad
Reply
#34
Connected by Logitech Harmony PS3 Bluetooth Adapter to XBMC on Ubuntu 10.04 lts!

Steps I've taken to get this far
  • Compiled and Installed bdremote-ng 0.5 and all it's dependances
  • Disabled hid support via /etc/bluetooth/main.conf (added "DisablePlugins = input")
  • Saved the suggested 10.04 init scripts from http://code.google.com/p/bdremote-ng/wiki/initscripts
  • moved the bt_ready.sh into /usr/bin
  • moved the bdremote script into /etc/init.d
  • moved the bdremote_lirc script into /etc/init.d
  • updated the bdremote script with the dongle mac (hcitool dev) and remote mac, udpated the path to bt_ready.sh, upated the path to bdremoteng, remove the "-u user -g group" line from the bdremote script
  • Saved the keymap.xml and Lircmap.xml from http://forum.xbmc.org/showthread.php?tid=51842
  • moved Lircmap.xml to ~/.xbmc/userdata/
  • moved remotemap.xml to ~/.xbmc/userdata/keymaps/
  • Profit


I haven't updated rc.d since I don't understand update-rc.d, so the scripts won't autostart just as of yet.
Reply
#35
I´m having trouble with this.
What i have done is many,many things but i do a fresh install before trying somthing new.

The dongle and remote have been paired on a win7 system.
And i get the remote to show up as a bluetooth remote when looking for bluetooth devices (in win7).
When i did the pairing on win7 i choose to do it without any serial since i remember a read to do that on this board somewhere.
Is that ok or should i pair with serial?

sudo apt-get install bluez bluez-utils build-essential cmake libbluetooth-dev
Won´t work without sudo
But works ok and everything installs ok and no errors or fail.

wget http://kitlaan.twinaxis.com/holdingcell/ps3pair.tar.gz
Works
tar xvzf ps3pair.tar.gz
Works
python ps3_pair.py
Don´t work until i cd ~/ps3pair and run it again.
Then i get errors that dbus is not installed.

So i do.
sudo apt-get install dbus libbluetooth-dev python-dbus python-gobject python-bluez
Again it won´t work without sudo.
but with sudo it installs everything ok and no errors or fail.
Run ps3_pair.py again and gets this.

grizzly@XBMCLive:~/ps3pair$ python ps3_pair.py
ERROR:dbus.proxies:Introspect error on org.bluez:/: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.ServiceUnknown: The name org.bluez was not provided by any .service files
Traceback (most recent call last):
File "ps3_pair.py", line 93, in <module>
Main()
File "ps3_pair.py", line 20, in __init__
self.adapter = self.manager.GetAdapter()
File "/home/grizzly/ps3pair/bluez/utils.py", line 28, in warp
raise errors.parse_dbus_error(exception)
bluez.errors.DBusServiceUnknownError: The name org.bluez was not provided by any .service files
grizzly@XBMCLive:~/ps3pair$


I have now reinstalled xbmc live 10,1 7-8 times and tried many tips from wiki and from http://forum.xbmc.org/showthread.php?tid=50717&page=54 and a couple off more treads and some on other sites.

But i ALWAYS get the same errors when trying to run the pair script.
First that dbus is not installed i install that and get the one above.
And the really irritating blue diod on the dongle never lights up (only lights up on win7).

And about choosing this or any other metod to get the remote working i don´t really care about now.
As long as i get it to work at all Sad
What diffrence is it in the end using the diffrent metods?

Doing lsusb i get this.
XBMCLive:~/ps3pair$ lsusb
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 004: ID 0a5c:4503 Broadcom Corp.
Bus 005 Device 003: ID 0a5c:4502 Broadcom Corp.
Bus 005 Device 002: ID 0a5c:4500 Broadcom Corp. BCM2046B1 USB 2.0 Hub (part of BCM2046 Bluetooth)
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 003: ID 045e:0047 Microsoft Corp. IntelliMouse Explorer 3.0
Bus 003 Device 002: ID 058f:9254 Alcor Micro Corp. Hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
grizzly@XBMCLive:~/ps3pair$

And i guess that BCM2046B1 is the dongle.
The dongle is a belkin F8T016ne and i have read on a couple off boards that it works well in linux.
Reply

Logout Mark Read Team Forum Stats Members Help
[LINUX] HOW-TO Sony Bluetooth BD PS3 on with on Ubuntu 9.04 and 9.10 with LIRC1