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
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"
Output of "cat /proc/bus/input/devices"
I: Bus=0003 Vendor=0471 Product=20cc Version=0100
N: Name="PHILIPS MCE USB IR Receiver- Spinel plus Keyboard"
P: Phys=usb-0000:01:00.0-1.1/input0
S: Sysfs=/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.1/1-1.1:1.0/0003:0471:20CC.0001/input/input0
U: Uniq=
H: Handlers=sysrq kbd leds event0
B: PROP=0
B: EV=120013
B: KEY=800000 0 e0b0ffdf 1cfffff ffffffff fffffffe
B: MSC=10
B: LED=1f
I: Bus=0003 Vendor=0471 Product=20cc Version=0100
N: Name="PHILIPS MCE USB IR Receiver- Spinel plus System Control"
P: Phys=usb-0000:01:00.0-1.1/input0
S: Sysfs=/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.1/1-1.1:1.0/0003:0471:20CC.0001/input/input1
U: Uniq=
H: Handlers=kbd event1
B: PROP=0
B: EV=13
B: KEY=c000 100000 0 0 0
B: MSC=10
I: Bus=0003 Vendor=0471 Product=20cc Version=0100
N: Name="PHILIPS MCE USB IR Receiver- Spinel plus Consumer Control"
P: Phys=usb-0000:01:00.0-1.1/input0
S: Sysfs=/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.1/1-1.1:1.0/0003:0471:20CC.0001/input/input2
U: Uniq=
H: Handlers=kbd event2
B: PROP=0
B: EV=13
B: KEY=c0000 400 0 0 0 0 58000 1f8 40000004 8e0000 0 0 0
B: MSC=10
I: Bus=0003 Vendor=04d9 Product=1503 Version=0110
N: Name=" USB Keyboard"
P: Phys=usb-0000:01:00.0-1.3/input0
S: Sysfs=/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.3/1-1.3:1.0/0003:04D9:1503.0002/input/input5
U: Uniq=
H: Handlers=sysrq kbd leds event3
B: PROP=0
B: EV=120013
B: KEY=10000 7 ff800000 7ff febeffdf f3cfffff ffffffff fffffffe
B: MSC=10
B: LED=7
I: Bus=0003 Vendor=04d9 Product=1503 Version=0110
N: Name=" USB Keyboard System Control"
P: Phys=usb-0000:01:00.0-1.3/input1
S: Sysfs=/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.3/1-1.3:1.1/0003:04D9:1503.0003/input/input6
U: Uniq=
H: Handlers=kbd event4
B: PROP=0
B: EV=13
B: KEY=c000 100000 0 0 0
B: MSC=10
I: Bus=0003 Vendor=04d9 Product=1503 Version=0110
N: Name=" USB Keyboard Consumer Control"
P: Phys=usb-0000:01:00.0-1.3/input1
S: Sysfs=/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.3/1-1.3:1.1/0003:04D9:1503.0003/input/input7
U: Uniq=
H: Handlers=kbd event5
B: PROP=0
B: EV=13
B: KEY=10000 2000000 39fa d9411001 e0000 0 0 0
B: MSC=10
Display More
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