Kodi Community Forum

Full Version: XBMC Not loading Lircmap.xml after multiple attempts
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Recently upgraded Ubuntu to Natty. I know there's a slew of issues caused by the internal IR modules, I'm using an ATI Remote Wonder (RF) which is a whole other kettle of fish as well. That said, Lirc is loaded fine, driver and configuration all set properly. Running IRW returns actual codes, not key presses, so everything seems fine on that end.

The real issue seems to be Lircmap.xml, XBMC is not trying to load it. There is NO mention of Lircmap.xml in the log file at all!

I have the file in these locations:

/usr/share/xbmc/userdata/Lircmap.xml
/usr/share/xbmc/system/Lircmap.xml
~/.xbmc/userdata/Lircmap.xml

To date, I've tried using XBMC from the following repositories/steps (as there is no 'natty' specific stable build):

- original install XBMC from the Maverick install (pre-natty)
- new XBMC install from the unstable repository
- new XBMC install using the stable repository but changing references of natty to maverick

I've also tried forcing XBMC command line (-l) to point to the /dev/lircd and the /var/run/lirc/lircd device which is symlinked.

Does anyone know why XBMC would completely ignore the Lircmap.xml file and make no mention of the file in the logs?
Please enable debug logging and pastebin the entire xbmc.log.
I assume that the XML is valid? You can open it in Firefox to check.
So I turned on debug mode (newb move, apologies), and saw that the XBMC has loaded my ~/.../userdata/Lircmap.xml. The device "ati_remove_wonder_rf" is active:

Code:
01:03:35 T:139678390814816 M:1177059328    INFO: load default splash image: /usr/share/xbmc/media/Splash.png
01:03:36 T:139678390814816 M:1175474176    INFO: load keymapping
01:03:36 T:139678390814816 M:1175474176    INFO: Loading special://xbmc/system/keymaps/gamepad.xml
01:03:36 T:139678390814816 M:1175474176    INFO: Loading special://xbmc/system/keymaps/joystick.Alienware.Dual.Compatible.Controller.xml
01:03:36 T:139678390814816 M:1175474176    INFO: Loading special://xbmc/system/keymaps/joystick.AppleRemote.xml
01:03:36 T:139678390814816 M:1175474176    INFO: Loading special://xbmc/system/keymaps/joystick.Harmony.xml
01:03:36 T:139678390814816 M:1175474176    INFO: Loading special://xbmc/system/keymaps/joystick.Interact.AxisPad.xml
01:03:36 T:139678390814816 M:1175474176    INFO: Loading special://xbmc/system/keymaps/joystick.Logitech.RumblePad.2.xml
01:03:36 T:139678390814816 M:1175474176    INFO: Loading special://xbmc/system/keymaps/joystick.Microsoft.Xbox.360.Controller.xml
01:03:36 T:139678390814816 M:1175474176    INFO: Loading special://xbmc/system/keymaps/joystick.Microsoft.Xbox.Controller.S.xml
01:03:36 T:139678390814816 M:1175474176    INFO: Loading special://xbmc/system/keymaps/joystick.PS3.Remote.Keyboard.xml
01:03:36 T:139678390814816 M:1175474176    INFO: Loading special://xbmc/system/keymaps/joystick.Sony.PLAYSTATION(R)3.Controller.xml
01:03:36 T:139678390814816 M:1175474176    INFO: Loading special://xbmc/system/keymaps/joystick.WiiRemote.xml
01:03:36 T:139678390814816 M:1175474176    INFO: Loading special://xbmc/system/keymaps/keyboard.xml
01:03:36 T:139678390814816 M:1175474176    INFO: Loading special://xbmc/system/keymaps/remote.xml
01:03:36 T:139678390814816 M:1175474176    INFO: Loading special://xbmc/system/Lircmap.xml
01:03:36 T:139678390814816 M:1175474176    INFO: * Adding remote mapping for device 'mceusb'
01:03:36 T:139678390814816 M:1175474176    INFO: * Adding remote mapping for device 'XboxDVDDongle'
01:03:36 T:139678390814816 M:1175474176    INFO: * Adding remote mapping for device 'Microsoft_Xbox'
01:03:36 T:139678390814816 M:1175474176    INFO: * Adding remote mapping for device 'PinnacleSysPCTVRemote'
01:03:36 T:139678390814816 M:1175474176    INFO: * Adding remote mapping for device 'anysee'
01:03:36 T:139678390814816 M:1175474176    INFO: * Adding remote mapping for device 'iMON-PAD'
01:03:36 T:139678390814816 M:1175474176    INFO: * Adding remote mapping for device 'Antec_Veris_RM200'
01:03:36 T:139678390814816 M:1175474176    INFO: * Adding remote mapping for device 'MCE_via_iMON'
01:03:36 T:139678390814816 M:1175474176    INFO: * Adding remote mapping for device 'TwinHanRemote'
01:03:36 T:139678390814816 M:1175474176    INFO: * Adding remote mapping for device 'linux-input-layer'
01:03:36 T:139678390814816 M:1175474176    INFO: * Linking remote mapping for 'linux-input-layer' to 'cx23885_remote'
01:03:36 T:139678390814816 M:1175474176    INFO: * Linking remote mapping for 'linux-input-layer' to 'devinput'
01:03:36 T:139678390814816 M:1175474176    INFO: Loading special://profile/Lircmap.xml
01:03:36 T:139678390814816 M:1175474176    INFO: * Adding remote mapping for device 'ati_remote_wonder_rf'
01:03:36 T:139678390814816 M:1175474176    INFO: GUI format 1920x1080 1920x1080 @ 50.00 - Full Screen

