[mythtv-users] Anybody had any luck with Gentoo/lirc-0.9.0/MCE remotes?
Robert Longbottom
rongblor at googlemail.com
Sat Jan 14 15:11:03 UTC 2012
On 14/01/2012 02:19, Phil Bridges wrote:
> On Fri, Jan 13, 2012 at 8:09 PM, Phil Bridges<gravityhammer at gmail.com> wrote:
>> On Fri, Jan 13, 2012 at 3:46 PM, Robert Longbottom
>> <rongblor at googlemail.com> wrote:
>>> On 13/01/2012 20:39, Robert Longbottom wrote:
>>>> On 13/01/2012 14:38, Phil Bridges wrote:
>>>>> I've had a bear of a time getting all of the buttons on my MCE remote
>>>>> working on my new Gentoo MythTV install (3.1.6 kernel, I believe) with
>>>>> lirc-0.9.0. All that is working are my arrow keys. Unfortunately,
>>>>> the older lirc (0.8.7?) won't compile to do some changes in the kernel
>>>>> (bomps out on a smp.h file), or I'd just downgrade and not use
>>>>> devinput.
>>>>>
>>>>> Any suggestions?
>>>>
>>>> I had a similar pain of a time getting my MCE remote to work with
>>>> lirc-0.9.0 on kernel 2.6.38 but I did eventually manage to get it
>>>> working. It was some time ago and I can't remember exactly what
>>>> eventually fixed it, but one thing that I have in my local start scripts is
>>>>
>>>> echo "rc-6"> /sys/class/rc/rc0/protocols
>>>>
>>>> I think this might have been the key.
>>>>
>>>> Robert.
>>>
>>> Ah, and I've just found my notes from when I build my frontend box.
>>>
>>> ##
>>> # Remote Control
>>> ##
>>> Lirc 0.9.0 + devinput, (set LIRC_DEVICES="devinput" in make.conf)
>>> need mceusb module from kernel
>>> need to set protocol = RC-6 in /sys/class/rc/rc0/protocols
>>> need to run lirc, pointing at the /dev/input/eventx
>>> need the lirc.devinput.conf
>>> need .lircrc for mythtv
>>>
>>> Robert.
>>>
>>>
>> Thanks for the response. What do you have as your protocols? My file reads:
>> [rc-6] [lirc]
robert at mythfe2 ~ $ cat /sys/class/rc/rc0/protocols
rc-5 nec [rc-6] jvc sony lirc
I take this to mean that I have all those protocols available to use,
but only rc-6 is active - maybe this is why you are getting multiple
events for some buttons because you look to have two selected.
>> It's very odd - irw shows me nothing, but pressing the arrow buttons
>> gives me the keyboard arrow keys on my main console. The other
>> buttons do nothing. It's as if it thinks my remote is a keyboard,
>> which would be fine *if* it recognized button presses. irrecord
>> doesn't detect anything, either.
>
> OK - I've fiddled with stuff, and come up with the correct responses
> in irw - but now I see the arrows keys (and a couple of others) twice
> - once through lirc, and once as keystrokes (e.g., [A through [D for
> the arrows). Also, Myth still only sees the arrow keys. I have Myth
> pointing to /dev/lircd, and I have this in /dev:
>
>
> crw------- 1 root root 249, 0 Jan 13 16:09 /dev/lirc0
> lrwxrwxrwx 1 root root 19 Jan 13 21:10 /dev/lircd -> /var/run/lirc/lircd
That looks the same as I have:
robert at mythfe2 ~ $ ls -l /dev/lirc*
crw------- 1 root root 246, 0 Jan 7 14:48 /dev/lirc0
lrwxrwxrwx 1 root root 19 Jan 7 14:49 /dev/lircd -> /var/run/lirc/lircd
My lircd config looks like this:
robert at mythfe2 ~ $ cat /etc/conf.d/lircd
# Options to pass to the lircd process
LIRCD_OPTS="-H devinput -d
/dev/input/by-id/usb-Formosa21_SnowflakeEmulation_C01245B8-event-if00"
and I have the lirc conf file linked to the default devinput sample
installed with lirc:
robert at mythfe2 ~ $ ls -l /etc/lirc/lircd.conf
lrwxrwxrwx 1 root root 52 Aug 5 19:54 /etc/lirc/lircd.conf ->
/usr/share/lirc/remotes/devinput/lircd.conf.devinput
and then I have .lircrc in /home/mythtv where I setup my key mappings:
robert at mythfe2 /home/mythtv $ cat .lircrc
# Keymapping for RC-6 remote
# RL : 2011
begin
prog = irexec
button = KEY_POWER
repeat = 0
config = /home/mythtv/bin/suspend.sh
end
begin
prog = mythtv
button = KEY_CHANNELUP
config = Page Up
end
begin
prog = mythtv
button = KEY_CHANNELDOWN
config = Page Down
end
.... etc.
Cheers,
Robert.
More information about the mythtv-users
mailing list