all warmly welcome!
and immediately apologize for my English.
not sure what I'm writing in the right topic, but still.
I have a Raspberry Pi 3 B+ with libreelec 8.95.001 installed.
I decided to fasten it to the IR remote.(at once I will make a reservation, in Linux I am full 0, but the Internet+(ctrl+C and ctrl+V) solves)
stuck the sensor to the GPIO, the console I have from iconbit media player.
table for remote control found here in this topic.
the table contents are copied to /storage/.config/rc_keymaps / rc_maps.cfg
the content of the table:
Display Spoiler
# table iconbit, type: NEC
0x9f57 KEY_POWER
0x9f5c KEY_MUTE
0x9f55 KEY_RED
0x9f4e KEY_GREEN
0x9f06 KEY_LEFT
0x9f43 KEY_UP
0x9f0e KEY_RIGHT
0x9f0a KEY_DOWN
0x9f02 KEY_ENTER
0x9f4f KEY_BACK
0x9f47 KEY_HOME
0x9f16 KEY_MENU
0x9f50 KEY_PLAYPAUSE
0x9f05 KEY_1
0x9f09 KEY_2
0x9f15 KEY_3
0x9f04 KEY_4
0x9f08 KEY_5
0x9f14 KEY_6
0x9f00 KEY_7
0x9f10 KEY_8
0x9f0c KEY_9
0x9f11 KEY_0
0x9f13 KEY_STOP # Key
0x9f0d KEY_INFO # Media (Mapped to Info)
0x9f1a KEY_CONTEXT_MENU # Settings
now try:
LibreELEC:~ # ir-keytable
Found /sys/class/rc/rc0/ (/dev/input/event4) with:
Name: gpio_ir_recv
Driver: gpio_ir_recv, table: rc-rc6-mce
lirc device: /dev/lirc0
Supported protocols: other lirc rc-5 rc-5-sz jvc sony nec sanyo mce_kbd rc-6 sharp xmp
Enabled protocols: lirc nec rc-6
bus: 25, vendor/product: 0001:0001, version: 0x0100
Repeat delay = 500 ms, repeat period = 125 ms
yeah, it works!
see if the machine can see the signals from the remote.
this is a reaction to the OK(Enter) button on the remote:
LibreELEC:~ # ir-keytable -t
Testing events. Please, press CTRL-C to abort.
3938.642988: lirc protocol(necx): scancode = 0x9f02
3938.643011: event type EV_MSC(0x04): scancode = 0x9f02
3938.643011: event type EV_SYN(0x00).
yeah, there is a reaction!
and now I face a problem when trying to register the keys from the table to the system:
LibreELEC:~ # ir-keytable -a /storage/.config/rc_keymaps/rc_maps.cfg -s rc0
Invalid parameter on line 2 of /storage/.config/rc_keymaps/rc_maps.cfg
ir-keytable: Failed to read config file /storage/.config/rc_keymaps/rc_maps.cfg
Try `ir-keytable --help' or `ir-keytable --usage' for more information.
LibreELEC:~ # ir-keytable -c -w /storage/.config/rc_keymaps/rc_maps.cfg
invalid NEC
Invalid parameter on line 1 of /storage/.config/rc_keymaps/rc_maps.cfg
ir-keytable: Failed to read table file /storage/.config/rc_keymaps/rc_maps.cfg
Try `ir-keytable --help' or `ir-keytable --usage' for more information.
what's wrong? What to do?
thank you for your attention!