I’ve successfully used irexec to receive my MCE remote outside of kodi, which controls the volume on my AVR by running a script.
Now I want to completely disable those volume keys from being registered by kodi, so I can press them and the screensaver continues to run.
I have tried putting noop’s in the keymap, and also putting nothing in the keymap.
<keymap>
<global>
<keyboard>
<key id="208">noop</key>
</keyboard>
</global>
</keymap>
I can see that my entries are affecting what kodi does, but anything I enter (even noop!) still registers as activity in kodi and stops the screensaver if it is running.
2025-07-24 15:25:45.632 T:2991 debug <general>: LIRC: - NEW 73 0 KEY_VOLUMEUP devinput (KEY_VOLUMEUP)
2025-07-24 15:25:45.634 T:2987 debug <general>: bool CInputManager::HandleKey(const CKey&): leftctrl (0xd0) pressed, window 10000, action is
I can get the button to not do anything, I just can’t get it to not stop the screensaver from running.
I have also tried a custom Lircmap.xml in the userdata folder with this:
<lircmap>
<remote device="devinput">
<noop>KEY_VOLUMEDOWN</noop>
</remote>
</lircmap>
and also removing that key completely from the file, but I see there is another Lircmap.xml in /usr/share/kodi/system/Lircmap.xml, so I think if the key is removed from my /storage/.kodi/userdata/Lircmap.xml then it uses the one in /usr/share/kodi/system/.
So I would like to try removing those keys from /usr/share/kodi/system/Lircmap.xml, but it seems I can’t edit that because it is readonly.
How can I can edit or completely override that file?