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 !
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!
Glad it could help you !!
Thanks! It’s almost perfect, the only thing is that the power button fails to open power menu. Is it impossible?
how do you olace them? where are the files i only see the code, tnx