How can I enable keyboard mode for IR remote?

I have Mecool KII Pro.
In CoreELEC 8.90.2 release, eventlircd was add back and long-press is gone.
If I use “systemctl mask eventlircd” to enable keyboard mode, some keys on my remote controller are not working.

How can I enable the keyboard mode without losing any keys on my IR remote control?

It is said that all remote controllers for Mecool are built in the CoreElec image already, in case key codes are needed, here they are:

0x18 KEY_TEXT
0x0f KEY_0
0x51 KEY_ESC
0x4e KEY_7
0x4c KEY_8
0x0c KEY_9
0x56 KEY_4
0x54 KEY_5
0x14 KEY_6
0x52 KEY_1
0x50 KEY_2
0x10 KEY_3
0x17 KEY_VOLUMEDOWN
0x13 KEY_VOLUMEUP
0x12 KEY_CONTEXT_MENU
0x58 KEY_CONFIG
0x15 KEY_CHANNELDOWN
0x55 KEY_CHANNELUP
0x45 KEY_MENU
0x05 KEY_BACK
0x16 KEY_DOWN
0x06 KEY_UP
0x5a KEY_LEFT
0x1b KEY_RIGHT
0x1a KEY_ENTER
0x0d KEY_HOME
0x11 KEY_COMPOSE
0x4d KEY_EPG
0x02 KEY_INFO
0x09 KEY_SUBTITLE
0x01 KEY_LANGUAGE
0x46 KEY_PLAYPAUSE
0x44 KEY_STOP
0x1f KEY_FAVORITES
0x04 KEY_RECORD
0x4a KEY_REWIND
0x48 KEY_FASTFORWARD
0x08 KEY_PREVIOUSSONG
0x0b KEY_NEXTSONG
0x42 KEY_RED
0x40 KEY_GREEN
0x00 KEY_YELLOW
0x03 KEY_BLUE
0x19 KEY_MUTE
0x59 KEY_POWER

I used an empty /storage/.config/udev.rules.d/98-eventlircd.rules file, to avoid interference. Any keys that didn’t work as defined in /storage/.kodi/userdata/keymaps/remote.xml, were easily rectified using the Keymap Editor addon

1 Like