keymaps.xml not working after upgrade to LE11

  • After upgrade from LE9 to LE11 I run in to following problem.

    In LE9 keyboard and remote shared the same actions but in LE11 only keyboard is working.

    If I edit keymappings.xml and change <keyboard> to <remote> then the remote start to work for some parts.

    The other thing that happens when changing from <keyboard> to <remote> is that I get a lot of errors on keys that are no longer valid as (like <a> to <z>)

    So the question is can I get back and use only <keyboard> as in LE9 and

    get the events from the remote to act as normal key codes.

    My setup is:

    Mapped keyboard keys in '/storage/.config/rc_keymaps/nec_yamaha_remote':

    And action in '/storage/.kodi/userdata/keymaps/keymappings.xml


    keymappings.xml.txt

    nec_yamaha_remote.txt

  • The upstream kernel switched IR keymaps to the "toml" format so I'd guess you need to make the same changes in your file. Have a look at the keymaps in /usr/lib/udev/rc_keymaps/ to crib the format changes (not hard).

  • I got events even using old format in '/storage/.config/rc_keymaps/nec_yamaha_remote'.

    ir-keytable -t

    Figured out a way to partly get my remote as my old LE9 setup by masking (stopping) eventlircd.

    'systemctl mask eventlircd'

    But the problem is, I need following after reboot:

    udevadm trigger -v /sys/devices/pnp0/00:02/rc/rc0/input10/event10

    systemctl restart kodi

    Some kind of timing thing..

    /usr/lib/udev/rules.d/70-infrared.rules run ir-keytable -a ... could be too late related to kodi.service but I don't know.


    For who ever read this with same issue....

    Seems that eventlircd grabbed kernel events (IR keys) from '/devices/pnp0/00:02/rc/rc0/input10/event10' and transfer stuff to a socket in Kodi.

    Kodi then separated it as remote keys and that's why the need of chaining to <remote>.

    Now without eventlircd my IR keys are the same as a keyboard keys, except above problem.

  • following '/storage/.config/autostart.sh' fixed the issue.

    #/bin/sh

    udevadm trigger -v /sys/class/rc/rc0

    but still don't know where the root cause of problem is... ?(

    Edited once, last by Phil67ago (November 13, 2023 at 3:02 PM).