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)



- kitlaan - 2010-07-16

xbmc-ps3 Wrote:Is there any info that we could collate that would be of use?

Sadly, I don't know enough about the pairing/connection process yet to even know what I need to look for. I need to get some extra hardware at some point to experiment with (as my wife would kill me if I broke the system).

Maybe the brand/information of the bluetooth dongle would be a start, just to see if there's any commonality in problems... At least the Sony PS3 remote is all the same, otherwise the sheer combinations would be a nightmare Smile.


- xbmc-ps3 - 2010-07-16

Belkin Mini - F8T016ng here.


- Macsauce - 2010-07-18

Hello,

I have followed the how to step by step.

The connection work great. the time setting for disconnecting work too.

Actually, I'm not able to map the touch. only some key's work.
dpad, enter, PS....

what can i do for mapping the other key's?

I have the same input.conf of the how to.

Regards


- manemies - 2010-07-20

Anyone rebuilt such an input.conf that has more functions assigned to the PS3 remote ? Volume buttons would be nice. And it looks like theres many buttons 'free'. L1-L3, R1-R3 & all color buttons..

If someone has a "good" input.conf, please post it !


- zipleen - 2010-07-21

I've been trying to get my ps3 bd remote to work with the hid patch for sometime now and I finnaly got it working, with the help of this thread.
The problem is the information on this thread is really spread across the pages, so I made a blog post detailing my experience with this.
If you want you can check it out in http://blog.lvengine.com/articles/ps3-bd-remote-in-linux-for-xbmc ( basically, the fix was setting the bluetooth dongle in MASTER mode - it always started started in slave mode, so the auto-reconnect did not work)

btw: i posted my input.conf and xml keymap in there.


- Macsauce - 2010-07-22

hello,

Quote:Hello,

I have followed the how to step by step.

The connection work great. the time setting for disconnecting work too.

Actually, I'm not able to map the touch. only some key's work.
dpad, enter, PS....

what can i do for mapping the other key's?

I have the same input.conf of the how to.

Regards

Could explain to me what i forget. because I'm not able to map the touch.

here is the how to:

http://wiki.xbmc.org/index.php?title=HOW-TO_Setup_PS3_BD_Remote

i use de depo kitlaan's PPA and i'have mythbuntu 10.04.

@+


- tume2 - 2010-07-31

I got this figured out, i installed bluez-4.63 from here http://www.kernel.org/pub/linux/bluetooth/ and patched it with bluez_ps3remote_4.60.diff from here http://kitlaan.twinaxis.com/projects/bluez-ps3remote/ (i could not get never versions to apply patches)

When you start bluetootg with command bluetooth -nd you can see the button presses in terminal.


Example how to modify your input.conf;
0x16 = KEY_E # EJECT

if you want remotecontroll button eject to get volume up, you look at the file /usr/include/linux/input.h for volume. I found it with cat /usr/include/linux/input.h|grep VOL and found out that KEY_VOLUMEUP is vol up, so changing the line
0x16 = KEY_E # EJECT
to
0x16 = KEY_VOLUMEUP # EJECT
changes the eject button on remote controll to volume up.

I hope this helps.


- Macsauce - 2010-08-07

Thx for your answere tume2, modifiy the "/etc/bluetooth/input.conf" is not really the problem. only some key's work :dpad, enter, PS....
when i run in terminal:
Quote:macsauce@mythtv:~$ bluetoothd -nd
bluetoothd[1846]: Bluetooth deamon 4.69
bluetoothd[1846]: src/main.c:/parse_config() parsing main.conf
bluetoothd[1846]: src/main.c:/parse_config() discovto=0
bluetoothd[1846]: src/main.c:/parse_config() pairto=0
bluetoothd[1846]: src/main.c:/parse_config() pageto=8192
bluetoothd[1846]: src/main.c:/parse_config() name=%h-%d
bluetoothd[1846]: src/main.c:/parse_config() class=0x000100
bluetoothd[1846]: src/main.c:/parse_config() discov_interval=0
bluetoothd[1846]: src/main.c:/parse_config() Key file does not have key 'DeviceID'
bluetoothd[1846]: Unable to get on D-Bus
I can't see the buttons pressed.

