Kodi Community Forum
Linux remote.xml not working on Gotham beta 4 - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: Linux (https://forum.kodi.tv/forumdisplay.php?fid=52)
+---- Thread: Linux remote.xml not working on Gotham beta 4 (/showthread.php?tid=192926)



remote.xml not working on Gotham beta 4 - BM007 - 2014-04-22

I have been using remote.xml to remap a couple of functions to buttons on my remote that I dont use.
I recently upgraded to Gotham beta 4 and the remote.xml seems to be ignore that is the original functions occur when the buttons are pressed.
I cannot see any mention of remote.xml in my logfile. Is there something else I need to do to get xbmc to load it?

Here is the contents of my remote.xml that is stored in userdata/keymaps

Code:
<keymap>
<global>
<remote>
<mute>togglewatched</mute>
<volumeplus>SendClick(14)</volumeplus>
<volumeminus>XBMC.UpdateLibrary(Video)</volumeminus>
<power>ActivateWindow(shutdownmenu)</power>
</remote>
</global>
</keymap>

Any ideas as to why this is now not working?

Cheers
BM


RE: remote.xml not working on Gotham beta 4 - BM007 - 2014-04-26

So I turned on Debug and now I can see the remote.xml being loaded

Code:
00:33:49 T:140397771048896    INFO: Loading special://masterprofile/keymaps/keyboard.xml
00:33:49 T:140397771048896    INFO: Loading special://masterprofile/keymaps/noBS.xml
00:33:50 T:140397771048896    INFO: Loading special://masterprofile/keymaps/remote.xml
00:33:50 T:140397771048896    INFO: Loading special://profile/keymaps/keyboard.xml
00:33:50 T:140397771048896    INFO: Loading special://profile/keymaps/noBS.xml
00:33:50 T:140397771048896    INFO: Loading special://profile/keymaps/remote.xml

But when I press one of the remapped button, it is the original action that is performed

Code:
00:35:57 T:140397771048896   DEBUG: OnKey: volume_mute (0xf0b7) pressed, action is Mute

Any suggestions?


RE: remote.xml not working on Gotham beta 4 - negge - 2014-04-26

It doesn't work because "togglewatched" is not a command. You can see the current list of supported commands here.


RE: remote.xml not working on Gotham beta 4 - BM007 - 2014-04-26

(2014-04-26, 09:24)negge Wrote: It doesn't work because "togglewatched" is not a command. You can see the current list of supported commands here.

It has always worked in the past and the wiki says that the actions can be found in ButtonTranslator.cpp and "togglewatched" IS listed as a command
here


RE: remote.xml not working on Gotham beta 4 - FishOil - 2014-04-26

(2014-04-26, 09:24)negge Wrote: It doesn't work because "togglewatched" is not a command. You can see the current list of supported commands here.

togglewatched is a command and it should have worked.

I just remapped my mute key to the same command and it works fine.

Further investigation is required.

Start irw and press the key you are trying to use.
Make sure that key is translated as the mute key in both Lircmap.xml & remote.xml


Here are the valid commands https://github.com/xbmc/xbmc/blob/master/xbmc/input/ButtonTranslator.cpp


RE: remote.xml not working on Gotham beta 4 - jmarshall - 2014-04-26

I'd check what paths special://profile/keymaps etc. are. It might not be where you think it is.


RE: remote.xml not working on Gotham beta 4 - BM007 - 2014-04-26

I think I have solved this now. It seems as though I hadnt configured Lirc correctly so the device presses were not coming from Lirc at all. What I dont understand is how most of the keys were still working?


RE: remote.xml not working on Gotham beta 4 - negge - 2014-04-26

Sorry about that, I looked in the wrong place it seems.