Configuring Lircmap.xml + remote.xml?!?
#1
Id like to add 3 buttons to my logitech harmony/mceusb receiver, Show Subs, Next Sub and DL Subs for use while playing video. Ive managed to get DL Subs to work (executes a script) but this was configured using an exisiting entry in the files. The other two, Show Subs and Next Sub, I cant get to work at all. Ive read the wiki and a old how-to (was for keymap.xml, but everything is pretty much the same from what I saw) and everything seems as it should. Ive tries multiple things all no no avail, so after more than of an hour trying I though Id post here for some help...Huh

obc1 is Show Subs (BB2)
obc2 is Next Sub (RecTV)
start is DL Subs (Home)(is the working one)

irw oputput:

Code:
000000037ff07bb2 00 BB2 mceusb
000000037ff07bb2 01 BB2 mceusb
000000037ff07bb7 00 RecTV mceusb
000000037ff07bb7 01 RecTV mceusb
000000037ff07bf2 00 Home mceusb
000000037ff07bf2 01 Home mceusb

Here the relevant section of my Lircmap.xml. The last three entries are the custom ones:

Code:
<lircmap>
    <remote device="mceusb">
        <play>Play</play>
        <pause>Pause</pause>
        <stop>Stop</stop>
        <forward>Forward</forward>
        <reverse>Rewind</reverse>
        <left>Left</left>
        <right>Right</right>
        <up>Up</up>
        <down>Down</down>
        <select>OK</select>
        <pageplus>ChanUp</pageplus>
        <pageminus>ChanDown</pageminus>
        <back>Back</back>
        <menu>DVD</menu>
        <title>Guide</title>
        <info>More</info>
        <skipplus>Skip</skipplus>
        <skipminus>Replay</skipminus>
        <display>Aspect</display>
        <record>Record</record>
        <volumeplus>VolUp</volumeplus>
        <volumeminus>VolDown</volumeminus>
        <mute>Mute</mute>
        <power>Power</power>
        <myvideo>Videos</myvideo>
        <mymusic>Music</mymusic>
        <mypictures>Pictures</mypictures>
        <mytv>TV</mytv>
        <one>One</one>
        <two>Two</two>
        <three>Three</three>
        <four>Four</four>
        <five>Five</five>
        <six>Six</six>
        <seven>Seven</seven>
        <eight>Eight</eight>
        <nine>Nine</nine>
        <zero>Zero</zero>
        <star>Star</star>
        <hash>Hash</hash>
        <clear>Clear</clear>
        <enter>Enter</enter>
        <red>Red</red>
        <green>Green</green>
        <yellow>Yellow</yellow>
        <blue>Blue</blue>
                <obc1>BB2</obc1>
        <obc2>RecTV</obc2>
        <start>Home</start>
    </remote>

Here the relevant section of my modified remote.xml

Code:
<FullscreenVideo>
    <remote>
      <zero>Number0</zero>
      <one>Number1</one>
      <two>Number2</two>
      <three>Number3</three>
      <four>Number4</four>
      <five>Number5</five>
      <six>Number6</six>
      <seven>Number7</seven>
      <eight>Number8</eight>
      <nine>Number9</nine>
      <left>StepBack</left>
      <right>StepForward</right>
      <up>BigStepForward</up>
      <down>BigStepBack</down>
      <back>SmallStepBack</back>
      <menu>OSD</menu>
      <title>CodecInfo</title>
      <info>Info</info>
      <enter>AspectRatio</enter>
      <select>AspectRatio</select>
      <teletext>XBMC.ActivateWindow(Teletext)</teletext>
      <language>AudioNextLanguage</language>
      <start>RunScript(/home/xbmc/.xbmc/scripts/OpenSubtitles_OSD/default.py)</start>
    </remote>
    <universalremote>
      <obc1>ShowSubtitles</obc1>
      <obc2>NextSubtitle</obc2>
    </universalremote>
  </FullscreenVideo>

Ive also tried this:

