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)



- CSB! - 2011-06-09

ruff Wrote:Have you tried replacing batteries? Seems like rf channel dies and remote cannot pair back until explicitly turned on by powercycle

I actually did that and the problem went away. So silly of me.

http://www.youtube.com/watch?v=nn2FB1P_Mn8&t=0m10s


- ruff - 2011-06-11

oneiric ppa (4.94) uploaded to launchpad


- kitlaan - 2011-06-12

Hey all, I'm well underway on debug. (Ruff, your code gave me a good idea of why I was confused; the caller of the connadd function now assumes the connection will be setup after it finishes; if it's the very first time, that's not true. I wonder why the default code isn't hitting this problem.)

I should have packages up for lucid, natty and oneiric in the next few hours. (Lucid package for 4.91 will not include bluez-gstreamer (dependency issue), but I doubt anyone is using that package.)


- kitlaan - 2011-06-12

ruff Wrote:Have you tried replacing batteries? Seems like rf channel dies and remote cannot pair back until explicitly turned on by powercycle

Augh. Guess who ran into this while debugging reconnection logic. An hour of madness all because of low power.

For those counting, my (alkaline) batteries lasted for ~1.5 years.



Packages are uploading to the build queue at the moment.


- ruff - 2011-06-12

Well, they're not using connect callback (it's just a stub) so they skipped it for new device init. Sooner or later they will return it back anyway, once something useful is to be performed on device connect (as in our case).

Me too once at the very beginning of digging bluez stumbled upon low batteries and random remote's behaviour Smile


- dc2447 - 2011-06-12

my remote is working pretty well on maverick

Quote:bluez 4.69-0ubuntu2
bluez-alsa 4.69-0ubuntu2
bluez-cups 4.69-0ubuntu2
bluez-gstreamer 4.69-0ubuntu2
gnome-bluetooth 2.32.0-0ubuntu1
libbluetooth3 4.69-0ubuntu2
libgnome-bluetooth8 2.32.0-0ubuntu1
pulseaudio-module-bluetooth 1:0.9.22~0.9.21+stable-queue-32-g8478-0ubuntu21.1

the only gotcha was having to 0666 /dev/uinput

anyways, whilst the remote is great (and cheap) but how are people mapping more buttons, I am using the input.conf from the wiki but it's kinda limited - for example - no 'title' button


- kitlaan - 2011-06-13

@dc2447
You'll need either ruff's or my bluez PPA packages to get button remapping.
The default bluez sends a very specific set of keys, which are a pain to map.


- neil.j1983 - 2011-06-14

kitlaan, do you know where I can find a list of buttons which can be assigned to the ps3 remote?

can VK keys be assigned?

thanks


- ruff - 2011-06-15

All keys < 0xFF
In /usr/include/linux/input.h those which are in decimal and below 255 - rows 178-434
If you mean which keys you can define in input.conf - you can check list of available scans here f.i. https://launchpadlibrarian.net/73405535/bluez_4.94-0ubuntu1_4.94-0ubuntu1%2Bkitlaan1~oneiric.diff.gz those defined with ENTRY macro are available.


- neil.j1983 - 2011-06-18

thanks, that's really helpful


- hr21 - 2011-06-21

hi guys - i'm really struggling to map the keys correctly. Do you have any advice on how to do this?

I'm linking to the system over putty.

Thanks alot.


- CSB! - 2011-06-23

I'm going through a set of batteries every week... hopefully I won't have to read through 550 posts to figure it out...


- repvik - 2011-06-23

CSB! Wrote:I'm going through a set of batteries every week... hopefully I won't have to read through 550 posts to figure it out...

Which bluez do you use?


- CSB! - 2011-06-23

repvik Wrote:Which bluez do you use?

Code:
$ dpkg -l | grep bluez
ii  bluez                                     4.69-0ubuntu3~kitlaan1+maverick                   Bluetooth tools and daemons
ii  bluez-compat                              4.69-0ubuntu3~kitlaan1+maverick                   BlueZ 3.x compatibility binaries
ii  bluez-hcidump                             1.42-2                                            Analyses Bluetooth HCI packets
ii  bluez-pcmcia-support                      4.69-0ubuntu3~kitlaan1+maverick                   PCMCIA support files for BlueZ 2.0 Bluetooth tools
ii  python-bluez                              0.18-1                                            Python wrappers around BlueZ for rapid bluetooth development



- repvik - 2011-06-23

And your /etc/bluetooth/input.conf looks something like the one in this post?
http://forum.xbmc.org/showpost.php?p=811820&postcount=548

I haven't had the latest bluez-release for a week, so I can't tell if mine does the same yet. I'm on Natty though.
But now atleast my keybindings are working!