Kodi Community Forum

Full Version: Trying to troubleshoot why kodi is sensing extra keys when remote is pressed
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have an MCE remote to control kodi and also some of my own scripts using irexec.

When I press one button that I want to NOT use in kodi, it does run my script but if I am playing a video in kodi it changes audio track.

From my kodi.log (I also noticed that when I press volume down it sees rightctrl?):
Code:
T:384355   debug <general>: LIRC: - NEW 000000008001020b 00 KEY_NUMERIC_POUND devinput-32 (KEY_NUMERIC_POUND)
T:384300   debug <general>: HandleKey: rightbracket (0x29) pressed, window 12005, action is AudioNextLanguage

I have no idea where the rightctrl and rightbracket is coming from, or even why rightbracket changes audio track (there's no rightbracket in /usr/share/kodi/system/keymaps/keyboard.xml)??

Relevant lines from my userdata/Lircmap.xml :
Code:
    <remote device="devinput-32">
        <hash>KEY_NUMERIC_POUND</hash>
    </remote>

edit: I found <hash> key in /usr/share/kodi/system/keymaps/remote.xml.
Code:
<hash>AudioNextLanguage</hash>

So I added
Code:
<keymap>
   <FullscreenVideo>
        <remote>
            <hash>noop</hash>
        </remote>
    </FullscreenVideo>
</keymap>
to $HOME/.kodi/userdata/keymaps/remote.xml and it did stop it from changing audio tracks:
Code:
T:1059582   debug <general>: LIRC: - NEW 000000008001020b 00 KEY_NUMERIC_POUND devinput-32 (KEY_NUMERIC_POUND)
T:1059527   debug <general>: HandleKey: rightbracket (0x29) pressed, window 12005, action is noop

But I'm still curious where it's getting rightbracket from??
(2024-01-23, 15:06)devilledham Wrote: [ -> ]But I'm still curious where it's getting rightbracket from??

probably down at the system level https://www.lirc.org/html/lircd.html