IR-remote & devinput

Hi KODI-folks,

this “IR-remote & devinput”-topic is really driving me nuts … 🙁

Long story short:

I upgraded my mediacenter yesterday (OpenSUSE Leap 42.1 -> OpenSUSE Leap 42.2, Kernel 4.1 -> 4.4), I use the KODI-packages provided by Packman. Since the upgrade, I struggle to get my remote working, especially e.g. the KEY_MENU does not work anymore as it did before.

I think the reasons are among those:

  • Key-presses on my remote seem to reach KODI as keyboard-presses and the keyboard does not know anything about KEY_MENU. How can I actually confirm that? Is a line like this in the log sufficient?
    Code:
    11:20:41 T:139735267514816   DEBUG: Keyboard: scancode: 0x93, sym: 0x1008ff65, unicode: 0x0000, modifier: 0x0

    Especially the part “Keyboard: scancode” caught my interest here. What should this line look alike if the key-press originated from a remote and also is regarded as a key-press originating from a remote?

  • Is there a way to tell KODI/Linux/… to use the key-presses generated by the remote and not the “simulated keyboard-presses”?
  • The key-presses actually reach KODI, however the mapping of these key-presses is IMO the problem. For remotes KEY_MENU can be properly mapped to menu in Lircmap.xml, however I have no clue if I can implement such a mapping for keyboards, too.

You may ask:

  • What’s the output of ir-keytable -t -> It properly displays the keys pressed on my remote, e.g. KEY_MENU
  • Is lircd running? -> Yes it is.
  • What’s the output of irw -> It properly displays the keys pressed on my remote, e.g. KEY_MENU

What I want:

Is there a way to do without lircd and end up with a remote “devinput” or “linux-input-layer” instead of simulated keyboard-presses? So I can remap keys as I like in Lircmap.xml

Alternatively

Is there something like Lircmap.xml also for keyboard-presses? If so, I maybe could simply remap KEY_MENU there.

Last resort:

Would be to create a custom rc_map that generates a KEY_M instead of KEY_MENU, but I would prefer not to do this.

Thanks in advance!

I wish all of you a merry christmas and I hope your remote is working as intended.

Best regards,
Fabian

BTW: Is there a way to properly format inline code-blocks within this forum?