GNOME Bugzilla – Bug 555802
Add support for the PS3 Bluetooth remote
Last modified: 2008-10-17 14:09:08 UTC
Patch attached. Doesn't actually work as X will grab the input, but that'd be an lirc problem, not ours.
Created attachment 120340 [details] [review] glp-add-ps3-detection.patch
Created attachment 120521 [details] [review] Updated patch This patch includes: - a program to generate linux-input-layer-lircd.conf - an updated linux-input-layer-lircd.conf from the current linux/input.h
Created attachment 120539 [details] [review] Version 3 This patch also adds any input.keys or input.keyboard device without an x11 input driver as a possible remote. This means that adding support for a new input-based remote should be as easy as updating the fdi file.
Created attachment 120540 [details] [review] Add example remote Updated patch to include an example of such a remote (my small Keyspan RF remote).
Ok, here we go. I spent the last few days in hell... I needed an bluetooth remote to control an special dvb-t media system. So I bought an (Sony Computer Entertainment Inc BD Remote Control) I started on the bluez-devel mailinglist that said I should use the newest bluez git and apply some packages. I did this but it was still not working, after some investigation and some new patches the developers fixed the issue with some testing on my side. So now the latest bluez connectd the remote and greats an input event. (see attachemnt) I know the device is not broken because some script called cakemote.py could read and respond to the button presses. But the cakemote.py did not fitted my needs. I got an weblink to this page and the advice to use gnome-lirc-properties, so I tried building the system, also needed the latest lirc to get the build working so did that to. After building and isntalling everyghing started up the dialog but my remote was not found. I did not apply any patch to gnome-lirc-properties I just used the latest svn checkout. How can I get the remote working, any help is appreciated. Best regards, Jelle
Created attachment 120705 [details] Jelle de Jong - Sony Bluetooth BD Remote Control - Installation Guide - 2008-10-10 - v0.1.3j.txt http://filebin.ca/fxjd/bluez-gnome_1.8git_i386.deb http://filebin.ca/wnctqs/bluez-utils_4.13git_i386.deb http://filebin.ca/tngchu/gnome-lirc-properties-0.2.8svn_i386.deb http://filebin.ca/pnwxq/lirc-0.8.4svn_i386.deb
Bastien, this all looks very sensible. Please apply. Jelle, I guess you could try again after this has been applied to svn.
(In reply to comment #7) > Bastien, this all looks very sensible. Please apply. I need to rework this slightly. X doesn't grab the device anymore[1], so I'd probably revert the detection changes. I'll commit the updated linux-input-layer-lircd.conf though. [1]: http://who-t.blogspot.com/2008/10/new-keyboard-configuration-handling.html
2008-10-16 Bastien Nocera <hadess@hadess.net> * configure.ac: * data/Makefile.am: * data/linux-input-layer-lircd.conf: * data/lirc-generate-linux-input.c (load_include), (set_warnings), (main): Add program to generate an updated linux-input-layer-lircd.conf from the installed linux headers, so that we avoid bitrot and missing keycodes (Helps: #555802)
(In reply to comment #9) > 2008-10-16 Bastien Nocera <hadess@hadess.net> > > * configure.ac: > * data/Makefile.am: > * data/linux-input-layer-lircd.conf: > * data/lirc-generate-linux-input.c (load_include), (set_warnings), > (main): Add program to generate an updated > linux-input-layer-lircd.conf from the installed linux headers, > so that we avoid bitrot and missing keycodes (Helps: #555802) > Any change to get support for the remote working before the 19th this month, I have an deadline and would love to make it. Thanks in advance.
LIRC still sucks a bit when input devices appear/disappear (IIRC, it'll just kill itself when you remove the device on which it was configured). It also means I was able to avoid requiring an fdi file, and evdev specific configuration. 2008-10-17 Bastien Nocera <hadess@hadess.net> * gnome_lirc_properties/hardware.py: Detect input devices with the input.keys capabilities as well, Ignore "Video Bus" devices, fixes detection of the PS3 BD remote control, and other input device remote controls (Closes: #555802) <snip> > Any change to get support for the remote working before the 19th this month, I > have an deadline and would love to make it. Thanks in advance. I'm sure Murray would be happy contracting out for this sort of problems... At the same time, no offence, but it's not really our problem, or an appropriate thing to say in a bugzilla.
The lirc maintainer also does contract work. Personally I'd rather not work on the lirc source code.