I finally got my Remote, which only works with lirc, to function.
For the most parts like navigattion starting, a video, pausing it, mute the sound or change the volume it works.
Simply by having stuff like this in my /storage/.config/lircd.conf
KEY_PLAYPAUSE 0x338
KEY_UP 0x30B
KEY_LEFT 0x336
KEY_RIGHT 0x337
KEY_DOWN 0x30D
KEY_OK 0x30C
KEY_EXIT 0x33E
KEY_CONTEXT_MENU 0x331
KEY_VOLUMEUP 0x329
KEY_VOLUMEDOWN 0x32A
KEY_MUTE 0x305
KEY_INFO 0x317
Display More
But now there are several other buttons which I'd like to match to some useful functions.
For examle the Button labeled "AV" on my remote should be mapped to runScript(script.audio.profiles,0).
So I added a button KEY_B, because it's the button B on my bluetooth keyboard which also runs that script.
And then I added to my keymap /storage/.kodi/userdata/keymaps/bluetoothaudio.xml
<keymap>
<global>
<keyboard>
<key id="61506">runScript(script.audio.profiles,0)</key>
<key id="9">runScript(script.audio.profiles,0)</key>
<KEY_B>runScript(script.audio.profiles,0)<KEY_B>
</global>
</keymap>
But it didn't work.
When I compare the debug output of a working key with that of my AV key, I can see a clear difference.
2025-10-25 00:39:36.207 T:941 debug <general>: LIRC: - NEW 6a 0 KEY_RIGHT devinput (KEY_RIGHT)
2025-10-25 00:39:36.215 T:935 debug <general>: HandleKey: 168 (0xa8, obc87) pressed, window 10000, action is Right
2025-10-25 00:39:42.557 T:941 debug <general>: LIRC: - NEW 30 0 KEY_B devinput (KEY_B)
2025-10-25 00:39:42.962 T:935 debug <general>: HandleKey: 0 (0x0, obc255) pressed, window 10000, action is
So the key is correctly registered as "KEY_B", but there seems to be no mapping applied.
What am I doing wrong?