What am I doing wrong with Lircmap.xml & Keymap.xml (HP MCE Remote)
#1
Image
Keymap.xml
Code:
<keymap>
    <global>
        <remote>
            <DVD>ShowVideoMenu</DVD>
            <Power>PowerOff</Power>
            <TV>OSD</TV>
            <Radio>AspectRatio</Radio>
            <Music>Music</Music>
            <Pictures>Pictures</Pictures>
            <Videos>Videos</Videos>
            <ShowSubtitles>Record</ShowSubtitles>
            <Play>Play</Play>
            <Stop>Stop</Stop>
            <Rewind>Rewind</Rewind>
            <Forward>Forward</Forward>
            <SkipPrevious>Replay</SkipPrevious>
            <Pause>Pause</Pause>
            <SkipNext>Skip</SkipNext>
            <PreviousMenu>Back</PreviousMenu>
            <Info>Info</Info>
            <Up>Up</Up>
            <Left>Left</Left>
            <Select>OK</Select>
            <Right>Right</Right>
            <Down>Down</Down>
            <VolumeUp>VolUp</VolumeUp>
            <VolumeDown>VolDown</VolumeDown>
            <Display>Home</Display>
            <ChanUp>PageUp</ChanUp>
            <ChanDown>PageDown</ChanDown>
            <Mute>Mute</Mute>
            <LiveTV></LiveTV>
            <Guide></Guide>
            <RecTV></RecTV>
            <One>Queue</One>
            <Two>Playlist</Two>
            <Three>ShowSubtitles</Three>
            <Four></Four>
            <Five></Five>
            <Six></Six>
            <Seven></Seven>
            <Eight></Eight>
            <Nine></Nine>
            <Star></Star>
            <Zero></Zero>
            <Hash>Close</Hash>
            <Clear>AspectRatio</Clear>
            <Print>FullScreen</Print>
            </remote>
    </global>
</keymap>

Lircmap.xml
Code:
<lircmap>
  <remote device="mceusb">
    <left>Left</left>
    <right>Right</right>
    <up>Up<up>
    <menu>DVD</menu>
    <power>Power</power>
    <channelplus>ChanUp</channelplus>
    <channelminus>ChanDown</channelminus>
    <volumeplus>VolUp</volumeplus>
    <volumeminus>VolDown</volumeminus>
    <livetv>LiveTV</livetv>
    <mute>Mute</mute>
    <display>Home</display>
    <info>Info</info>
    <mymusic>Music</mymusic>
    <mypictures>Pictures</mypictures>
    <myvideos>Videos</myvideos>
    <play>Play</play>
    <stop>Stop</stop>
    <reverse>Rewind</reverse>
    <forward>Forward</forward>
    <skipplus>Skip</skipplus>
    <skipminus>Replay</skipminus>
    <pause>Pause</pause>
    <title>Guide</title>
    <record>RecTV</record>
    <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>
    <star>Star</star>
    <zero>Zero</zero>
    <hash>Hash</hash>
    <clear>Clear</clear>
  </remote>

I have been trying to get the extra buttons of my HP MCE Remote USB working but nothing I do leads to any changes in XBMC (SVN) + Ubuntu 9.04

The remote works good, but I cant seem the extra buttons to work. I have saved Keymap.xml and Lircmap.xml in USERDATA/.xbmc/userdata/keymaps/Keymap.xml and USERDATA/.xbmc/userdata/keymaps/Lircmap.xml.

Please help, I am losing hair over this. Wink
Reply
#2
You may want to use irw from a terminal to see if you're using the right button names, they are case sensitive if i recall.

Example:
Quote:[hikaricore@key:/opt/share/xbmc (11.9 Mb)]$ irw
00000000000028d8 00 PAUSE Streamzap_PC_Remote
00000000000028d8 01 PAUSE Streamzap_PC_Remote
00000000000028e3 00 BLUE Streamzap_PC_Remote
00000000000028e3 01 BLUE Streamzap_PC_Remote
00000000000028d5 00 MENU Streamzap_PC_Remote
00000000000028d5 01 MENU Streamzap_PC_Remote
00000000000028d8 00 PAUSE Streamzap_PC_Remote
00000000000028d8 01 PAUSE Streamzap_PC_Remote

You can see the button name next to each button press and unpress followed by the remote name. :p

So for example I have a button named BLUE which I want to map to info, I use:

<info>BLUE</info>

