have lirc working but can't control xbmc
#1
Hi there,

I got a problem, getting lirc to work with xbmc.

So I got lirc to work all the wich is indicated by irw correctly showing me my remote and which key I pressed.

I edited /home/xbmc/.xbmc/Lircmap.xml:

<lircmap>
<remote device="philips">
<pause>pause</pause>
<stop>stop</stop>
<forward>>></forward>
<reverse><<</reverse>
<left>left</left>
<right>right</right>
<up>up</up>
<down>down</down>
...
</remote>

...and /home/xbmc/.xbmc/Keymap.xml:
<keymap>
<global>
<remote>
<pause>pause</pause>
<stop>stop</stop>
<forward>>></forward>
<reverse><<</reverse>
<left>left</left>
<right>right</right>
<up>up</up>
<down>down</down>
...
</remote>

To my understanding I should now be able to remote-control xbmc but nothing happens..

Did I miss anything?

Best regards,
../nico
Reply
#2
They go in .xbmc/userdata
Reply
#3
opps, sorry, that's where I had them all along, doesn't work..
Reply
#4
As always: Full debug log to pastebin please. Be sure to press some buttons so we actually see something in there.
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.
Reply
#5
Well, meanwhile the entire system crases over and over. I could nail it down to FAT filesystem errors, so I will just install it do a harddrive and start over..
Reply
#6
((( atom ))) Wrote:Well, meanwhile the entire system crases over and over. I could nail it down to FAT filesystem errors, so I will just install it do a harddrive and start over..

Atom,

Make sure that the remote name in your Lircmap file matches the remote name in your /etc/lirc/lircd.conf file.

Dave
Reply
#7
Well, meanwhile I setu up the whole system again, this time on a harddisk instead of a usb-stick and I got it to work. SOmehow I got mixed up with the mappings in Lircmap.xml and Keymap.xml I got the important buttons to work now, others not, but I was being very tired in the end and I guess, if I take a look at it agin, I will figure the rest quickly..
Reply
#8
By the way, what caused the crash in the first place was this:

<forward>>></forward>
<reverse><<</reverse>

These ">>" do work in lircd.conf but prevent xbmc from starting. In my case, it seems that also FAT filesystem errors due to writing to a partition on the usb stick lead to a total chaos but after having xbmc installed to harddisk I could quickly spot that.
Reply
#9
you have to escape those braces. They'll break xml validity, hence the error.
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.
Reply
#10
Well, I just renamed the according section in my lircd.conf.

So status is: Strange.. I can control xbmc, but not everything. Main keys/functions are working (up, down, left, right, select) but whatever I try, I can't get the contextmenu to work.. irw answers to every single key on my keyboard, so the lirc side is working properly.

I already tried remapping a key that works in xbmc to contextmenu, doesn't work. Remapping the same key to "back" for instance works fine. Maybe I got it all wrong, so I will just post my three config files here, maybe someone can point me to my error..

Here we go:

/etc/lircd.conf
Code:
begin remote

  name  philips
  bits           13
  flags RC5|CONST_LENGTH
  eps            30
  aeps          100

  one           951   824
  zero          951   824
  plead         998
  gap          113804
  toggle_bit      2


      begin codes
          1                        0x1141
          2                        0x1142
          3                        0x1143
          4                        0x1144
          5                        0x1145
          6                        0x1146
          7                        0x1147
          8                        0x1148
          9                        0x1149
          0                        0x1140
          reverse                  0x1172
          play                     0x1175
          forward                  0x1174
          stop                     0x1176
          record                   0x1177
          pause                    0x1170
          -/--                     0x114A
          surround                 0x117A
          mute                     0x100D
          volumeplus               0x1010
          volumeminus              0x1011
          progplus                 0x1160
          progminus                0x1161
          info                     0x114F
          contextmenu              0x1178
          menu                     0x0152
          back                     0x0153
          select                   0x0157
          left                     0x0155
          right                    0x0156
          up                       0x0150
          down                     0x0151
          guide                    0x017D
          showview                 0x0145
          timer                    0x115D
          fav                      0x1171
          disc                     0x117C
          power                    0x114C
      end codes

end remote

/home/xbmc/.xbmc/userdata/Lircmap.xml
Code:
<lircmap>
        <remote device="philips">
                <pause>pause</pause>
                <Stop>stop</Stop>
                <forward>forward</forward>
                <reverse>reverse</reverse>
                <left>left</left>
                <right>right</right>
                <up>up</up>
                <down>down</down>
                <select>select</select>
                <pageplus>progplus</pageplus>
                <pageminus>progminus</pageminus>
                <back>back</back>
                <menu>menu</menu>
                <contextmenu>ContextMenu</contextmenu>
                <info>info</info>
                <skipplus>Skip</skipplus>
                <skipminus>Replay</skipminus>
                <display>fav</display>
                <start>showview</start>
                <record>rec</record>
                <VolumeUp>volumeplus</VolumeUp>
                <VolumeDown>volumeminus</VolumeDown>
                <Mute>mute</Mute>
                <power>power</power>
                <myvideo>disc</myvideo>
                <mymusic>Music</mymusic>
                <mypictures>Pictures</mypictures>
                <mytv>TV</mytv>
                <one>1</one>
                <two>2</two>
                <three>3</three>
                <four>4</four>
                <five>5</five>
                <six>6</six>
                <seven>7</seven>
                <eight>8</eight>
                <nine>9</nine>
                <zero>0</zero>
                <mytv>Red</mytv>
                <mymusic>Green</mymusic>
                <mypictures>Yellow</mypictures>
                <myvideo>Blue</myvideo>
        </remote>

