I am a long time XBMC user & very recent RPi 2 + OSMC fan. FYI I am running the RC version of OSMC.
I am not familiar with Linux AT ALL and probably the last person that wants to do ANYTHING in the Terminal.
This was one reason that OSMC caught my attention - because the install process (using the Installer app) was so simple!
I wanted to pass on how I got the Context Menu (& Info) function working on my Sony Remote - mapped to the FF and REW buttons - without SSHing or doing anything in the command line.
One of the things I really looked forward to with the RPi + OSMC was the ability to control using my regular TV remote without messing around with IR receivers / drivers etc.
In short: HDMI CEC - the protocol which allows connected devices to be controlled over the HDMI cable.
I have a Sony Bravia TV but these instructions should work for most OSMC/Kodi installs which are controlled using a remote over HDMI CEC.
You will need:
- Your OSMC install device and a means to control it - especially a way of using the context menu (I used the XBMC app on my iPhone)
- a computer with a working USB port
- a USB memory stick / card (mine was formatted to FAT32)
- a remote to use with your TV of course (most likely the original one)
To get the Context Menu & Info buttons working on your remote Iâd recommend finding some buttons which already control things in OSMC but that you can live without.
I chose to reassign the FFWD and REW button on my remote
The settings for custom remote button assignments are kept in the remote.xml file which resides in the Keymaps folder, deep within Kodi - most of the guides I looked at to help me started going on about SSH at this point⌠but we can get this done without learning how to code.
My OSMC install did not have a remote.xml file installed (probably because there were no custom buttons set up), so I needed to create one.
Feel free to use my remote.xml file if you would like to use your FFWD button for the Context Menu and the REW button for the Info function.
If you want to assign your own buttons, it would be best to start with a default one.
On your computer generate a remote.xml file - do this by creating a blank âplain textâ file, copying and pasting the ENTIRE contents of the default remote.xml file I linked to above.
Make sure you name it âremote.xmlâ without the quotations - I made mine on a Mac using TextEdit (make sure youâre using Plain Text format)
I bet the Windows Notepad would work just as well.
Then customize it to suit your needs - find the name of the function you want to replace, then put âContext Menuâ inbetween the ><
For MY needs the two changes I made were:
> <forward>ContextMenu</forward>
> <reverse>info</reverse>
Once you have your remote.xml file, copy it onto your USB drive. (Safely) Eject it from your computer then plug it into your OSMC device (in my case a Raspberry Pi 2)
Boot the device & get it up on whatever screen you are using. Then using a method of control WHICH ALREADY ALLOWS YOU TO USE THE CONTEXT MENU (I used the XBMC remote app on my phone) navigate toâŚ
System>Settings>File Manager
In File Manager there are two columns on screen - A and B. You can copy files from one to the other, which is what we are going to do.
First in one column (A), navigate to âProfile directoryâ and click it, then click on âkeymapâ - now you are looking at the contents of the Kodi keymap folder
Next in the OTHER column (B), navigate to your USB device and click it. Once you see the contents of your USB device navigate to the remote.xml file and then (while it is highlighted) use the Context Menu button to open the menu and select âCopyâ. This will copy the remote.xml file from your USB stick into the Keymaps folder in Kodi - you should now see it appear in the other column (A).
At this point back all the way out to the main menu & navigate down to Power. Click it and select Reboot. Now cross your fingers & take a deep breath.
Once OSMC reboots, try out your TV remote & see if you have the Context Menu / Info functions where you want them.
I really hope that this helps someone else, I spent most of this weekend grappling with this & am so happy I made some progress I just wanted to share.
If it did help you or if you have a question feel free to post a reply - donât forget to hit Thanks if this was useful.