[mythtv-users] Can't get lirc or irw to work, but mode2 works

Stephen Worthington stephen_agent at jsw.gen.nz
Sun Jun 28 02:25:21 UTC 2015


On Sun, 28 Jun 2015 01:11:00 +0100, you wrote:

>On 22 June 2015 at 06:23, Jerry Rubinow <jerrymr at gmail.com> wrote:
>>
>>  I spent a few hours fiddling around, mostly
>> with ir-keytables.  It sees the remote, but it seems to not be interpreting
>> the signal properly.  Here's is the output of ir-keytables -t.  It's not
>> seeing any key events, and the scancodes don't look like they're broken up
>> correctly.  This is from pressing the same button on the remote repeatedly.
>>
>> Testing events. Please, press CTRL-C to abort.
>> 1434950415.277167: event type EV_MSC(0x04): scancode = 0x4007
>> 1434950415.277167: event type EV_SYN(0x00).
>> 1434950415.629476: event type EV_MSC(0x04): scancode = 0x4007
>> 1434950415.629476: event type EV_SYN(0x00).
>> 1434950416.141482: event type EV_MSC(0x04): scancode = 0x4007
>> 1434950416.141482: event type EV_SYN(0x00).
>> 1434950416.333429: event type EV_MSC(0x04): scancode = 0x2003e10
>
>What does
>
>$ ir-keytable -r
>
>show?
>
>
>Cheers,
>Nick

Yes, ir-keytable --read or ir-keytable -r should give you the correct
scancodes for your device.  But before that, you may need to specify
the protocol.  Try this:

cat /sys/proc/rc/rc0/protocols

This is what I get:

root at mypvr:/etc/rc_keymaps# cat /sys/class/rc/rc0/protocols
rc-5 nec [rc-6] jvc sony mce_kbd lirc

which shows that rc-6 protocol is selected.  I suspect that you will
get something like this:

rc-5 nec rc-6 jvc sony mce_kbd lirc

with no protocol having been automatically selected.

To select a protocol, do this:

echo "rc-6" >/sys/proc/rc/rc0/protocols

and see if that helps.


More information about the mythtv-users mailing list