Code:
...
      <language>AudioNextLanguage</language>
      <start>RunScript(/home/xbmc/.xbmc/scripts/OpenSubtitles_OSD/default.py)</start>
    <universalremote>
      <obc1>ShowSubtitles</obc1>
      <obc2>NextSubtitle</obc2>
    </universalremote>
    </remote>
  </FullscreenVideo>

And this:

Code:
...
      <language>AudioNextLanguage</language>
      <start>RunScript(/home/xbmc/.xbmc/scripts/OpenSubtitles_OSD/default.py)</start>
      <obc1>ShowSubtitles</obc1>
      <obc2>NextSubtitle</obc2>
    </remote>
  </FullscreenVideo>

All with no success. The output of xbmc.log when i press the buttons with the first remote.xml (the one I thinks is most correct) and the working button at the end:

Code:
14:52:47 T:3054782336 M:2908540928   DEBUG: LIRC: Update - NEW at 487954:000000037ff07bb2 00 BB2 mceusb (BB2)
14:52:48 T:3054782336 M:2908573696   DEBUG: LIRC: Update - NEW at 488660:000000037ff07bb7 00 RecTV mceusb (RecTV)

Both .xml's are located in:

/home/xbmc/.xbmc/userdata/keymaps/

Im running pre-10.05 r28256

Im sure its something small but im stumped Sad

Anyone have any suggestions?
Reply
#2
IIRC you have to use a set of known values in Lircmap.xml. You can't just use any old text (obc1/obc2). This is what I've mapped my 3 buttons on my Gyration remote to:

Code:
<livetv>LiveTV</livetv>
                <title>DVD</title>
                <start>Home</start>


You need to find unused tokens and map to those (in my case, livetv and title). HTH
Reply
#3
Okay after trying some more it seems that Lircmap.xml needs to be in the /home/xbmc/.xbmc/userdata directory while remote.xml should be in the /home/xbmc/.xbmc/userdata/keymaps directory. Ill see if I can clarify this in the wiki, because the info's there, I think it can be a bit clearer. All commands are working fine now and the obc# codes work too. Here is my setup:

/home/xbmc/.xbmc/userdata/Lircmap.xml:

Code:
<red>Red</red>
        <green>Green</green>
        <yellow>Yellow</yellow>
        <blue>Blue</blue>
                <obc1>BB2</obc1>
        <obc2>RecTV</obc2>
        <obc3>Home</obc3>
    </remote>

/home/xbmc/.xbmc/userdata/keymaps/remote.xml:

Code:
<teletext>XBMC.ActivateWindow(Teletext)</teletext>
      <language>AudioNextLanguage</language>
    </remote>
    <universalremote>
      <obc1>ShowSubtitles</obc1>
      <obc2>NextSubtitle</obc2>
      <obc3>RunScript(/home/xbmc/.xbmc/scripts/OpenSubtitles_OSD/default.py)</obc3>
    </universalremote>
  </FullscreenVideo>

I knew it was something simple!!Nod
Reply
#4
After playing around with remote.xml a bit more and adding a a button for the CU Lyrics screen I noticed some strange behaviour when the custom buttons were pressed in windows where nothing was programed for them (everyone except FullscreenVideo and Visulisation).

obc1 would open the pictures add source window.
obc2 would open the music window.
obc3 would open the video library.

This is very strange, Im not sure if this is a bug or not. The buttons should have no effect in other windows as they have not been mapped for any other windows. Anyway, I tried adding the following lines to the global section of remote.xml with success:

Code:
<keymap>
  <global>
    <universalremote>
      <obc1>Close</obc1>
      <obc2>Close</obc2>
      <obc3>Close</obc3>
    </universalremote>
  </global>

This solves the problem. Now if I press the show subtitles/lyrics button on my remote for a second time (while the lyrics are being displayed)it will do nothing, as opposed to before, which would bring up the add source window over the visualisation and under the lyrics. Pressing any of the other custom buttons while the lyrics are displayed has no effect either.

Maybe someone can clarify as to why Ive had to do this?
Reply

Logout Mark Read Team Forum Stats Members Help
Configuring Lircmap.xml + remote.xml?!?0