I now see the actions coming through in the log as well:

Code:
01:05:40 T:139678390814816 M:1152000000   DEBUG: LIRC: Update - NEW at 124840:00000014e7220000 00 down ati_remote_wonder_rf (down)
01:05:43 T:139678390814816 M:1151873024   DEBUG: LIRC: Update - NEW at 127240:00000014e7220000 00 down ati_remote_wonder_rf (down)
01:05:43 T:139678390814816 M:1152004096   DEBUG: LIRC: Update - NEW at 127790:00000014e7220000 00 down ati_remote_wonder_rf (down)
01:05:45 T:139678390814816 M:1151877120   DEBUG: LIRC: Update - NEW at 129807:00000014df1a0000 00 up ati_remote_wonder_rf (up)
01:05:46 T:139678390814816 M:1151877120   DEBUG: LIRC: Update - NEW at 130290:00000014e21d0000 00 left ati_remote_wonder_rf (left)
01:05:46 T:139678390814816 M:1152004096   DEBUG: LIRC: Update - NEW at 130807:00000014e41f0000 00 right ati_remote_wonder_rf (right)

However, XBMC is not reacting to the actions. This screams issue with remote.xml, but I don't have a custom remote.xml in my userdata directory and I haven't modified the original in /usr/share/xbmc..

I have tried creating a custom remote.xml, but to no avail. My understanding is that the defaults in remote.xml should be fine, as I've specified common actions for the remote in my Lircmap.xml

My Lircmap.xml:

Code:
<lircmap>

        <remote device="ati_remote_wonder_rf">
                <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>
                <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>
                <star>Star</star>
                <hash>Hash</hash>
                <clear>Clear</clear>
                <enter>Enter</enter>
                <red>Red</red>
                <green>Green</green>
                <yellow>Yellow</yellow>
                <blue>Blue</blue>
                <teletext>Teletext</teletext>
        </remote>

</lircmap>

Remote.xml (stock /usr/share/xbmc/system/keymaps/remote.xml)

Code:
<keymap>
  <global>
    <remote>
      <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>
      <enter>FullScreen</enter>
      <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(VideoLibrary,TvShows)</mytv>
      <red>XBMC.ActivateWindow(Home)</red>
      <green>XBMC.ActivateWindow(MyVideos)</green>
      <yellow>XBMC.ActivateWindow(MyMusic)</yellow>
      <blue>XBMC.ActivateWindow(MyPictures)</blue>
      <zero>Number0</zero>
      <one>Number1</one>
      <two>JumpSMS2</two>
      <three>JumpSMS3</three>
      <four>JumpSMS4</four>
      <five>JumpSMS5</five>
      <six>JumpSMS6</six>
      <seven>JumpSMS7</seven>
      <eight>JumpSMS8</eight>
      <nine>JumpSMS9</nine>
    </remote>
  </global>
  <Home>
    <remote>
      <info>XBMC.ActivateWindow(SystemInfo)</info>
      <clear>XBMC.ActivateWindow(Weather)</clear>
      <hash>XBMC.ActivateWindow(Settings)</hash>
    </remote>
  </Home>

  ...CLIPPED...

</keymap>

Any help appreciated, cheers!
From a brief look .. down != Down, left != Left and so on