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)



- hotdogger - 2010-05-02

I myself have never edited any of the xbmc keymappings, however I am using a newer version of xbmc from the svn repo's than I was previously.

Also, has anyone successfully gotten disconnect on timeout to work with Ubuntu Lucid? If my issue was just a keymapping related problem I don't see how it could affect the timeout settings.


- hotdogger - 2010-05-03

ok so I have updated bluez to 4.64, and the same thing is happening. the remote pairs, but will not timeout, and no matter how I adjust the keymaps in input.conf, nothing changes.

It is almost like the input.conf file is not being read at all, as even setting the general timeout value to 1 (ie 1 minute) the remote will not disconnect on timeout.


- TREX6662k5 - 2010-05-03

Contrary to what the wiki says, IdleTimeout is actually in seconds.

If you stop bluetoothd and start it as sudo bluetoothd -n -d it may help find whats wrong.
This link suggests its working though

http://www.gossamer-threads.com/lists/mythtv/users/430477

A small difference is that when my remote connects "adapter_get_device" is displayed instead of "Processing PS3 device"


- hotdogger - 2010-05-03

ok so I have solved my problem.

This may not have been the best way to do it, but i simply installed bluez from the kitlaan karmic repository and everything is working great. it times out properly, it registers as PS3 Remote when using bluetoothd -n -d and it works across reboots. I find it hard to believe what the wiki says regarding the patch already being applied to bluez 4.63 and above. But if anyone else is having the same problems, my solution works for the time being.


- TREX6662k5 - 2010-05-03

Well I've checked the bluez input changelogs and they did add something regarding idletimeout so I believe this is a bug.


- Blairboy - 2010-05-03

Yeah, i'm in the same boat. It's paired and all, but only the directional, number, and enter buttons work. It also doesn't time out at all. Using bluez-4.60-ubuntu8. Is there some change to the input.conf that I need to be aware of?


- TREX6662k5 - 2010-05-04

I've cleanly applied the patch to bluez 4.63 and it timesout fine.

All buttons work but they need to be remapped in input.conf. Looking at the XBMC log, xbmc does register the buttons but doesn't know how to react.

00:18:03 T:3023652736 M:2997739520 DEBUG: SDLKeyboard: scancode: 136, sym: 0, unicode: 0, modifier: 0
00:18:03 T:3023652736 M:2997739520 DEBUG: OnKey: 61618 pressed, action is Stop

00:18:07 T:3023652736 M:2997739520 DEBUG: SDLKeyboard: scancode: 127, sym: 19, unicode: 0, modifier: 0
00:18:15 T:3023652736 M:2997755904 DEBUG: SDLKeyboard: scancode: 127, sym: 19, unicode: 0, modifier: 0
^pause key, no action


- Blairboy - 2010-05-05

I was able to compile bluez under ubuntu lucid, but ran into a bunch of problems with all the other bluez packages (alsa and the like). Anybody got a full compile guide for all necessary packages?


- Blairboy - 2010-05-06

Should I ask that again to get a response?


- TREX6662k5 - 2010-05-06

Just use the kitlaan karmic deb.


- kitlaan - 2010-05-06

Sorry for being away for such a long time. Work/vacation/etc... sigh.

I'll update the patch to fix the s/minute/second/ bug.
Then I'll get packages up on the PPA for 4.64 (lucid,karmic,intrepid).

As far as I can tell, the base bluez 4.64 code doesn't have any of the changes.


kitlaan PPA -- bluez 4.64 - kitlaan - 2010-05-07

Here is the new patch for bluez 4.64. This is not compatible with earlier releases, so I kept the older (4.60 and earlier) version here.

I submitted karmic and lucid packages to the PPA; they should show up at soon. I tested a local karmic build, and it works fine so far. I don't have a lucid system up yet, so user beware.


- TREX6662k5 - 2010-05-08

Thank you!


- Dooley28 - 2010-05-08

Hey I followed these steps.

But I'm having an issue pairing the remote.

kitlaan Wrote:
  1. Install PPA: kitlaan PPA.
  2. Update and upgrade at least the bluez package. Also install the python-bluez package.
  3. Make sure the uinput kernel module is loaded. If not, run sudo modprobe uinput and add "uinput" to the file /etc/modules.
  4. Get the pairing program ps3_pair.tar.gz. Extract the archive (tar xvf ps3_pair.tar.gz) and run the script (python ps3_pair.py), while holding the ENTER and START keys on the remote for 7+ seconds. It should detect the remote.
  5. Run "/usr/share/doc/bluez/examples/list-devices" to verify that the remote is paired (and connected). Also, running "cat /proc/bus/input/devices | grep emot" should show the remote.
  6. Customize the file "/etc/bluetooth/input.conf" for button mappings and timeout values.
  7. At this point, the remote should connect (and auto-disconnect after a timeout, if configured). The d-pad is probably the best way to test it within xbmc. If you have a terminal active, pressing the number buttons should type the number.

Upon running ps3 pair and pressing the remote buttons I get these errors.

Code:
from: can't read /var/mail/bluez.Manager
./ps3_pair.py: line 7: syntax error near unexpected token `('
./ps3_pair.py: line 7: `def handler(signum, frame):'

And when I try run sudo /usr/share/doc/bluez/examples/list-devices I get this mess.
Code:
[ /org/bluez/7234/hci0 ]
Traceback (most recent call last):
  File "/usr/share/doc/bluez/examples/list-devices", line 37, in <module>
    properties  = adapter.GetProperties()
  File "/usr/lib/pymodules/python2.6/dbus/proxies.py", line 68, in __call__
    return self._proxy_method(*args, **keywords)
  File "/usr/lib/pymodules/python2.6/dbus/proxies.py", line 140, in __call__
    **keywords)
  File "/usr/lib/pymodules/python2.6/dbus/connection.py", line 620, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.UnknownMethod: Method "GetProperties" with signature "" on interface "org.bluez.Adapter" doesn't exist

Despite hcitool scan picking up my bluetooth device just fine.
BTW I'm running lucid, if that's an issue.


- GentooJose - 2010-05-09

Hi all,

some time ago the Down Button from my PS3 BD Remote stopped working in XBMC.

Here is what i get from the xbmc.log:

Code:
17:12:00 T:3025606512 M:1482309632   DEBUG: SDLKeyboard: scancode: 116, sym: 312, unicode: 0, modifier: 0
17:12:00 T:3025606512 M:1482309632   DEBUG: SDLKeyboard: scancode: 104, sym: 274, unicode: 0, modifier: 20
17:12:00 T:3025606512 M:1482309632   DEBUG: OnKey: 585768 pressed, action is

As in buttontranslator.cpp the right Scandode should be
0xF023 and not 8F028 (585768 in hex)

Adding

Code:
<o8f028>Down</o8f028>
in my remote.xml does not really help.


Did anyone experiended this Problem too?