/home/xbmc/.xbmc/userdata/Keymap.xml
Code:
<keymap>
  <global>
    <remote>
      <volumeplus>VolumeUp</volumeplus>
      <volumeminus>VolumeDown</volumeminus>
      <mute>Mute</mute>
      <play>Play</play>
      <pause>Pause</pause>
      <stop>Stop</stop>
      <forward>FastForward</forward>
      <reverse>Rewind</reverse>
      <left>Left</left>
      <right>Right</right>
      <up>Up</up>
      <down>Down</down>
      <select>select</select>
      <pageplus>PageUp</pageplus>
      <pageminus>PageDown</pageminus>
      <back>ParentDir</back>
      <menu>PreviousMenu</menu>
      <ContextMenu>contextmenu</ContextMenu>
      <info>Info</info>
      <skipplus>SkipNext</skipplus>
      <skipminus>SkipPrevious</skipminus>
      <display>FullScreen</display>
      <start>PreviousMenu</start>
      <record>Screenshot</record>
      <volumeplus>VolumeUp</volumeplus>
      <volumeminus>VolumeDown</volumeminus>
      <mute>Mute</mute>
      <power>XBMC.ShutDown()ii</power>
      <myvideo>XBMC.ActivateWindow(MyVideos)</myvideo>
      <mymusic>XBMC.ActivateWindow(MyMusic)</mymusic>
      <mypictures>XBMC.ActivateWindow(MyPictures)</mypictures>
      <mytv>XBMC.ActivateWindow(Home)</mytv>
    </remote>

Damn, pressed "submit" instead of "preview"..

Anyway, that was about it, I am not very god with mappings ever since, I tend to get mixed up, so maybe the solution is fairly simple. Another strange issue, though: When I put bogus into /etc/lircd.conf, let's say all numbers, I can still control some xbmc functions like up and down. How can that be?!

Best regards,
../nico
Reply
#11
Is Context Menu not the play button on most remotes, I do not think you have a play button link in your lircmap.xml anywhere.

here is my lircmap, with an mce remote. I am using the stock keymap.xml file as shipped with xbmc. my button names may be different as some keys use caps and some do not. If you notice my play button is linked with <title> and in the stock keymap <title> is linked with the context menu. I notice in yours it is not.

stock un-modified keymap.xml global remote section for title.

Code:
<title>ContextMenu</title>

my Lircmap.xml for mceusb.

Code:
<lircmap>
    <remote device="mceusb">
        <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>PreviousMenu</menu>
        <title>Play</title>
        <info>More</info>
        <skipplus>Skip</skipplus>
        <skipminus>Replay</skipminus>
        <display>Teletext</display>
        <start>Home</start>
        <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>
        <mytv>Red</mytv>
        <mymusic>Green</mymusic>
        <mypictures>Yellow</mypictures>
        <myvideo>Blue</myvideo>
    </remote>

Dave
Reply
#12
Ok, changing Keymap.xml:
Code:
<title>contextmenu</title>

and Lircmap.xml
Code:
<contextmenu>play</contextmenu>

wich points to my lircd.conf:
Code:
play                     0x1175

rebooting (just to make sure..) ...

and: nothing! Sad
..but the log shows:
Code:
Remote Translator: Can't find button contextmenu
13:12:26 T:3049224080 M:2011246592   DEBUG: Update - NEW at 50101:0000000000001175 00 play philips (play)

I don't get the clue, since contextmenu is not a button, but a functionto trigger in xbmc.
Reply
#13
Oh, I'm stupid, must be
Code:
<title>play</title>
in Lircmap.xml of course.. Trying that now.. I told you I was very bad with mapping things around, nothing new .. Wink
Reply
#14
It works, thx a lot!
Reply
#15
((( atom ))) Wrote:It works, thx a lot!


Great, glad to help. upper case, lower case, xml, it can all be a little confusing, wait till you have 5 or 6 scripts linking back to your lircrc file with a few instances of lirc on the same machine, that can be fun stuff. Big Grin

I have never had to edit my Keymap.xml file ever and only ever edited the Lircmap file when changing or adding remotes.

Have Fun,

Dave
Reply

Logout Mark Read Team Forum Stats Members Help
have lirc working but can't control xbmc0