And my number buttons return actual numbers so i have it as such:

<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>

Hope these examples and irw help ^_^
Reply
#3
Thanks but it wasnt the solution, I doublechecked.

Code:
htpc@htpc-desktop:~$ irw
000000037ff07be1 00 Up mceusb
000000037ff07be1 01 Up mceusb
000000037ff07bdf 00 Left mceusb
000000037ff07bdf 01 Left mceusb
000000037ff07be0 00 Down mceusb
000000037ff07be0 01 Down mceusb
000000037ff07bda 00 LiveTV mceusb
000000037ff07bda 01 LiveTV mceusb
000000037ff07bda 02 LiveTV mceusb
Reply
#4
Make sure you're editing the correct file, I had similar issues and it turned out it was that simple.

I think
Code:
<remote device="mceusb">
is covered under /usr/share/XBMC/system/keymaps/remote.xml now - so try editing that entry?

There's probably a better way of doing it (i.e keeping it in the user folder) but I'm a linux noob and wanted a quick a dirty fix.
Reply
#5
I'm not sure why you have a 'keymaps' folder, I just keep mine in my userdata directory..

~/.xbmc/userdata/
Reply
#6
I followed http://www.xbmc.org/wiki/?title=Keymap.xml which says to

"Since r21442 (that's after the current 9.04.1 release), the default keymapping files are stored in the system/keymaps/ subfolder of your installation. To alter the default keymapping simply add one or more xml-files in the Userdata/keymaps/ folder with the changes you wish to make. For backwards compatibily, Userdata/Keymap.xml is still read."

However I have tried putting it directly in Userdata now but no change. I guess that probably since the remote is already working with the default buttons I will have to try vexations dirty fix because the keymap.xml and lircmap.xml settings are probably conflicting.
Reply
#7
gladroger Wrote:I will have to try vexations dirty fix because the keymap.xml and lircmap.xml settings are probably conflicting.

FYI I just edited my post as I think I initially got the path wrong.. pretty sure there's only one remote.xml file anyway /shrug - good luck.
Reply
#8
Thanks for your help vexation & hikaricore, I will report when I try tonight.
Reply
#9
I just went through the same thing this weekend so I will share my experiences. Lircmap.xml belongs in ~xbmc/.xbmc/userdata and Keymap.xml belongs in ~xbmc/.xbmc/userdata/keymaps. For backwards compatibility you could put Keymap.xml in ~xbmc/.xbmc/userdata but I figured I would comply with the new standard and put it in the keymaps folder. My Keymap.xml file is actually named remote.xml and it loads fine. I think you can name the xml file what ever you want as long as it is in the keymaps folder. But don't quote me on that.

I am using the Xbox DVD Kit dongle on my machine which will accept any command using the RCA5 protocol. So I configured a bunch of additional custom buttons on my universal remote (MX-850). The problem I had was mapping them. There is a short list of button names you can use in the Keymap.xml file. If you want to add a custom button that isn't on the list of acceptable button names you have to stick the buttons in the <universalremote> section and name them obc1, obc2, ect, ect.

For example here is part of my Lircmap.xml:
Code:
<lircmap>
    <remote device="XboxDVDDongle">
        <play>PLAY</play>
        <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>
        <back>BACK</back>
        <menu>MENU</menu>
        <title>TITLE</title>
        <info>INFO</info>
        <skipplus>SKIP+</skipplus>
        <skipminus>SKIP-</skipminus>
        <display>DISPLAY</display>
        <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>
        <mymusic>Music</mymusic>
        <power>Power</power>
        <obc1>List</obc1>
        <obc2>Reboot</obc2>
    </remote>
</lircmap>

And here is part of my Keymap.xml:
Code:
<keymap>
  <global>
    <remote>
      <three>VolumeUp</three>
      <six>VolumeDown</six>
      <nine>Mute</nine>
      <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>
      <title>ContextMenu</title>
      <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()</power>
      <myvideo>XBMC.ActivateWindow(MyVideos)</myvideo>
      <mymusic>XBMC.ActivateWindow(MyMusic)</mymusic>
      <mypictures>XBMC.ActivateWindow(MyPictures)</mypictures>
      <mytv>XBMC.ActivateWindow(Home)</mytv>
    </remote>
    <universalremote>
      <obc2>XBMC.RestartApp</obc2>
    </universalremote>
  </global>

