I recently bought the OSMC remote to use with Kodi, which I have running on a NUC with elementaryOS as the base operating system (Ubuntu based). The plug and go functionality is great for most of the buttons, however the Stop and Play/Pause buttons weren’t working.
After I installed the Keymap Editor Add-On to Kodi, I was able to add Stop button function as it detected key ID 61952 - so that is working fine now. However, Keymap Editor doesn’t detect the Play/Pause button being pressed so I couldn’t add the function that way.
From Terminal I used showkey to determine that the system was detecting key output 164 for the Play/Pause button (128 for the Stop button) so I know that the remote is sending an output which is being detected by Linux.
I tried using a debug log on Kodi to see if I could find the 5 digit key ID for the Play/Pause button if it was picking up some input in Kodi. This is the log: https://paste.ubuntu.com/26244788/
Based on that I tried adding the line <key id=“61697”>Pause</key> to the gen.xml that was generated by Keymap Editor, as well as my own keyboard.xml. I’ve also removed Keymap Editor so that it won’t be trying to over-write my changes.
However I’m still stuck at the same spot - I can use the Stop button correctly, however get nothing from the Play/Pause button. Before troubleshooting I also ran update and upgrade through apt-get so I should be running the latest version of Kodi.
Any idea if there is a workaround, or is there just a working keyboard.xml file I can drop into the folder? Alternatively if there’s a way I can tell Linux to automatically translate the key input 164 into outputting the same as the space bar, that would have the same net result.