<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-family:monospace,monospace"><span style="font-family:Arial,Helvetica,sans-serif">On Sun, Jun 16, 2019 at 7:18 PM Zachary Cutlip <<a href="mailto:uid000@gmail.com">uid000@gmail.com</a>> wrote:</span><br></div></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello,<br>
<br>
I'm trying to set up an MCE remote using evdev, and I'm getting double events in Mythfrontend for every key fairly consistently; maybe 80% of the time.<br>
<br>
I've set up the remote from a combination of these two wiki articles:<br>
<br>
<a href="https://www.mythtv.org/wiki/HID_Remotes" rel="noreferrer" target="_blank">https://www.mythtv.org/wiki/HID_Remotes</a><br>
<a href="https://www.mythtv.org/wiki/User_Manual:IR_control_via_evdev" rel="noreferrer" target="_blank">https://www.mythtv.org/wiki/User_Manual:IR_control_via_evdev</a><br>
<br>
evtest usually doesn't report the extra event even when Mythtv does.<br>
<br>
I've even set repeat delay and period to really high values.<br>
<br>
For example, here's an instance where pressing "down" resulted in event, but 'evtest' didn't:<br>
Testing ... (interrupt to exit)<br>
Event: time 1560729712.782138, type 4 (EV_MSC), code 4 (MSC_SCAN), value 800f041f<br>
Event: time 1560729712.782138, type 1 (EV_KEY), code 108 (KEY_DOWN), value 1<br>
Event: time 1560729712.782138, -------------- SYN_REPORT ------------<br>
Event: time 1560729712.888133, type 4 (EV_MSC), code 4 (MSC_SCAN), value 800f041f<br>
Event: time 1560729712.888133, -------------- SYN_REPORT ------------<br>
Event: time 1560729713.022172, type 4 (EV_MSC), code 4 (MSC_SCAN), value 800f041f<br>
Event: time 1560729713.022172, -------------- SYN_REPORT ------------<br>
Event: time 1560729713.294223, type 1 (EV_KEY), code 108 (KEY_DOWN), value 0<br>
Event: time 1560729713.294223, -------------- SYN_REPORT ------------<br>
<br>
Here's ir-keytable output:<br>
<br>
Found /sys/class/rc/rc0/ (/dev/input/event8) with:<br>
        Name: Media Center Ed. eHome Infrared Remote Transceiver (1784:0011)<br>
        Driver: mceusb, table: rc-rc6-mce<br>
        Supported protocols: rc-5 rc-5-sz jvc sony nec sanyo mce_kbd rc-6 sharp xmp<br>
        Enabled protocols: rc-6<br>
        bus: 3, vendor/product: 1784:0011, version: 0x0100<br>
        Repeat delay = 10000 ms, repeat period = 10000 ms<br>
<br>
FIW the remote is a Logitech harmony 650 programmed as a Windows Media Center PC.<br>
<br>
Thanks in advance,<br>
Zach<br><br></blockquote><div><br></div><div class="gmail_default" style="font-family:monospace,monospace">Long ago I had an issue like this and it was due to having multiple definitions in the lirc config file.  It is nothing that simple is it (hopefully)?</div><div class="gmail_default" style="font-family:monospace,monospace"><br></div><div class="gmail_default" style="font-family:monospace,monospace">-Greg</div></div></div>