As the current kernel no longer supports lirc-rpi I had to switch to gpio-ir
Therefore I changed the line in /boot/config.txt to
dtoverlay=gpio-ir,gpio_pin=25
Using ir-keytable I found out that my remote uses nec protocol and I created a custom remote profile I placed in /etc/rc_keymaps/ and load it on every reboot via rc.local:
/usr/bin/ir-keytable -c -w /etc/rc_keymaps/lg
For handling the IR commands I replaced lirc with inputlirc (configured via /etc/lirc/lircrc) which works for all rc-keys except the number keys. Those keys are correctly recognized by ir-keytable:
ir-keytable -t
Testing events. Please, press CTRL-C to abort.
1558891160.930963: event type EV_MSC(0x04): scancode = 0x101041
1558891160.930963: event type EV_KEY(0x01) key_down: KEY_1(0x0002)
1558891160.930963: event type EV_SYN(0x00).
1558891160.990956: event type EV_MSC(0x04): scancode = 0x101041
1558891160.990956: event type EV_SYN(0x00).
1558891161.120881: event type EV_KEY(0x01) key_up: KEY_1(0x0002)
1558891161.120881: event type EV_SYN(0x00).
Also if I stop inputlirc service and use instead sudo evtest /dev/input/event0 the number keys are correctly recognized:
Event: time 1558891363.890958, type 4 (EV_MSC), code 4 (MSC_SCAN), value 101041
Event: time 1558891363.890958, type 1 (EV_KEY), code 2 (KEY_1), value 1
Event: time 1558891363.890958, -------------- SYN_REPORT ------------
Event: time 1558891363.960945, type 4 (EV_MSC), code 4 (MSC_SCAN), value 101041
From my perspective I would assume that a KEY_1 of ir-keytable is not the same as a KEY_1 of inputlirc.
How can the one or the other be configured in a way so that they agree on the same value for KEY_1 and the other numeric keys?