PDA

View Full Version : LIRC works perfectly fine, except for XBMC


jupp
2009-04-28, 18:03
Hi there,

I've been searching the web for hours now, but I can't find a solution to my problem.

I set up LIRC correctly on my iMac (yes, I'm running Linux on it). IRW gives me the following output:


jochen@linux-jaib:~> irw
0000000087eef504 00 PLAY AppleRemote
0000000087eef502 00 MENU AppleRemote
0000000087eef507 00 NEXT AppleRemote
0000000087eef508 00 PREV AppleRemote
0000000087eef50d 00 MINUS AppleRemote
0000000087eef50b 00 PLUS AppleRemote
^C


Using .lircrc, I already set up LIRC working properly with Amarok and Kaffeine. So LIRC definitely works!

Now I set up Lircmap.xml and Keymap.xml as follows to use my remote with XBMC:


<lircmap>
<remote device="AppleRemote">
<up>PLUS</down>
<left>PREV</left>
<select>PLAY</select>
<right>NEXT</right>
<down>MINUS</down>
<back>MENU</back>
</remote>
</lircmap>



<keymap>
<global>
<remote>
<up>Up</up>
<left>Left</left>
<select>Select</select>
<right>Right</right>
<down>Down</down>
<back>ParentDir</back>
</remote>
etc...


I dropped a copy of Keymap.xml and Lircmap.xml each in ~/.xbmc/userdata/ and in ~/.xbmc/system/. However, XBMC does still not recognize any commands from the remote.

When I wanted to check the log file, I wondered that there is no /temp/ folder in my ~/.xbmc/ folder, although I had already activated error logging in XBMC. Did I mess anything up there?

It' slowly driving me insane ??? Tank you in advance for your efforts!

Greetings,

Jochen

EMK0
2009-04-28, 18:10
for me it didn't work if i put it in .xbmc userdata folder i had to put it in usr/share/xbmc/userdata and i put one somewhere in /usr/share/xbmc/ cant remember was trying to see if it would work and it did. i will later remove one and see if it still works and tell you where exactly it will work from. does any know how come it doesn't load from .xbmc? my skins work fine when i put it in .xbmc/skin.

jupp
2009-04-28, 18:16
I now dropped a copy each in /usr/share/xbmc/system/ and in /usr/share/xbmc/userdata/. Still no success :-(

EMK0
2009-04-28, 18:36
could this be screwing it up?
<up>PLUS</down>
in your Lircmap.xml

jupp
2009-04-28, 20:40
Indeed, a very stupid mistake... Thank you for your help! However, it didn't do the trick.

I now found a workaround for the problem using the following .lircrc:


begin
prog = irxevent
button = PLUS
config = Key Up CurrentWindow
repeat = 2
end

begin
prog = irxevent
button = MINUS
config = Key Down CurrentWindow
repeat = 2
end

begin
prog = irxevent
button = NEXT
config = Key Right CurrentWindow
repeat = 2
end

begin
prog = irxevent
button = PREV
config = Key Left CurrentWindow
repeat = 2
end

begin
prog = irxevent
button = PLAY
config = Key Return CurrentWindow
repeat = 2
end

begin
prog = irxevent
button = MENU
config = Key Escape CurrentWindow
repeat = 2
end


Though, it does not allow context specific ir-input, e.g. "PLUS" for increasing the volume during a film or a song vs. "PLUS" for a Key-Up action in a menu.