remote.xml and Eden not working for custom mappings?
#1
I'm trying to remap the 4 colors on my harmony remote (red, yellow, blue, green) to these functions in XMBC 11.1 via remote.xml in

/Applications/xbmc.app/Contents/Resources/XBMC/system/keymaps/remote.xml

They pull up various system menu's instead.

Am I missing something obvious?

<red>XBMC.RestartApp</red>
<green>XBMC.CleanLibrary(video)</green>
<yellow>XBMC.VideoLibrary.Search</yellow>
<blue>XBMC.UpdateLibrary(video)</blue>

Reply
#2
The Debug Log will show you what's being executed - once you know that, take a nosy through the other XML files.

Note that you'll want to make any changes in userdata/keymaps/remote.xml as that will then override the system one.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#3
I'll give the debug log a try. I did see the option to use the user specific remote.xml but didn't find one. I assume I have to create it, but wasn't sure how much of the structure I needed to create to add the few keys that I need above. Do I recreate the <global><remote> bit, or just put the specific section for <remote>?

Thanks
Reply
#4
You need only add the sections that you require. It does have to have the same structure though (i.e. <remove><section><keys> ... </section></remote>)
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#5
Not sure if I'm doing this correctly. I've enabled debugging, and opened the library list, then actuated the programmed button. This is the output int he log when I do this:

11:56:35 T:2890056384 DEBUG: Activating window ID: 10004
11:56:36 T:2890056384 DEBUG: ------ Window Deinit (MyVideoNav.xml) ------
11:56:36 T:2890056384 DEBUG: ------ Window Init (Settings.xml) ------
11:56:36 T:2890056384 INFO: Loading skin file: Settings.xml

Specifically this was for this entry that I added to the remote.xml: <green>XBMC.CleanLibrary(video)</green>

The others report similar output.

Also, if I create these minor tweaks in the user data keycaps folder, should it look like this:

Code:
<remote>
    <red>XBMC.RestartApp</red>
    <green>XBMC.CleanLibrary(video)</green>
    <yellow>XBMC.VideoLibrary.Search</yellow>
    <blue>XBMC.UpdateLibrary(video)</blue>
</remote>

or like this?

Code:
<global>
    <remote>
        <red>XBMC.RestartApp</red>
        <green>XBMC.CleanLibrary(video)</green>
        <yellow>XBMC.VideoLibrary.Search</yellow>
        <blue>XBMC.UpdateLibrary(video)</blue>
    </remote>
</global>

I did find this in the log when I searched for 'remote' though (I verified that remote.xml does indeed have the opening and closing <remote></remote> tags);
Code:
12:17:53 T:2890056384    INFO: Loading special://xbmc/system/keymaps/joystick.AppleRemote.xml
12:17:53 T:2890056384    INFO: Loading special://xbmc/system/keymaps/joystick.PS3.Remote.Keyboard.xml
12:17:53 T:2890056384    INFO: Loading special://xbmc/system/keymaps/joystick.WiiRemote.xml
12:17:53 T:2890056384    INFO: Loading special://xbmc/system/keymaps/remote.xml
12:17:53 T:2890056384    INFO: Loading special://masterprofile/keymaps/remote.xml
12:17:53 T:2890056384   ERROR: special://masterprofile/keymaps/remote.xml Doesn't contain <keymap>
12:17:53 T:2890056384    INFO: Loading special://profile/keymaps/remote.xml
12:17:53 T:2890056384   ERROR: special://profile/keymaps/remote.xml Doesn't contain <keymap>
12:17:54 T:2957651968    INFO: Video scan was stopped or finished ... restoring FindRemoteThumbs

The only other reference I found in remote.xml to the color keys was in the <Teletext></Teletext> section.

Last but not least, I'm also assuming if I do place this in UserData\keymaps, I would name it remote.xml rather than keymap.xml?

Thanks again!
Reply
#6
Some progress. I added <keymap> tags to my custom remote.xml in my homedir UserData/keymaps/ and that error cleared.

