[mythtv-users] Sony PS3 BD remote - kernel autorepeat with LIRC, etc [BlueZ PATCH]
David Kubicek
foceni at gmail.com
Sun Feb 14 14:26:15 UTC 2010
Hello,
some of you might find this patch useful, it's for the latest Bluetooth
driver (BlueZ 4.60) of the PS3 remote. This user-space driver is
reporting press/release events via uinput module into kernel. This works
fine, but there is no autorepeat.
Using the remote directly under X gets soft autorepeat from Xorg, but
what about console users and mouse emulation via lircmd and all users
with complex LIRC configurations? No, X autorepeat will not do. I needed
kernel-based autorepeat, which would work in every configuration and
would be tunable using standard tools. Xorg/evdev input is nice and easy
to set up, but extremely limited as to what can be done with it in a
"one remote, no mouse and a bunch of applications" scenario. :) I need
all features working independently of X (like under LIRC).
Luckily for us, the PS3 remote emits press/release events, much like a
regular keyboard, which means it's up to the OS to implement whatever
conventions exist with regard to input keyboard-like devices. One of the
conventions is autorepeat and its characteristics. We shouldn't rely on
3rd party applications (like Xorg) to make this work.
I'm attaching two patches for BlueZ. One for clean 4.60, the other is
for Kitlaan's version (deb repository with extra PS3 patches). Both
enable kernel-level autorepeat for fakehid.c devices.
Enjoy.
--
David Kubicek
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bluez-ps3-autorepeat-4.60.patch
Type: text/x-patch
Size: 514 bytes
Desc: not available
URL: <http://mythtv.org/pipermail/mythtv-users/attachments/20100214/f4914f23/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bluez-ps3-autorepeat-4.60+kitlaan.patch
Type: text/x-patch
Size: 511 bytes
Desc: not available
URL: <http://mythtv.org/pipermail/mythtv-users/attachments/20100214/f4914f23/attachment-0001.bin>
More information about the mythtv-users
mailing list