<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sat, Jun 27, 2015 at 10:25 PM, Stephen Worthington <span dir="ltr"><<a href="mailto:stephen_agent@jsw.gen.nz" target="_blank">stephen_agent@jsw.gen.nz</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class="">On Sun, 28 Jun 2015 01:11:00 +0100, you wrote:<br>
<br>
>On 22 June 2015 at 06:23, Jerry Rubinow <<a href="mailto:jerrymr@gmail.com">jerrymr@gmail.com</a>> wrote:<br>
>><br>
>>  I spent a few hours fiddling around, mostly<br>
>> with ir-keytables.  It sees the remote, but it seems to not be interpreting<br>
>> the signal properly.  Here's is the output of ir-keytables -t.  It's not<br>
>> seeing any key events, and the scancodes don't look like they're broken up<br>
>> correctly.  This is from pressing the same button on the remote repeatedly.<br>
>><br>
>> Testing events. Please, press CTRL-C to abort.<br>
>> 1434950415.277167: event type EV_MSC(0x04): scancode = 0x4007<br>
>> 1434950415.277167: event type EV_SYN(0x00).<br>
>> 1434950415.629476: event type EV_MSC(0x04): scancode = 0x4007<br>
>> 1434950415.629476: event type EV_SYN(0x00).<br>
>> 1434950416.141482: event type EV_MSC(0x04): scancode = 0x4007<br>
>> 1434950416.141482: event type EV_SYN(0x00).<br>
>> 1434950416.333429: event type EV_MSC(0x04): scancode = 0x2003e10<br>
><br>
>What does<br>
><br>
>$ ir-keytable -r<br>
><br>
>show?<br>
><br>
><br>
>Cheers,<br>
>Nick<br>
<br>
</span>Yes, ir-keytable --read or ir-keytable -r should give you the correct<br>
scancodes for your device.  But before that, you may need to specify<br>
the protocol.  Try this:<br>
<br>
cat /sys/proc/rc/rc0/protocols<br>
<br>
This is what I get:<br>
<br>
root@mypvr:/etc/rc_keymaps# cat /sys/class/rc/rc0/protocols<br>
rc-5 nec [rc-6] jvc sony mce_kbd lirc<br>
<br>
which shows that rc-6 protocol is selected.  I suspect that you will<br>
get something like this:<br>
<br>
rc-5 nec rc-6 jvc sony mce_kbd lirc<br>
<br>
with no protocol having been automatically selected.<br>
<br>
To select a protocol, do this:<br>
<br>
echo "rc-6" >/sys/proc/rc/rc0/protocols<br>
<br>
and see if that helps.<br><br></blockquote><div> </div><div>No, I'd previously tried that.</div><div><br></div><div>My default protocol selection in /sys/class/rc/rc0/protocols was:</div><div><br></div><div><div>[rc-5] [nec] [rc-6] [jvc] [sony] [sanyo] [sharp] [mce_kbd] [lirc]</div><div><br></div></div><div>And after doing ir-keytable -p RC6, it is:</div><div><br></div><div><div>rc-5 nec [rc-6] jvc sony sanyo sharp mce_kbd lirc</div></div><div><br></div></div>Still doesn't work the same way.</div><div class="gmail_extra"><br></div><div class="gmail_extra">-Jerry</div></div>