I have tried to patch the file src but neither works for me.
Quote:macsauce@mythtv:/usr/local/src/bluez-4.69$ sudo patch -p0 < ../bluez_ps3remote_4.69.diff
patching file b/input/device.c
Hunk #1 FAILED at 465.
Hunk #2 FAILED at 602.
Hunk #3 FAILED at 638.
Hunk #4 FAILED at 779.
Hunk #5 FAILED at 1285.
5 out of 5 hunks FAILED -- saving rejects to file b/input/device.c.rej
patching file b/input/device.h
Hunk #1 FAILED at 29.
Hunk #2 FAILED at 36.
Hunk #3 FAILED at 53.
3 out of 3 hunks FAILED -- saving rejects to file b/input/device.h.rej
patching file b/input/fakehid.c
Hunk #1 FAILED at 48.
Hunk #2 FAILED at 92.
Hunk #3 FAILED at 147.
Hunk #4 FAILED at 165.
Hunk #5 FAILED at 183.
Hunk #6 FAILED at 204.
Hunk #7 FAILED at 213.
Hunk #8 FAILED at 234.
Hunk #9 FAILED at 295.
Hunk #10 FAILED at 309.
Hunk #11 FAILED at 373.
Hunk #12 FAILED at 380.
12 out of 12 hunks FAILED -- saving rejects to file b/input/fakehid.c.rej
patching file b/input/fakehid.h
Hunk #1 FAILED at 37.
1 out of 1 hunk FAILED -- saving rejects to file b/input/fakehid.h.rej
patching file b/input/input.conf
Hunk #1 FAILED at 4.
1 out of 1 hunk FAILED -- saving rejects to file b/input/input.conf.rej
patching file b/input/manager.c
Hunk #1 FAILED at 41.
Hunk #2 FAILED at 72.
Hunk #3 FAILED at 184.
Hunk #4 FAILED at 203.
4 out of 4 hunks FAILED -- saving rejects to file b/input/manager.c.rej
patching file b/src/device.c
Hunk #1 FAILED at 991.
Hunk #2 FAILED at 1022.
Hunk #3 FAILED at 1238.
3 out of 3 hunks FAILED -- saving rejects to file b/src/device.c.rej
Someone have an suggestion?
Thx A+


- kitlaan - 2010-08-07

@Macsauce

#1) You probably have an existing bluetoothd process running. Stop that first, then try the bluetoothd command again. (You may also need to run as sudo/root.)

#2) When patching the source, you need "patch -p1". "-p0" is why you're not getting any matches.


- Macsauce - 2010-08-08

Hello,

Everything work great now

Thx for the patch and help

@+Big Grin


- chrisse111179 - 2010-08-26

Hello,

i have installed bluez 4.69 from Kitlaan's ppa and paired the Ps3 Remote with the ps3pair script but only a few Buttons on the Remote are working.

What am I doing wrong?


- velcroshooz - 2010-09-03

Just wanted to let everyone know, the 4.69 patch works against bluez 4.70 as well.


- pumkinut - 2010-09-04

chrisse111179 Wrote:Hello,

i have installed bluez 4.69 from Kitlaan's ppa and paired the Ps3 Remote with the ps3pair script but only a few Buttons on the Remote are working.

What am I doing wrong?
More than likely you need to edit input.conf. Read the thread entries about it, and you can also check out the wiki to get a more concise howto.


- neil.j1983 - 2010-09-04

anyone know what "KEY_" value actually ejects the dvd drive? it's the only thing i can't get to work!


- snock - 2010-09-06

neil.j1983 Wrote:anyone know what "KEY_" value actually ejects the dvd drive? it's the only thing i can't get to work!


It is the only thing that I have to configure: (, probe KEY_EJECTCD & KEY_EJECTCLOSECD ... and nothing Blush

Es lo unico que me falta por configurar Sad , probe KEY_EJECTCD & KEY_EJECTCLOSECD ... y nada