Whats working: after stopping eventlircd I get scancodes received with ir-keytable -p NEC -t. I see:
Protocols changed to nec
Testing events. Please, press CTRL-C to abort.
2385.587943: event type EV_MSC(0x04): scancode = 0x211
2385.587943: event type EV_SYN(0x00).
2386.650818: event type EV_MSC(0x04): scancode = 0x245
2386.650818: event type EV_SYN(0x00).
2387.499285: event type EV_MSC(0x04): scancode = 0x241
2387.499285: event type EV_SYN(0x00).
There are two IR drivers, meson-ir and amremote. meson-ir uses software decoding and covers more IR protocols. amremote uses hardware decoding and is slightly more responsive. NEC is compatible with amremote.
ir-keytable only works with meson-ir. Delete the remote.conf file and reboot CE to load meson-ir. Then get the scan codes for all the remote button. Fill out the rest of remote.conf, put it back in /storage/.config, then reboot to load it and amremote driver again.
There’s a list of Kodi shortcuts here. You can use the keyboard keys in the remote.conf file for the button mapping. But that won’t work with shortcuts that are a combination of two keys (ctrl+ some key).
If Kodi Keymap Editor only applies the mapping to one remote, can’t you re-enter the addon to reapply the mapping to a second remote by repeating the process with that remote?
Do you know how to make it work with the remote control to set the auto framerate switching on/off with a single button press?
Is it possible?
Or run a script to do that?
So I press xy button on remote >> AFR off
Xy button again >> AFR on
You’d need to figure out the json-rpc call to enable/disable that setting, put it into a script, use Kodi keymap editor to map an action to a button, then modify the keymap file to edit the entry to run your script instead.
So it’s probably possible, but you’ll need to put some effort into making it work.