Kodi Community Forum
[LINUX] Sony PlayStation 3 Blu-ray Disc Remote (PS3 BD) + LIRC + XBMC = SUCCESS - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: Linux (https://forum.kodi.tv/forumdisplay.php?fid=52)
+---- Thread: [LINUX] Sony PlayStation 3 Blu-ray Disc Remote (PS3 BD) + LIRC + XBMC = SUCCESS (/showthread.php?tid=50717)



- Amelandbor - 2009-10-27

Hmmm, this is extremely weird. I was just in my minimal install to try something and for some reason the remote works here also right now :|


- akex - 2009-10-29

Any idea to make circle button to work as Backspace ?


- flxfxp - 2009-10-29

Edit the source, recompile.


- akex - 2009-10-29

Ok, i thought so, but in the source, circle is mapped to back ...

Code:
    [0x5d] = KEY_BACK,        /* back/circle */



- akex - 2009-10-30

Ok, it works now, replaced by :

Code:
    [0x5d] = KEY_BACKSPACE,    /* back/circle */



- flxfxp - 2009-10-30

good Smile


- TREX6662k5 - 2009-11-02

Its tempting to try this, but this doesn't follow Ubuntu's packaging methods? It will cause problems down the line when updating/adding software?


- folecr - 2009-11-03

I now have my PS3 remote working.

  1. Install Ubuntu 9.10
  2. Install XBMC as desktop (See instructions in Wiki.) ie. no Gnome running.
  3. Plug in USB bluetooth adapter. I had (and sometimes still have) problems with my USB bluetooth adapter not initializing on reboot. lsusb will not show the bluetooth adapter. Unplugging and plugging it back in solves the problem and the adapter is detected.
  4. Follow instructions to load the input module from http://popey.com/blog/2009/08/06/acer-aspire-revo-ubuntu-boxee-and-remote-control/ Thanks Amelandbor! (Note : But didn't use LIRC.)
  5. At this point I had the remote working with XBMC, with all the issues originally seen by flxflp.
  6. Build AMD64 version of patched bluez and install
Everything's working now!

One suggestion :

Update the deb package control to have the name "bluez" with version "4.54_ruff_flxflp" or something so that Ubuntu's package management system detects bluez as installed. If not, bluez-patched does not satisfy the bluez >= 4.25 dependency required by blueman, etc.

(Not that you need blueman though!)

Thanks!


Tweaked code - kitlaan - 2009-11-03

I used ruff and flxflp's code as a base and made it a lot cleaner and customizable. It's been working for me (tested for only an hour so far).

If other people would like to try it out, my PPA will have a build at some point for Karmic: https://launchpad.net/~kitlaan/+archive/ppa (It's in the build queue... I can probably upload amd64 binaries if anyone wants to try before it's done.) Here's the patch if anyone cares: http://kitlaan.twinaxis.com/holdingcell/bluez_ps3remote.diff

The primary changes are:
  • Made code better fit the style of the original bluez code.
  • Made the key map run-time configurable via input.conf.
  • Fixed some bluez bugs when disconnecting the remote.

Make sure to "modprobe uinput" (or add it to /etc/modules). Pairing the remote still requires the ps3pair python scripts. (I'll be making a deb with a pair/unpair script at some point.)


- TREX6662k5 - 2009-11-03

PPA is very handy, ta!


- pfriederichs - 2009-11-05

Could anyone please explain to me (i've been pulling my hair out over getting this damn remote to work). Once the PS3 BD remote is paired via. py_pair.py what is next? It does not work in XBMC but I can pair the remote.

I have using xbmscript.sh on XBMC Live (Installed to HDD). I have read through this thread several times and it seems 1 thing is working for 1 person and something else for another. I am by no means a advanced Linux user but would love to use this remote vs the RF route.

I appreciate the time anyone can take to please help with this -- again any assistance would be HIGHLY appreciated.

Thanks!


- kubax - 2009-11-05

have a look what bluez version is running...

call /usr/local/bin/bluetoothd -n -d

and look in the first 3 lines what version it is... should be 4.54...

btw. on my site it runs perfect, (exept timeout, but input.conf isn't set for now)

kubax


- folecr - 2009-11-05

pfriederichs Wrote:Could anyone please explain to me (i've been pulling my hair out over getting this damn remote to work). Once the PS3 BD remote is paired via. py_pair.py what is next? It does not work in XBMC but I can pair the remote.

I have using xbmscript.sh on XBMC Live (Installed to HDD). I have read through this thread several times and it seems 1 thing is working for 1 person and something else for another. I am by no means a advanced Linux user but would love to use this remote vs the RF route.

I appreciate the time anyone can take to please help with this -- again any assistance would be HIGHLY appreciated.

Thanks!

Please describe all the steps you followed... perhaps someone will be able to help then.


- pfriederichs - 2009-11-05

kubax Wrote:have a look what bluez version is running...

call /usr/local/bin/bluetoothd -n -d

and look in the first 3 lines what version it is... should be 4.54...

btw. on my site it runs perfect, (exept timeout, but input.conf isn't set for now)

kubax

bluetoothd[3025]: Bluetooth daemon 4.54
bluetoothd[3025]: Enabling debug information
bluetoothd[3025]: parsing main.conf
bluetoothd[3025]: discovto=0
bluetoothd[3025]: pairto=0
bluetoothd[3025]: pageto=8192
bluetoothd[3025]: name=%h-%d
bluetoothd[3025]: class=0x000100
bluetoothd[3025]: discov_interval=0
bluetoothd[3025]: Key file does not have key 'DeviceID'
bluetoothd[3025]: Unable to get on D-Bus

Thanks!


- pfriederichs - 2009-11-05

folecr Wrote:Please describe all the steps you followed... perhaps someone will be able to help then.

1. Fresh install of XBMCLive to HDD

2. wget http://flx.me/script; chmod +x xbmscript.sh; sudo ./xbmscript.sh

3. I run the script install the software and then pair (works). However before this will work I have to do an sudo apt-get install python-dbus or the ps_pair.py script will not work.

I appreciate any help I am by no means an idiot I just don't have much experience with Linux and 3 days of trying to get this work is wearing me down.