As you can see I have a button named obc2 in the Lircmap that is configured to restart XBMC in the Keymap file.

This is all documented very well in the Wiki but I still struggled with it. Hahaha.

Lircmap.xml documented here:
http://wiki.xbmc.org/?title=Lirc_and_Lircmap.xml

And Keymap.xml documented here:
http://wiki.xbmc.org/?title=Keymap.xml

The key is to pay very close attention to the sections related to universal remotes.

I hope this helps save some of your hair, I know I pulled out some of mine. Smile
Reply
#10
Thank you, my hair is now intact. What I needed was to edit remote.xml as per vexation's suggestion. My MCE remote doesn't have a "Display" button and therefore it was impossible to switch FullScreen on & off.

However now I got the Back button to exit FullScreen and Record button to return to FullScreen.

Thank you again!
Reply
#11
I've got same remote the best thing that i bought this year and cheap.
Reply
#12
decaturguy Wrote:I've got same remote the best thing that i bought this year and cheap.

Yes, it rocks. I bought my on ebay for 13-14 $, I couldnt find it on DX.

One thing irritates me still with this remote. My Xbox 360 turns on when pressing Power or Home.
Reply
#13
Hi all, I found this thread while trying to get my LIRC setup off the ground. I'm using the same remote as in the picture on the original post, and cannot get XBMC to use it for the life of me. I was wondering if anyone could help me get the remote to work at all.

When I run irw, i get remote codes like so:

Code:
000000037ff07bdf 00 Left mceusb
000000037ff07bdf 01 Left mceusb
000000037ff07bde 00 Right mceusb
000000037ff07bde 01 Right mceusb
000000037ff07be1 00 Up mceusb
000000037ff07be1 01 Up mceusb
000000037ff07be0 00 Down mceusb
000000037ff07bd0 01 Down mceusb
000000037ff07bdd 00 OK mceusb

My Lircmap.xml file looks like this: (location /usr/share/xbmc/userdata/Lircmap.xml)

Code:
<lircmap>
        <remote device="mceusb">
                <up>Up</up>
                <down>Down</down>
                <left>Left</left>
                <right>Right</right>
                <select>OK</select>
        </remote>
</lircmap>

And my Keymap.xml file is like this: (location /usr/share/xbmc/userdata/keymaps/Keymap.xml)

Code:
<keymap>
        <global>
                <remote>
                        <up>Up</up>
                        <down>Down</down>
                        <left>Left</left>
                        <right>Right</right>
                        <select>Select</select>
                </remote>
        </global>
</keymap>

I've tried several different configurations, and followed multiple guides (the one that makes most sense is http://forum.xbmc.org/showthread.php?tid=45972), but I have yet to get any button response from XBMC. If it helps, I am using the IR receiver that came with the remote (both were bundled with my HP laptop).

Any help would be awesome, as I would rather not use a wireless keyboard to control my HTPC.
Reply
#14
Falchion Wrote:And my Keymap.xml file is like this: (location /usr/share/xbmc/userdata/keymaps/Keymap.xml)

I'm struggling with xbmc recognizing my otherwise working remote too, but this path is wrong, and it's the second wrong path in this thread. So be sure you put them in the right places first of all:
1) let them in the old default location which was ~/.xbmc/userdata (both files). It's still working.
2) use the new path for Keymap.xml which is ~/.xbmc/keymaps/ where you may also use custom filenames and/or use separated files for each device you plan to use. Lircmap.xml remains in ~/.xbmc/userdata.
3) for those who don't know yet. It was supposed to work like this: there are two files in /usr/share/xbmc/system/ which are Keymap.xml and Lircmap.xml. Keymap.xml may disappear soon, replaced by /usr/share/xbmc/system/keymaps/....xml. For all those files, the advice is NOT to change them, but, if you need it, copy them to your profile's xbmc path (see 2)) and there edit them. They will override the ones in /usr if they're found. And if you mess up a file, you (and xbmc) still have a backup in /usr/...
Reply
#15
rickx, I placed the files in the location you mentioned and it works! Turns out it was my inexperience with Linux causing the problem. I misunderstood where the location ~/.xbmc actually was. Now it works great, thanks so much for the help!

If anyone reads this thread with the same problem, type cd /home/*username*/.xbmc to get to ~/.xbmc
Reply

Logout Mark Read Team Forum Stats Members Help
What am I doing wrong with Lircmap.xml & Keymap.xml (HP MCE Remote)0