my file /storage/.config/rc_keymaps/ru880_vcr-code131.toml:
[[protocols]]
name = "ru880_vcr-code131"
protocol = "nec"
[protocols.scancodes]
0x315b = "KEY_POWER"
0x311d = "KEY_0"
0x3104 = "KEY_1"
0x3105 = "KEY_2"
0x3106 = "KEY_3"
0x3107 = "KEY_4"
0x310c = "KEY_5"
0x310d = "KEY_6"
0x310e = "KEY_7"
0x310f = "KEY_8"
0x311c = "KEY_9"
0x314c = "KEY_LEFT"
0x315e = "KEY_RIGHT"
0x3101 = "KEY_UP"
0x3102 = "KEY_DOWN"
0x31ca = "KEY_C"
0x314b = "KEY_ENTER"
0x3115 = "KEY_CHANNELUP"
0x3111 = "KEY_CHANNELDOWN"
0x3110 = "KEY_GREEN"
0x3114 = "KEY_YELLOW"
0x3112 = "KEY_RED"
0x3113 = "KEY_BLUE"
0x319f = "KEY_PAUSE"
0x3199 = "KEY_RECORD"
0x3178 = "KEY_MEDIA"
0x3108 = "KEY_ESC"
0x319b = "KEY_SUBTITLE"
0x311f = "KEY_INFO"
0x317c = "KEY_MODE"
Display More
ir-keytable -c -w /storage/.config/rc_keymaps/ru880_vcr-code131.toml works:
Read ru880_vcr-code131 table
Old keytable cleared
Wrote 30 keycode(s) to driver
Protocols changed to nec
This is the ouput of ir-keytable:
LibreELEC:/dev/input # ir-keytable
Found /sys/class/rc/rc1/ with:
Name: Hauppauge WinTV-dualHD DVB
Driver: em28xx
Default keymap: rc-hauppauge
Input device: /dev/input/event6
LIRC device: /dev/lirc1
Supported kernel protocols: rc-5 nec rc-6
Enabled kernel protocols: rc-5
bus: 3, vendor/product: 2040:8265, version: 0x0100
Repeat delay: 500 ms, repeat period: 125 ms
Found /sys/class/rc/rc0/ with:
Name: meson-ir
Driver: meson-ir
Default keymap: rc-odroid
Input device: /dev/input/event3
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: 0000:0000, version: 0x0000
Repeat delay: 500 ms, repeat period: 125 ms
Display More
I am not sure if Default keymap: rc-odroid is right or if there should be reported the just configured custom toml. Anyway, the remote works (tested with evtest using meson-ir on /dev/input/event3)
Event: time 1793725093.577050, type 1 (EV_KEY), code 28 (KEY_ENTER), value 1
Event: time 1793725093.577050, -------------- SYN_REPORT ------------
Event: time 1793725093.858062, type 1 (EV_KEY), code 28 (KEY_ENTER), value 2
Event: time 1793725093.858062, -------------- SYN_REPORT ------------
Event: time 1793725093.866751, type 1 (EV_KEY), code 28 (KEY_ENTER), value 0
But after starting eventlircd and kodi nothing happens in kodi when I press any key. There is nothing in the kodi debug log.
When I try to make the keymap permanently with ir-keytable -a /storage/.config/rc_keymaps/ru880_vcr-code131.toml -s rc0 I get an error:
Invalid parameter on line 1 of /storage/.config/rc_keymaps/ru880_vcr-code131.toml
ir-keytable: Failed to read config file /storage/.config/rc_keymaps/ru880_vcr-code131.toml
I don't see anything wrong in my toml and if so, I assume that this would have been reported by ir-keytable earlier when using -c -w instead of -a.