I’ve got PHT installed on ubuntu 16 in my Intel NUC, and got the Xbox 360 media remote working about 90% with ir-keymap. Problem is that no matter what I try I can emulate the escape key behaviour to return to the previous menu. Using ir-keytable -t returns the correct key code mapping I’ve set (KEY_BACKSPACE currently, but KEY_ESC and KEY_BACK do the same) but Plex just seems to ignore that particular key. I’ve seen some evidence of similar issues on NUC but I just can’t get it working… does anyone have any suggestions?
You can edit what the keys do in the files in plexht/userdata/keymaps/ (they doesn’t exist, you’ll have to create the ones you’ll need). You can see what the defaults for these files look like here: https://github.com/RasPlex/OpenPHT/tree/openpht-1.7/plex/Resources/system/keymaps
You don’t need the whole file, just the portion you wish to override. For example, I didn’t like the fact that the backspace during playback brought me to the menu but continued playback in the background so my keyboard.xml file looks like:
<keymap>
<FullscreenVideo>
<keyboard>
<backspace>Stop</backspace>
</keyboard>
</FullscreenVideo>
</keymap>
In my case, my remote is a bluetooth keyboard (Harmony hub) so this was what I needed to edit. Before you go editing files, turn on the debug logging and pass the relevant key and see what it logs for it. It’ll tell you what it thinks the key is internally so you’ll know what file you’ll need to edit and what portion.
Perfect, after some poking around that did the trick - thanks!