Remote for OMXPlayer
I use a Raspberry Pi to watch movies on my TV with OMXPlayer, but wired full-sized keyboards make for terrible remotes.
That’s why I got an MX6 from Rii.
The MX6 is just another keyboard to the Raspberry Pi. On the front it is a remote, and on the back a keyboard, but either way the Raspberry only sees a regular keyboard.
But to use custom key bindings for OMXPlayer, I wanted to know what each of the front-facing keys actually maps to. That way I can reassign them as I please.
In green all the keys that can be reassigned. In red those that cannot. Note that some of the buttons are to control the remote (microphone and pointer) or to mimic another remote’s button, so it makes sense that you can’t get the codes for those keys.
However, it is unfortunate that the sound up/down and back/play/forward buttons don’t expose their hex codes so that I can use them for OMXPlayer.
Here’s a template key binding file for use with OMXPlayer which follows the default configuration:
DECREASE_SPEED:1 INCREASE_SPEED:2 REWIND:< FAST_FORWARD:> SHOW_INFO:z PREVIOUS_AUDIO:j NEXT_AUDIO:k PREVIOUS_CHAPTER:i NEXT_CHAPTER:o PREVIOUS_SUBTITLE:n NEXT_SUBTITLE:m TOGGLE_SUBTITLE:s DECREASE_SUBTITLE_DELAY:d INCREASE_SUBTITLE_DELAY:f EXIT:q PAUSE:p DECREASE_VOLUME:- INCREASE_VOLUME:+ SEEK_BACK_SMALL:left SEEK_FORWARD_SMALL:right SEEK_BACK_LARGE:down SEEK_FORWARD_LARGE:up STEP:.
Resources used to figure this out: