Remote OK on Kodi/Windows, some issues on LibreELEC

  • I am setting up a fanless PC to replace a whiny NUC. It dual-boots Windows 10 and LibreELEC. It is fitted with a Streacom/Wesena IRRC remote built into the case.

    The remote handset is just a Phillips RC260. All the work is done in the receiver which converts the IR signals to USB events. This conversion is programmable using a Windows application downloadable from the Streacom web site. For each button you select from a menu of USB events: keyboard, mouse, MCE and Multimedia events.

    Most things work OK but one or two don't. I'm trying to get a button to bring up the Kodi context menu, which I know I can do with keyboard-C or right mouse click (there may be MCE or Multimedia events which do this as well). This works perfectly when Kodi is running under Windows but under LibreELEC there is no response to the button press. I tried to map other buttons to O and A too but again without success.

    I have an extract from a debug log which shows the difference between pressing the button on the remote and hitting the key on an actual keyboard:

    18:09:22.291 T:139679449011456 DEBUG: LIRC: Update - NEW at 31206:2e 0 KEY_C devinput (KEY_C)
    18:09:22.811 T:139679449011456 DEBUG: LIRC: Update - NEW at 31726:2e 0 KEY_C devinput (KEY_C)
    18:09:23.291 T:139679449011456 DEBUG: LIRC: Update - NEW at 32206:2e 0 KEY_C devinput (KEY_C)
    18:09:26.771 T:139679449011456 DEBUG: LIRC: Update - NEW at 35686:18 0 KEY_O devinput (KEY_O)
    18:09:27.231 T:139679449011456 DEBUG: LIRC: Update - NEW at 36146:18 0 KEY_O devinput (KEY_O)
    18:09:27.811 T:139679449011456 DEBUG: LIRC: Update - NEW at 36726:18 0 KEY_O devinput (KEY_O)
    18:09:29.191 T:139679449011456 DEBUG: LIRC: Update - NEW at 38106:1e 0 KEY_A devinput (KEY_A)
    18:09:29.751 T:139679449011456 DEBUG: LIRC: Update - NEW at 38666:1e 0 KEY_A devinput (KEY_A)
    18:09:33.511 T:139679449011456 INFO: CheckIdle - Closing session to 127.0.0.1 (easy=0x7f095c00cf50, multi=(nil))
    18:09:34.791 T:139679449011456 DEBUG: Keyboard: scancode: 0x36, sym: 0x0063, unicode: 0x0063, modifier: 0x0
    18:09:34.951 T:139679449011456 DEBUG: OnKey: c (0xf043) pressed, action is ContextMenu
    18:09:34.951 T:139679449011456 DEBUG: Keyboard: scancode: 0x36, sym: 0x0063, unicode: 0x0000, modifier: 0x0
    18:09:35.291 T:139679449011456 DEBUG: Keyboard: scancode: 0x36, sym: 0x0063, unicode: 0x0063, modifier: 0x0
    18:09:35.471 T:139679449011456 DEBUG: OnKey: c (0xf043) pressed, action is ContextMenu
    18:09:35.471 T:139679449011456 DEBUG: Keyboard: scancode: 0x36, sym: 0x0063, unicode: 0x0000, modifier: 0x0
    18:09:35.751 T:139679449011456 DEBUG: Keyboard: scancode: 0x36, sym: 0x0063, unicode: 0x0063, modifier: 0x0
    18:09:35.891 T:139679449011456 DEBUG: OnKey: c (0xf043) pressed, action is ContextMenu

    I'd appreciate help in how to debug this. The button press registers as a KEY_C but doesn't then generate a ContexMenu action, whereas it does for the real keyboard.

    I hope I'm posting in the right forum - it's not clear to me whether this is a Kodi issue or a LibreELEC one.

  • A remote's "devinput KEY_C" event is technically different to a keyboard event.

    You need to create your own Lircmap.xml like this:

    Code
    <lircmap>
    <remote device="devinput">
    <menu>KEY_C</menu>
    ...
    </remote>
    </lircmap>