Custom remote control map

  • Hello,

    I have this remote:

    The IR receiver is connected via USB to the RaspberryPi4. I want to map the remote keys to other functions.

    I tried by creating this file (and rebooting after this):

    LibreELEC:~ # nano .kodi/userdata/keymaps/remote.xml

    Code
    <keymap>
        <global>
            <remote>
                <blue>ContextMenu</blue>
            </remote>
        </global>
    </keymap>

    But the "blue" key still doesn't show the context menu. So this doesn't work.

    What am I doing wrong?

    I tried to find out, which keymap file is being used (/usr/lib/udev/rc_keymaps). Where can I find this information?

    Output of "ir-keytable"

    Code
    No devices found.

    Output of "cat /proc/bus/input/devices"

    A long, long time ago (when using XBMC) I made it work by using a command to first create my own keymap file by "reading" every IR code of all remote keys (because some keys like "blue", "red" weren't even recognized with the default settings), then creating a second file where I assigned the functions to each key. But "ir-keytable" doesn't find any devices. So something must have changed.

    Can somebody please give me some steps/hints how I can do this in LibreElec?

    Thank you

    EDIT: I just found

    https://wiki.libreelec.tv/configuration/ir-remotes

    I'll try it with this information

    Edited 4 times, last by cybtrash (November 4, 2022 at 6:42 PM).

  • If the ir-keytable command does not return any output, it looks your IR receiver USB stick is not supported by kernel and appropriate driver is missing.

    If that's the case, with RPi 4b you can easily use the gpio-ir overlay which allows to use any IR remote including yours (just a cheap IR sensor is needed instead of your USB stick).

    BTW. I own the same-looking IR remote and the protocol is rc6_mce , FYI.