I think the correct syntax in your case should be :
back
instead of
Home
I think the correct syntax in your case should be :
<Home>back</Home>
instead of
<back>Home</back>
ps: Ignore/delete previous post…
I could be using old/deprecated code, but this command works for me to get back to the Home screen from any screen within Rasplex:
XBMC.ActivateWindow(Home)
I have it pegged to the “red” key:
<red>XBMC.ActivateWindow(Home)</red>
I think I have it worked out to be that the keymap.xml file I have placed in the Keymaps folder doesn’t seem to be looked at by my RasPlex… doesn’t matter what I set any of my keys to, nothing changes. I think I have my xml file correct (although may be incorrect commands). I’m kinda stuck as to what to do now.
Is the file meant to be keymap.xml or keymaps.xml?
I should also note that I am using a 2.4GHz remote, it connects as a CEC Adapter (Product ID: 1001, Vendor: 2708, Version libCEC 3.0.1 - firmware v1). not sure if this makes a difference to the xml file, or location?
I couldn’t say about your CEC adapter. My remote is a Harmony connected via an IR blaster. My file name/location is:
/storage/.plexht/userdata/keymaps/keymap.xml
@arogers75 said:
I should also note that I am using a 2.4GHz remote, it connects as a CEC Adapter (Product ID: 1001, Vendor: 2708, Version libCEC 3.0.1 - firmware v1). not sure if this makes a difference to the xml file, or location?
I went through this already with a similar remote. Sounds like your remote is actually a WiFi Keyboard. The XML file should be named keyboard.xml not remote.xml. CEC adapter is built-in and would be used if you were using your TV’s remote, but you’re using a Minix WiFi keyboard
The correct xml syntax is:
Delete whats is in your keymap.xml file and paste the following into keyboard.xml (should be in /storage/userdata/keymaps folder):
<keymap> <global> <remote> <home>back</home> </remote> </global> </keymap>
That will go ‘back’ a menu item in relation to where you are, but won’t stop a video. If you use back while a video is playing, you will go back a menu, but the video keeps playing in the background. You’d want to map a key to Stop if that’s a problem for you.
Here’s my keyboard.xml as an example:
<keymap> <global> <remote> <key id="240">back</key> <home>Home</home> <leftwindows>back</leftwindows> <f2>Fullscreen</f2> <f3>ActivateWindow(Home)</f3> <power>Stop</power> </remote> </global> </keymap>
No, didn’t work. I don’t believe the RasPlex is even seeing a file there to map the keys. I have tried remote.xml, keymap.xml, keymaps.xml and now keyboard.xml
None of them work. The response form the key I want as a Back (or escape) is:
OnKey: home (f088) pressed, action is FirstPage
action should be the exact same as when I press the ESC key on my keyboard, also connected to the Pi which is:
OnKey: escape (f01b) pressed, action is ParentDir
No matter what I have tried ion the XML file, it never changes from being FirstPage…Obviously I’m doing something wrong.
Also, just to confirm the last XML format I tried was keyboard.xml, this is the complete listing of the file located in the directory…
RasPlexParents:~/.plexht/userdata/keymaps # ls -all
total 3
drwxr-xr-x 2 root root 1024 Jan 14 04:54 .
drwxr-xr-x 10 root root 1024 Jan 14 03:30 …
-rwxr–r-- 1 root root 101 Jan 14 04:54 keyboard.xml
I also have been trying to get this to work on my LG TV’s HDMI CEC control, however the Back and Exit buttons didn’t seem to send any code to try mapping them. I read through some other forums topics, and found someone mentioned with the LG TV’s press Stop then Play quickly, and this will produce a Back funtion, which it did for some reason.
DEBUG: OnKey: 229 (e5) pressed, action is Back (this is the stop then play button pressed one after the other quickly)
This has temporarily fixed the issue, but it’s not ideal, as this is where my wife watches TV, and trying to explain she needs to press stop then play quickly to go back will be a pain…
I wonder if your TV’s CEC has anything to do with it. Have you tried disabling it in Rasplex and just using the WiFi keyboard with the keyboard.xml mappings? I know that sometimes CEC will redirect a command to another device. I’ve seen that on a friends Rasplex setup where his WiFi keyboard remote controls his receivers audio via CEC by using the volume buttons on the remote. This is instead of the volume control on Rasplex.
The same remote used on another users TV only control the Rasplex device volume. The keyboard.xml instructions I gave you should work. I’ve never had them fail in the manner you described unless I had something setup improperly like identifying the wrong key in the log to reprogram.
Did this issue ever get resolved? I’m going through similar issues with an Aerb Wireless Keyboard Airmouse - no back button functionality. As far as I can see no keymap.xml functions are actually being read.