Now I see these errors insead:

12:28:01 T:2890056384 INFO: Loading special://xbmc/system/keymaps/joystick.AppleRemote.xml
12:28:01 T:2890056384 INFO: Loading special://xbmc/system/keymaps/joystick.PS3.Remote.Keyboard.xml
12:28:01 T:2890056384 INFO: Loading special://xbmc/system/keymaps/joystick.WiiRemote.xml
12:28:01 T:2890056384 INFO: Loading special://xbmc/system/keymaps/remote.xml
12:28:01 T:2890056384 INFO: Loading special://masterprofile/keymaps/remote.xml
12:28:01 T:2890056384 ERROR: Window Translator: Can't find window remote
12:28:01 T:2890056384 INFO: Loading special://profile/keymaps/remote.xml
12:28:01 T:2890056384 ERROR: Window Translator: Can't find window remote
Reply
#7
Can you post your special://masterprofile/keymaps/remote.xml here.

JR
Reply
#8
This is all I have in it. Thanks.

Code:
    <remote>
        <red>XBMC.RestartApp</red>
        <green>XBMC.CleanLibrary(video)</green>
        <yellow>XBMC.VideoLibrary.Search</yellow>
        <blue>XBMC.UpdateLibrary(video)</blue>
    </remote>
    <teletext>
        <red>XBMC.RestartApp</red>
        <green>XBMC.CleanLibrary(video)</green>
        <yellow>XBMC.VideoLibrary.Search</yellow>
        <blue>XBMC.UpdateLibrary(video)</blue>
    </teletext>
Reply
#9
As Jonathan said you need the same structure.

PHP Code:
<keymap>
    <global>
        <
remote>
            <
red>XBMC.RestartApp</red>
            <
green>XBMC.CleanLibrary(video)</green>
            <
yellow>XBMC.VideoLibrary.Search</yellow>
            <
blue>XBMC.UpdateLibrary(video)</blue>
        </
remote>
        <
teletext>
            <
red>XBMC.RestartApp</red>
            <
green>XBMC.CleanLibrary(video)</green>
            <
yellow>XBMC.VideoLibrary.Search</yellow>
            <
blue>XBMC.UpdateLibrary(video)</blue>
        </
teletext>
    </global>
</
keymap
Reply
#10
Thanks. I was worried that might be the case. I'll edit it now. Stay tuned...
The relaunch had a better looking log this time (thanks for that). No errors loading remote.xml. Unfortunately the mapping doesn't seem to be taking. When I use the 'clean library' button mapped to <green>, the log just shows this:

06:38:18 T:2890056384 DEBUG: Activating window ID: 10004
06:38:18 T:2890056384 DEBUG: ------ Window Deinit (MyVideoNav.xml) ------
06:38:18 T:2890056384 DEBUG: ------ Window Init (Settings.xml) ------
06:38:18 T:2890056384 INFO: Loading skin file: Settings.xml
06:38:20 T:2890056384 DEBUG: ------ Window Init (Pointer.xml) ------
06:38:20 T:2890056384 DEBUG: ------ Window Deinit (Pointer.xml) ------
Reply
#11
Can you provide a pastebin of your Lircmap.xml file? Also, open a SSH session and open the programm "irw" and press the green button. What does irw tell you is pressed?
Reply
#12
Here's the pastbin of Lircmap.xml: http://pastebin.com/ZhHUs0Fk

Where is the IRW executable?
Reply
#13
Thinking about it, the better question is: What OS are you actually using? In Linux, irw is contained in the PATH, i.e. it can be run from a terminal by simply typing "irw". I think for Windows, lirc is not used and lircmap is irrelevant.
Reply
#14
OS X Lion 10.7.3.
Reply
#15
ok, I am sorry then. I am not sure if OS X even uses lirc.
Reply

Logout Mark Read Team Forum Stats Members Help
remote.xml and Eden not working for custom mappings?0