I am having problems getting a remote to work

  • First: Thank you all for this great project

    The version is Nightly-20210119-c4186be

    I am using this guide Infra-Red Remotes - LibreELEC.wiki and an ssh into a terminal

    I edited nano /storage/.config/rc_maps.cfg

    and placed this line at the bottom

    * rc-leadtek-y04g0051 leadtek_y04g0051.toml

    Then I cp /usr/lib/udev/rc_keymaps/leadtek_y04g0051.toml /storage/.config/rc_keymaps/leadtek_y04g0051.toml

    so that I could change the remote to include the "back" command

    I enable the changes with

    ir-keytable -c -w /storage/.config/rc_keymaps/leadtek_y04g0051.toml

    The remote works great until I reboot

    Then it does nothing until I

    ir-keytable -c -w /storage/.config/rc_keymaps/leadtek_y04g0051.toml again


    I noticed this in the wiki

    "The embedded files can be overridden at boot time by creating

    /storage/.config/lircd.conf and

    /storage/.config/lirc_options.conf

    with needed changes."

    What are they for? Is this what I need to change?

    Mine are empty.

    Any help would be appreciated

    Dave

  • So now I have done this

    1) systemctl stop kodi

    2) systemctl stop eventlircd


    3) I edited nano /storage/.config/rc_maps.cfg

    and placed this line at the bottom

    * rc-leadtek-y04g0051 /storage/.config/rc_keymaps/leadtek_y04g0051.toml

    4) ir-keytable -c -w /storage/.config/rc_keymaps/leadtek_y04g0051.toml


    5) ir-keytable -a /storage/.config/rc_maps.cfg -s rc0


    6) test with ir-keytable -t -s rc0

    All looks good


    7) systemctl start eventlircd

    8) systemctl start kodi


    9) reboot

    result remote not working

    Re-read guide Infra-Red Remotes - LibreELEC.wiki

    and tried


    1) systemctl stop kodi

    2) systemctl stop eventlircd


    3) Thought this was ok

    4) not done


    5) ir-keytable -a /storage/.config/rc_maps.cfg

    Note I did not get any output as in the guide ( below) with this rc_maps.cfg

    A clue

    back to 3)

    3) I edited nano /storage/.config/rc_maps.cfg

    # driver table file

    #

    * rc-leadtek-y04g0051 /storage/.config/rc_keymaps/leadtek_y04g0051.toml

    first change was to

    sunxi-ir rc-leadtek-y04g0051 /storage/.config/rc_keymaps/leadtek_y04g0051.toml

    still did not work. So changed to

    sunxi-ir * /storage/.config/rc_keymaps/leadtek_y04g0051.toml

    Worked so my problem is in the table name

    LibreELEC:~ # ir-keytable -a /storage/.config/rc_maps.cfg

    Old keytable cleared

    Wrote 50 keycode(s) to driver

    Protocols changed to nec

    6) test with ir-keytable -t -s rc0

    All looks good

    7) systemctl start eventlircd

    8) systemctl start kodi


    9) reboot


    Remote Works now.

    On a side note

    I noticed Default keymap: rc-empty could this be a problem in the future?


    # ir-keytable

    Found /sys/class/rc/rc0/ with:

    Name: sunxi-ir

    Driver: sunxi-ir

    Default keymap: rc-empty

    Input device: /dev/input/event0

    LIRC device: /dev/lirc0

    Attached BPF protocols:

    Supported kernel protocols: lirc rc-5 rc-5-sz jvc sony nec sanyo mce_kbd rc-6 sharp xmp imon rc-mm

    Enabled kernel protocols: lirc nec

    bus: 25, vendor/product: 0001:0001, version: 0x0100

    Repeat delay = 500 ms, repeat period = 125 ms

    Thanks for your reply ghtester

    It sent me into the right direction to find the solution

    Dave

  • No problem, I'm glad I could help. :)

    FYI there's also a fresh how-to made by Skripo here: Kodi, Harmony, and Raspberry PI 4 with IR sensor newb guide

    Regarding to rc-empty - I don't know, perhaps the -c cleared the default keymap. I have never used that parameter so I don't know details.

    Or it depends on .toml file structure which is maybe missing some keywords, I really don't know.

    I think the Default keymap is assigned by kernel driver when the IR device is detected.

    Probably it does not matter if there's rc-empty when everything is working fine. And when it stops working, you know what to check / how to make it working again... ;)