Kodi Community Forum

Full Version: userdata Lirckey.xml loads with "Doesn't contain <keymap>" error
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm on debian wheezy, xbmc 12.3 and Linux version 3.2.0-4-amd64

If I copy the /usr/share/xmbc/system/Lircmap.xml to my user directory, ~/.xbmc/userdata/keymaps, making no changes, the log file shows:

16:31:18 T:140333248595904 INFO: load keymapping
16:31:18 T:140333248595904 INFO: Loading special://xbmc/system/keymaps/appcommand.xml
16:31:18 T:140333248595904 INFO: Loading special://xbmc/system/keymaps/gamepad.xml
16:31:18 T:140333248595904 INFO: Loading special://xbmc/system/keymaps/joystick.Alienware.Dual.Compatible.Controller.xml
16:31:18 T:140333248595904 INFO: Loading special://xbmc/system/keymaps/joystick.AppleRemote.xml
16:31:18 T:140333248595904 INFO: Loading special://xbmc/system/keymaps/joystick.Harmony.xml
16:31:18 T:140333248595904 INFO: Loading special://xbmc/system/keymaps/joystick.Interact.AxisPad.xml
16:31:18 T:140333248595904 INFO: Loading special://xbmc/system/keymaps/joystick.Logitech.RumblePad.2.xml
16:31:18 T:140333248595904 INFO: Loading special://xbmc/system/keymaps/joystick.Microsoft.Xbox.360.Controller.xml
16:31:18 T:140333248595904 INFO: Loading special://xbmc/system/keymaps/joystick.Microsoft.Xbox.Controller.S.xml
16:31:18 T:140333248595904 INFO: Loading special://xbmc/system/keymaps/joystick.PS3.Remote.Keyboard.xml
16:31:18 T:140333248595904 INFO: Loading special://xbmc/system/keymaps/joystick.Sony.PLAYSTATION®3.Controller.xml
16:31:18 T:140333248595904 INFO: Loading special://xbmc/system/keymaps/joystick.WiiRemote.xml
16:31:18 T:140333248595904 INFO: Loading special://xbmc/system/keymaps/keyboard.xml
16:31:18 T:140333248595904 INFO: Loading special://xbmc/system/keymaps/mouse.xml
16:31:18 T:140333248595904 INFO: Loading special://xbmc/system/keymaps/remote.xml
16:31:18 T:140333248595904 INFO: Loading special://masterprofile/keymaps/Lircmap.xml
16:31:18 T:140333248595904 ERROR: special://masterprofile/keymaps/Lircmap.xml Doesn't contain <keymap>
16:31:18 T:140333248595904 INFO: Loading special://masterprofile/keymaps/remote.xml
16:31:18 T:140333248595904 INFO: Loading special://profile/keymaps/Lircmap.xml
16:31:18 T:140333248595904 ERROR: special://profile/keymaps/Lircmap.xml Doesn't contain <keymap>
16:31:18 T:140333248595904 INFO: Loading special://profile/keymaps/remote.xml
16:31:18 T:140333248595904 INFO: Loading special://xbmc/system/Lircmap.xml
16:31:18 T:140333248595904 INFO: * Adding remote mapping for device 'mceusb'
16:31:18 T:140333248595904 INFO: * Adding remote mapping for device 'XboxDVDDongle'
16:31:18 T:140333248595904 INFO: * Adding remote mapping for device 'Microsoft_Xbox'
16:31:18 T:140333248595904 INFO: * Adding remote mapping for device 'PinnacleSysPCTVRemote'
16:31:18 T:140333248595904 INFO: * Adding remote mapping for device 'anysee'
16:31:18 T:140333248595904 INFO: * Adding remote mapping for device 'iMON-PAD'
16:31:18 T:140333248595904 INFO: * Adding remote mapping for device 'Antec_Veris_RM200'
16:31:18 T:140333248595904 INFO: * Adding remote mapping for device 'MCE_via_iMON'
16:31:18 T:140333248595904 INFO: * Adding remote mapping for device 'TwinHanRemote'
16:31:18 T:140333248595904 INFO: * Adding remote mapping for device 'linux-input-layer'
16:31:18 T:140333248595904 INFO: * Linking remote mapping for 'linux-input-layer' to 'cx23885_remote'
16:31:18 T:140333248595904 INFO: * Linking remote mapping for 'linux-input-layer' to 'devinput'
16:31:18 T:140333248595904 INFO: * Adding remote mapping for device 'mediacenter'
16:31:18 T:140333248595904 INFO: * Adding remote mapping for device 'Streamzap_PC_Remote'
16:31:18 T:140333248595904 DEBUG: CButtonTranslator::Load - no userdata Lircmap.xml found, skipping

...and nothing is loaded from my local Lircmap (I have tried various changes in other iterations).

I can even make a change to the system Lircmap.xml and it works fine. In my example, my Hauppauge remote generates a "KEY_POWER2" which is not handled by xmbc. Adding
<power>KEY_POWER2</power>
to /usr/share/xbmc/system/Lircmap.xml works like a charm.

Since I'd really rather not change the system file (!), is this a bug or what am I doing wrong.

thanks,

mark
Well, is there actually a <keymap> section in the file?
No. I've tried adding one, but get a different error message. The error is generated from an exact copy of the system Lircmap file, which does load successfully (all the "Adding remote mapping..." are from the Lircmap in /usr/share.

mark
Odd, now that I checked my (working) Lircmap.xml has just a <lircmap> node with a <remote> node inside.