But why working with lirc? Find the protocol of your remote and use ir-keytable -t, or do it in once as described in the wiki:
"Then, for each of the protocols (except lirc
, which isn't a real protocol) run ir-keytable -p PROTOCOL -t
, then press some buttons on your remote.
If you discovered the correct protocol you should see EV_MSC
events together with the scancode of the button. eg:
Code
LibreELEC:~ # ir-keytable -p rc-5 -t
Protocols changed to rc-5
Testing events. Please, press CTRL-C to abort.
1503592437.660155: event type EV_MSC(0x04): scancode = 0x101a
1503592437.660155: event type EV_SYN(0x00).
1503592437.774129: event type EV_MSC(0x04): scancode = 0x101a
1503592437.774129: event type EV_SYN(0x00).
1503592437.921009: event type EV_MSC(0x04): scancode = 0x101a
If you see no events stop ir-keytable
with CTRL-C
and try the next protocol from the list."
And create your own remote. Maybe you there is already a configuration for your remote, check in teh amlogic subforum:
LE9.0 remote configs ir-keytable Amlogic devices
If you find it, don't forget to change the rc_maps.cfg and replace the meson-ir with a *