After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 555802 - Add support for the PS3 Bluetooth remote
Add support for the PS3 Bluetooth remote
Status: RESOLVED FIXED
Product: gnome-lirc-properties
Classification: Other
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Mathias Hasselmann (IRC: tbf)
gnome-lirc-properties-maint
Depends on:
Blocks:
 
 
Reported: 2008-10-10 14:37 UTC by Bastien Nocera
Modified: 2008-10-17 14:09 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
glp-add-ps3-detection.patch (2.96 KB, patch)
2008-10-10 14:38 UTC, Bastien Nocera
none Details | Review
Updated patch (30.96 KB, patch)
2008-10-13 17:37 UTC, Bastien Nocera
none Details | Review
Version 3 (34.17 KB, patch)
2008-10-13 23:15 UTC, Bastien Nocera
none Details | Review
Add example remote (34.73 KB, patch)
2008-10-13 23:28 UTC, Bastien Nocera
none Details | Review
Jelle de Jong - Sony Bluetooth BD Remote Control - Installation Guide - 2008-10-10 - v0.1.3j.txt (29.34 KB, text/plain)
2008-10-16 10:55 UTC, Jelle de Jong
  Details

Description Bastien Nocera 2008-10-10 14:37:52 UTC
Patch attached.

Doesn't actually work as X will grab the input, but that'd be an lirc problem, not ours.
Comment 1 Bastien Nocera 2008-10-10 14:38:22 UTC
Created attachment 120340 [details] [review]
glp-add-ps3-detection.patch
Comment 2 Bastien Nocera 2008-10-13 17:37:17 UTC
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
Comment 3 Bastien Nocera 2008-10-13 23:15:58 UTC
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.
Comment 4 Bastien Nocera 2008-10-13 23:28:57 UTC
Created attachment 120540 [details] [review]
Add example remote

Updated patch to include an example of such a remote (my small Keyspan RF remote).
Comment 5 Jelle de Jong 2008-10-16 10:52:00 UTC
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
Comment 7 Murray Cumming 2008-10-16 12:23:27 UTC
Bastien, this all looks very sensible. Please apply.

Jelle, I guess you could try again after this has been applied to svn.
Comment 8 Bastien Nocera 2008-10-16 13:16:14 UTC
(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
Comment 9 Bastien Nocera 2008-10-16 13:21:18 UTC
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)
Comment 10 Jelle de Jong 2008-10-17 08:07:12 UTC
(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.
Comment 11 Bastien Nocera 2008-10-17 13:36:09 UTC
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.
Comment 12 Murray Cumming 2008-10-17 14:09:08 UTC
The lirc maintainer also does contract work. Personally I'd rather not work on the lirc source code.