My Cinergy s2 card has an issue with double key events. I basically located the root cause but I don't know how to config what to avoid the double key event issue.
Problem: The card generates two similar ir devices, the only different is rc0 / rc1 resp. the device eventx / event y. ir-keytable sows the following:
LibreELEC:/usr/lib/udev/rules.d # ir-keytable
Found /sys/class/rc/rc1/ (/dev/input/event14) with:
Driver dw2102, table rc-terratec-cinergy-s2-dual
Supported protocols: nec
Enabled protocols:
Name: IR-receiver inside an USB DVB re
bus: 3, vendor/product: 153b:1182, version: 0x0000
Repeat delay = 500 ms, repeat period = 125 ms
Found /sys/class/rc/rc0/ (/dev/input/event9) with:
Driver dw2102, table rc-terratec-cinergy-s2-dual
Supported protocols: nec
Enabled protocols:
Name: IR-receiver inside an USB DVB re
bus: 3, vendor/product: 153b:1181, version: 0x0000
Repeat delay = 500 ms, repeat period = 125 ms
Display More
I have successfully loaded a keytable and modified the rc_maps.cfg. But irw and kodi generate double key events if I press a button once on the remote:
LibreELEC:/usr/lib/udev/rules.d # irw
160 0 KEY_OK devinput
160 0 KEY_OK devinput
67 0 KEY_UP devinput
67 0 KEY_UP devinput
6c 0 KEY_DOWN devinput
6c 0 KEY_DOWN devinput
69 0 KEY_LEFT devinput
69 0 KEY_LEFT devinput
6a 0 KEY_RIGHT devinput
6a 0 KEY_RIGHT devinput
Display More
I found out, that the keytable is loaded automatically for both devices rc0 and rc1, but I have just one remote. The output from ir-keytable -r -s rc0 is identical to ir-keytable -r -s rc1. if I clear the keytable for rc1 (ir-keytable -c -s rc1), everythings works fine.
LibreELEC:/usr/lib/udev/rules.d # ir-keytable -c -s rc1
Old keytable cleared
LibreELEC:/usr/lib/udev/rules.d # irw
160 0 KEY_OK devinput
67 0 KEY_UP devinput
6c 0 KEY_DOWN devinput
69 0 KEY_LEFT devinput
6a 0 KEY_RIGHT devinput
Currently I have no idea how to disable either rc1 oder load the keytable only for rc0.
Any help is appreciated.
Thanks