Using a remote control with lircd.conf in LibreElec(12)/Kodi?

  • Hi.

    I'm currently using a TechniSat remote control for my LibreElec/Kodi setup on my Raspberry. It works quite well so far.

    But now I have an old, unused Jolly Click 1:1 lying around. I created a lircd.conf for it on another Raspberry using irrecord.

    However, I am unable to integrate it into my Kodi setup.

    The documentation I found was either outdated or, if it wasn't 5 years old, didn't get me where I wanted to go.

    Can anyone here perhaps help me?

    I already checked the wiki page but it seems outdated. Indicator: The mentioned file is not there:

    Code
    # cat /etc/lirc/lircd.conf
    cat: can't open '/etc/lirc/lircd.conf': No such file or directory

    On an additional note: The remote does not seem to support any of the protocols ir-keytable offers me (lirc rc-5 rc-5-sz jvc sony nec sanyo mce_kbd rc-6 sharp xmp imon rc-mm) except for imon which miserably fails as every key seems to send a random bunch of 32 bit scan codes.

    I really got it working on another raspberry (with piCorePlayer) which had irrecord available. All keys were correctly registered.

  • To enable lirc simply copy your lircd.conf file to /storage/.config/lircd.conf and create an empty rc_maps.cfg with touch /storage/.config/rc_maps.cfg then reboot.

    Another option you can try is to use lircd2toml.py (it's included in LE) to convert your lircd.conf file to an ir-keytable toml file - this supports some additional protocols via bpf decoder and may or may not work with your remote. If it works, better use that instead of lircd.

    so long,

    Hias

  • Thanks. I did that, but kodi does not react.

    A bit of additional information. Maybe that helps?


    Code
    KodiLG:~ # ps auxwww | grep lir
      472 root      0:00 /usr/sbin/eventlircd -f --evmap=/etc/eventlircd.d --socket=/run/lirc/lircd
      829 root      0:00 /usr/sbin/lircd --nodaemon /storage/.config/lircd.conf
     1231 root      0:00 grep lir 

    Is it correct, that eventlircd also runs?

    How are the keys from my lircd.conf mapped?

    I experimented with naming the directional keys in my lircd.conf KEY_<direction> but that didn't help either.

    Display Spoiler
  • This doesn't look right, you also should see lircd-uinput running (and, yes, eventlircd also has to run):

    Code
    # ps | grep lirc
      489 root      0:00 /usr/sbin/eventlircd -f --evmap=/etc/eventlircd.d --socket=/run/lirc/lircd
      932 root      0:00 /usr/sbin/lircd --nodaemon /storage/.config/lircd.conf
      933 root      0:00 /usr/sbin/lircd-uinput --add-release-events
     2115 root      0:00 grep lirc

    As for key naming: you have to stick to the standard linux input keynames (eg KEY_LEFT etc) - see eg /usr/lib/udev/rc_keymaps/rc6_mce.toml

    so long,

    Hias