Kodi Community Forum

Full Version: [LINUX] I think my Lircmap.xml is not working
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
hi,

Xbmc (9.11) after Ubuntu mini install (9.10 x86_64)
Zotac ION 330 (a hell of a motherboard :p)

I've managed (after several hours) to get my Terratec Cinergy Hybrid T XS USB recognized by v4l and LIRC. I'm just using the IR part of this device as the rest of it seems to be dead. Anyway, LIRC is reading all the keys perfectly, but I can't managed to get XBMC response to them except from some standard keys like play/pause stop, vol+ vol- etc...

Could there be a reason for that ? I've set up my Lircmap.xml like that :
Code:
<lircmap>
    <remote device="HybridTXS">
        <display>KEY_HOME</display>
        <power>KEY_POWER</power>
        <menu>KEY_MENU</menu>
        <one>KEY_1</one>
        <two>KEY_2</two>
        <three>KEY_3</three>
        <four>KEY_4</four>
        <five>KEY_5</five>
        <six>KEY_6</six>
        <seven>KEY_7</seven>
        <eight>KEY_8</eight>
        <nine>KEY_9</nine>
        <zero>KEY_0</zero>
        <subtitle>KEY_SUBTITLE</subtitle>
        <teletext>KEY_TELETEXT</teletext>
        <recordedtv>KEY_DELETE</recordedtv>
        <language>KEY_LANGUAGE</language>
        <star>KEY_AB</star>
        <mytv>KEY_TV</mytv>
        <livetv>KEY_DVD</livetv>
        <myvideo>KEY_VIDEO</myvideo>
        <mypictures>KEY_PICTURE</mypictures>
        <up>KEY_UP</up>
        <left>KEY_LEFT</left>
        <right>KEY_RIGHT</right>
        <down>KEY_DOWN</down>
        <select>KEY_OK</select>
        <guide>KEY_EPG</guide>
        <info>KEY_INFO</info>
        <back>KEY_BACK</back>
        <volumeplus>KEY_VOLUMEUP</volumeplus>
        <volumedown>KEY_VOLUMEDOWN</volumedown>
        <channelplus>KEY_CHANNELUP</channelplus>
        <channeldown>KEY_CHANNELDOWN</channeldown>
        <red>KEY_RED</red>
        <green>KEY_GREEN</green>
        <yellow>KEY_YELLOW</yellow>
        <blue>KEY_BLUE</blue>
        <record>KEY_RECORD</record>
        <mute>KEY_MUTE</mute>
        <play>KEY_PLAY</play>
        <stop>KEY_STOP</stop>
        <pause>KEY_PAUSE</pause>
        <skipminus>KEY_PREVIOUS</skipminus>
        <reverse>KEY_REWIND</reverse>
        <forward>KEY_FORWARD</forward>
        <skipplus>KEY_NEXT</skipplus>
    </remote>
</lircmap>

It resides under /home/xbmc/.xbmc/Lircmap.xml

EDIT : indeed, it is in /home/xbmc/.xbmc/userdata/Lircmap.xml

Do you see something wrong I didn't ? I didn't change so much the remote.xml unders /usr/share/xbmc/system/keymaps/remote.xml

PS : I already found some usefull topics like
http://wiki.xbmc.org/index.php?title=HOW...lk_to_XBMC or http://forum.xbmc.org/showthread.php?tid=45972 so it seems useless to indicate me those Big Grin I also found another thread which has a title like seems to be like my issue but that doesn't solve it...

Thanks,
LTourist

FINAL EDIT : Solution
Ok, If like me you are looking for a solution for this annoying problem, here it is :
Don't forget to set START_LIRCD="true" in the /etc/lirc/hardware.conf file. This is not the way the configuration is initially, but this is NECESSARY to really start the daemon and so enabling XBMC to talk with LIRC

See ya! Big Grin
/home/xbmc/.xbmc/userdata/Lircmap.xml
Hmmm I may have made a mistake when typing my first message. I'll check this evening after work, but if that's my error, then I'm really sorry to piss you off with that Confused

If not, well I'm open to suggestions Big Grin
no, you didn't piss me off. I was about to leave for work so only had time to type the above.

apologies if i gave that impression!
No, you did not Big Grin It's just that such an idiot (and maybe such an idiot mistake :p ) question could bother many people. I said that in this way, not in a way I felt attacked by you Smile
Well I checked and my file is in /home/xbmc/.xbmc/userdata/Lircmap.xml

So...could I have some help with that, somebody ?
I've checked the xbmc.log file, and that's what I found :

Code:
INFO: LIRC Initialize: connect failed: No such file or directory
DEBUG: Failed to connect to LIRC. Retry in 10s.
DEBUG: Failed to connect to LIRC. Retry in 20s.
DEBUG: Failed to connect to LIRC. Retry in 40s.
DEBUG: Failed to connect to LIRC. Giving up.

So I think it's something related to the lirc daemon, like in this thread. I will explore this way and report here once I found the solution

EDIT : Ok now I'm sure that's the problem because Lirc try to start lircd from /var/run/lirc, which is a directory I don't have. Even If I create it by hand, it's been removed each time I reboot, and even with that directory and afeter restarting Lirc, the lircd file is not created...

In fact, only starting lirc with
Code:
lircd --driver=devinput --device=/dev/input/event4 --nodaemon
which is prouving that creating the daemon is the problem here
able me to connect throught irw but XBMC still fail connecting to LIRC...
I've tried many things, like changing the /etc/init.d/lirc script so it will start in /dev/lircd directly

EDIT : found it, just have to set START_LIRCD="true" in the hardware.conf... Such an idiot Big Grin Such an idiot Big Grin Such an idiot Big Grin Such an idiot Big Grin And again, sorry for this question, which I could have been resolved myself being smartter... ^^