Minix A2 Lite key remapping for Kodi

Minix A2 Lite

Yesterday I received my Minix A2 Lite to control Kodi on my Raspberry Pi.

Since all the buttons don’t work “out of the box”, I had to  make changes to the keymaps files for several of the front facing buttons.

The Kodi wiki has a useful example for the Minix A2 (not Lite): unfortunately, I found that some key codes are different between the Minix A2 and the Lite.

So, I just enabled KODI’s debugging feature, and monitored the debug log to discover the keystrokes which are sent by the controller.

tail -f /storage/.kodi/temp/kodi.log | grep OnKey

After that and some (a lot of) tries, I finally found the best configuration.

Here’s my final keyboard.xml:

<keymap>
    <global>
        <keyboard>
            <F1>SendClick(8)</F1>
            <home>ActivateWindow(Home)</home>
            <return>Select</return>
            <leftwindows>ContextMenu</leftwindows>
            <prev_track>PageUp</prev_track>
            <next_track>PageDown</next_track>
            <backspace>Back</backspace>
            <key id='61467'>Back</key>
        </keyboard>
    </global>
    <home>  
        <keyboard>
            <play_pause>PlayPvrTV</play_pause>
            <F1>ActivateWindow(tvchannels)</F1>
        </keyboard>
    </home>
    <VirtualKeyboard>
        <keyboard>
            <return>Select</return>
        </keyboard>
    </VirtualKeyboard>
    <FullscreenVideo>
        <keyboard>
            <backspace>Back</backspace>
            <F1>Stop</F1>
            <leftwindows>NextSubtitle</leftwindows>
            <home>AudioNextLanguage</home>
            <prev_track>Rewind</prev_track>
            <next_track>FastForward</next_track>
        </keyboard>
    </FullscreenVideo>
</keymap>

and my mouse.xml:

<keymap>
    <global>
        <mouse>
            <leftclick>Select</leftclick>
            <rightclick>Back</rightclick>
            <middleclick>noop</middleclick>
            <doubleclick id="0">noop</doubleclick>
            <longclick id="0">noop</longclick>
            <wheeldown>noop</wheeldown>
            <wheelup>noop</wheelup>
            <mousedrag>noop</mousedrag>
            <mousemove>noop</mousemove>
            <mousedragend>Select</mousedragend>
            <mouserdragend>Back</mouserdragend>
        </mouse>
    </global>
</keymap> 

Place them in /storage/.kodi/userdata/keymaps and you’re done !

Minix A2 on Kodi Wiki
Kodi keymaps doc

2 thoughts on “Minix A2 Lite key remapping for Kodi”

  1. thank you so much!
    i have a minix for some time now and i (honestly) was too lazy to check out all the keymaps…

    now the remote works as I want it to work.
    thanx man!

Leave a Reply