[LINUX] lirc X10 remote problems
#1
Howdie guys,

I'm stuck here with a little bogus that I am unable to resolve. I'm running here xubuntu 9.10 (ubuntu with xfce) on which I have a xbmc installed through the package manager.

Code:
# apt-cache show xbmc
Package: xbmc
Source: xbmc
Priority: optional
Section: video
Installed-Size: 204
Maintainer: Debian Multimedia Maintainers <[email protected]>
Architecture: all
Version: 1:9.11-karmic3
Suggests: xbmc-third-parties
Depends: xbmc-data (= 1:9.11-karmic3), xbmc-skin-confluence (= 1:9.11-karmic3) | xbmc-skin-pm3-hd (= 1:9.11-karmic3), xbmc-web-pm3 (= 1:9.11-karmic3)
Filename: pool/main/x/xbmc/xbmc_9.11-karmic3_all.deb
Size: 37774
MD5sum: 3b86c506fda7253f382c9aca602b1372
SHA1: ae3b9868f532e28ef341a369316ebf62fd0ec6de

It is being run automatically after a specific user autologged in. lirc was started by init.d and sits there. The X10 remote I have here was correctly set up and works like a charm:

Code:
tv@fuh:~# irw
00000014fc270000 00 Record medion
00000014fc270000 01 Record medion
00000014da050000 00 Photo medion
00000014da050000 01 Photo medion
00000014f11c0000 00 LiveTV medion
00000014f11c0000 01 LiveTV medion
000000146d980000 00 RecTV medion
000000146d980000 01 RecTV medion
00000014da050000 00 Photo medion
00000014da050000 01 Photo medion
000000145b860000 00 Music medion
000000145b860000 01 Music medion
00000014d9040000 00 DVDMenu medion
00000014d9040000 01 DVDMenu medion
0000001482ad0000 00 Video medion
0000001482ad0000 01 Video medion
0000001407320000 00 Audio medion
0000001407320000 01 Audio medion
0000001409340000 00 Angle medion
0000001409340000 01 Angle medion
00000014ef1a0000 00 Up medion
00000014ef1a0000 01 Up medion
00000014739e0000 00 Ok medion
00000014739e0000 01 Ok medion

And I put all the configuration stuff that regards xbmc into the Lircmap.xml file:

Code:
tv@fuh:/usr/share/xbmc/system$ ls -lah
lrwxrwxrwx  1 root root    16 2010-08-29 01:07 Lircmap.xml -> Lircmap.xml.mine
-rw-r--r--  1 tv   media 2.0K 2010-08-28 22:50 Lircmap.xml.mine
-rw-r--r--  1 root root  5.7K 2010-08-28 22:51 Lircmap.xml.original
tv@fuh:/usr/share/xbmc/system$ cat Lircmap.xml
<lircmap>
        <remote device="medion">
                <menu>DVDMenu</menu>
                <title>Title</title>
                <title>Subtitle</title>
                <up>Up</up>
                <down>Down</down>
                <left>Left</left>
                <right>Right</right>
                <ok>Ok</ok>
                <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>
                <star>Star<star>
                <hash>Sharp</hash>
                <start>World</start>
                <reverse>SeekLeft</reverse>
                <play>Play</play>
                <forward>SeekForward</forward>
                <pause>Pause</pause>
                <skipminus>SkipLeft</skipminus>
                <skipplus>SkipRight</skipplus>
                <stop>Stop</stop>
                <record>Record</record>
                <power>Power</power>
                <volumeplus>VolUp</volumeplus>
                <volumeminus>VolDown</volumeminus>
                <mute>Mute</mute>
                <pageplus>PUp</pageplus>
                <pageminus>PDown</pageminus>
                <back>Back</back>
                <info>Info</info>
                <red>Red</red>
                <green>Green</green>
                <yellow>Yellow</yellow>
                <blue>Blue</blue>
        </remote>
</lircmap>

So. What could there be wrong that the commands are parsed correctly by lirc (as irw shows) but xbmc doesn't care even if I configured the whole bunch of commands in the Lircmap.xml with the names matching etc.? It used to work some days ago, but I believe a update sneaked in along with other updates and some things were messed in the xbmc configuration.

Any help will be rewarded with a virtual *hug*. Laugh
Reply
#2
*bump*

No ideas at all? I suspect that the keymap.xml is somehow broken. Unfortunatly I'm at work right now so I can't post it. Anyway I'm pretty sure the keymap.xml only contains "keyboard" entries and no "remote" entries at all. Would one supply me with his working keymap.xml that contains the remote definitions in order that I can somehow test to set that thing up?
Reply
#3
your custom config should be in ~/.xbmc/userdata/keymaps/ not in the system directory.
Reply
#4
You should have both "Lircmap.xml" and "remote.xml" already in your system folder.
Custom or user defined mapping goes in your profile folder ~home/.xbmc/userdata

For creating custom mapping see
http://forum.xbmc.org/showthread.php?tid...mce+remote

For troubleshooting see post #2 in
http://forum.xbmc.org/showthread.php?tid...MCE+remote
Reply
#5
I already read through this:
http://forum.xbmc.org/showthread.php...ght=mce+remote

but I obviously overread the part with "remote.xml". The latest package in the ubuntu repository may include that change now and then I would perfectly understand why it doesn't work if I add things to the "keymap.xml". So I got something to try.

@gsgleason I know, but I was unsure if that was the source of all problems. Thus I moved the configuration into the system section to be sure it will be loaded. If it works I may move the configuration into the home directory where it should be (and will never be overridden anymore) but that's a future task. Thanks for the hint anyway!
Reply
#6
Unfortunatly I have a remote.xml and the debug log says it is being loaded correctly. There are also plenty of mappings in there and these mappings do match the ones that I used in Lircmap.xml

What else could be wrong? Here are parts of my xbmc.log, in case it may be useful. You'll see that the lirc updates come in, but somehow dont get processed. :-S

Quote:23:30:39 T:3031381904 M:2867019776 NOTICE: Starting XBMC, Platform: GNU/Linux. Built on Aug 19 2010 (SVN:26018)
23:30:39 T:3031381904 M:2867019776 NOTICE: special://xbmc/ is mapped to: /usr/share/xbmc
23:30:39 T:3031381904 M:2867019776 NOTICE: special://masterprofile/ is mapped to: /home/tv//.xbmc/userdata
23:30:39 T:3031381904 M:2867019776 NOTICE: special://home/ is mapped to: /home/tv//.xbmc
23:30:39 T:3031381904 M:2867019776 NOTICE: special://temp/ is mapped to: /home/tv/.xbmc/temp
23:30:39 T:3031381904 M:2867019776 NOTICE: The executable running is: /usr/lib/xbmc/xbmc.bin
23:30:39 T:3031381904 M:2867019776 NOTICE: Log File is located: /home/tv/.xbmc/temp/xbmc.log
23:30:39 T:3031381904 M:2867019776 NOTICE: -----------------------------------------------------------------------
23:30:39 T:3031381904 M:2867019776 NOTICE: Setup SDL
23:30:40 T:3031381904 M:2866257920 NOTICE: load settings...
23:30:40 T:3031381904 M:2866257920 NOTICE: special://profile/ is mapped to: special://masterprofile/
23:30:40 T:3031381904 M:2866257920 NOTICE: loading special://masterprofile/guisettings.xml
23:30:40 T:3031381904 M:2866257920 NOTICE: Getting hardware information now...
23:30:40 T:3031381904 M:2866257920 NOTICE: Checking resolution 12
23:30:40 T:3031381904 M:2866257920 NOTICE: Loading player core factory settings from special://xbmc/system/playercorefactory.xml.
23:30:40 T:3031381904 M:2866257920 NOTICE: Loaded playercorefactory configuration
23:30:40 T:3031381904 M:2866257920 NOTICE: Loading player core factory settings from special://masterprofile/playercorefactory.xml.
23:30:40 T:3031381904 M:2866257920 NOTICE: special://masterprofile/playercorefactory.xml does not exist. Skipping.
23:30:40 T:3031381904 M:2866257920 NOTICE: No advancedsettings.xml to load (special://masterprofile/advancedsettings.xml)
[...]
23:30:40 T:3031381904 M:2866257920 NOTICE: special://masterprofile/sources.xml
[...]
23:30:40 T:3031381904 M:2859094016 NOTICE: load default skin:[Confluence]
23:30:41 T:3031381904 M:2852491264 NOTICE: initialize done
23:30:41 T:3031381904 M:2852491264 NOTICE: Running the application...
[...]
23:31:01 T:3031381904 M:2844925952 INFO: Loading special://xbmc/system/keymaps/gamepad.xml
23:31:01 T:3031381904 M:2844925952 INFO: Loading special://xbmc/system/keymaps/joystick.AppleRemote.xml
23:31:01 T:3031381904 M:2844925952 INFO: Loading special://xbmc/system/keymaps/joystick.Harmony.xml
23:31:01 T:3031381904 M:2844925952 INFO: Loading special://xbmc/system/keymaps/joystick.Logitech.RumblePad.2.xml
23:31:01 T:3031381904 M:2844925952 INFO: Loading special://xbmc/system/keymaps/joystick.Microsoft.Xbox.Controller.S.xml
23:31:01 T:3031381904 M:2844925952 INFO: Loading special://xbmc/system/keymaps/joystick.Sony.PLAYSTATION®3.Controller.xml
23:31:01 T:3031381904 M:2844925952 INFO: Loading special://xbmc/system/keymaps/joystick.WiiRemote.xml
23:31:01 T:3031381904 M:2844925952 INFO: Loading special://xbmc/system/keymaps/keyboard.xml
23:31:01 T:3031381904 M:2844925952 INFO: Loading special://xbmc/system/keymaps/remote.xml
23:31:01 T:3031381904 M:2844925952 INFO: Loading special://xbmc/system/Lircmap.xml
23:31:01 T:3031381904 M:2844123136 INFO: Loading special://masterprofile/Lircmap.xml
[...]
23:32:21 T:3031381904 M:2834419712 DEBUG: LIRC: Update - NEW at 101609:00000014ef1a0000 00 Up medion (Up)
[...]

I noticed at this point that the remote.xml and lircmap.xml are loaded only after I pressed login. Is this normal? How can I login if there are no mappings loaded such that a press on the OK button of my remote will do the login?


UPDATE: i just removed almost all commands of my Lircmap.xml except up,down,left,right and it works. *banging head* Somewhere my lircmap is broken. Well, gotta picture that out by adding stuff incrementally.
Reply
#7
Thanks to all, everything's fine now. :-P I don't know what exactly was wrong, but it is fixed now. :o)
Reply

Logout Mark Read Team Forum Stats Members Help
[LINUX] lirc X10 remote problems0