Now for each button do the following steps
- Press the button and note the scancode it generates (the
0x… value after scancode: )
- Add a new line with the scancode (including 0x).
- After the scancode enter the Linux keycode, separated with a blank.
The keycode must be one of the standard Linux keycodes. You can get a list of all supported keycodes via irrecord -l | grep ^KEY.
It's best to use those keycodes that are listed in /usr/share/kodi/system/Lircmap.xml in the <remote device=“devinput”> section. If you use other keycodes you'll have to create a Kodi lircmap.xml with keycode to Kodi action mappings.
When you're finished with all buttons, save the keytable, stop ir-keytable -t with CTRL+C and then test if it works. If testing succeeds, make it permanent via a /storage/.config/rc_maps.cfg file like this: