have lirc working but can't control xbmc - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111) +---- Forum: Linux (https://forum.kodi.tv/forumdisplay.php?fid=52) +---- Thread: have lirc working but can't control xbmc (/showthread.php?tid=53859) |
have lirc working but can't control xbmc - ((( atom ))) - 2009-07-01 Hi there, I got a problem, getting lirc to work with xbmc. So I got lirc to work all the wich is indicated by irw correctly showing me my remote and which key I pressed. I edited /home/xbmc/.xbmc/Lircmap.xml: <lircmap> <remote device="philips"> <pause>pause</pause> <stop>stop</stop> <forward>>></forward> <reverse><<</reverse> <left>left</left> <right>right</right> <up>up</up> <down>down</down> ... </remote> ...and /home/xbmc/.xbmc/Keymap.xml: <keymap> <global> <remote> <pause>pause</pause> <stop>stop</stop> <forward>>></forward> <reverse><<</reverse> <left>left</left> <right>right</right> <up>up</up> <down>down</down> ... </remote> To my understanding I should now be able to remote-control xbmc but nothing happens.. Did I miss anything? Best regards, ../nico - althekiller - 2009-07-01 They go in .xbmc/userdata - ((( atom ))) - 2009-07-01 opps, sorry, that's where I had them all along, doesn't work.. - Haggy - 2009-07-01 As always: Full debug log to pastebin please. Be sure to press some buttons so we actually see something in there. - ((( atom ))) - 2009-07-01 Well, meanwhile the entire system crases over and over. I could nail it down to FAT filesystem errors, so I will just install it do a harddrive and start over.. - rodercot - 2009-07-02 ((( atom ))) Wrote:Well, meanwhile the entire system crases over and over. I could nail it down to FAT filesystem errors, so I will just install it do a harddrive and start over.. Atom, Make sure that the remote name in your Lircmap file matches the remote name in your /etc/lirc/lircd.conf file. Dave - ((( atom ))) - 2009-07-02 Well, meanwhile I setu up the whole system again, this time on a harddisk instead of a usb-stick and I got it to work. SOmehow I got mixed up with the mappings in Lircmap.xml and Keymap.xml I got the important buttons to work now, others not, but I was being very tired in the end and I guess, if I take a look at it agin, I will figure the rest quickly.. - ((( atom ))) - 2009-07-02 By the way, what caused the crash in the first place was this: <forward>>></forward> <reverse><<</reverse> These ">>" do work in lircd.conf but prevent xbmc from starting. In my case, it seems that also FAT filesystem errors due to writing to a partition on the usb stick lead to a total chaos but after having xbmc installed to harddisk I could quickly spot that. - Haggy - 2009-07-02 you have to escape those braces. They'll break xml validity, hence the error. - ((( atom ))) - 2009-07-03 Well, I just renamed the according section in my lircd.conf. So status is: Strange.. I can control xbmc, but not everything. Main keys/functions are working (up, down, left, right, select) but whatever I try, I can't get the contextmenu to work.. irw answers to every single key on my keyboard, so the lirc side is working properly. I already tried remapping a key that works in xbmc to contextmenu, doesn't work. Remapping the same key to "back" for instance works fine. Maybe I got it all wrong, so I will just post my three config files here, maybe someone can point me to my error.. Here we go: /etc/lircd.conf Code: begin remote /home/xbmc/.xbmc/userdata/Lircmap.xml Code: <lircmap> /home/xbmc/.xbmc/userdata/Keymap.xml Code: <keymap> Damn, pressed "submit" instead of "preview".. Anyway, that was about it, I am not very god with mappings ever since, I tend to get mixed up, so maybe the solution is fairly simple. Another strange issue, though: When I put bogus into /etc/lircd.conf, let's say all numbers, I can still control some xbmc functions like up and down. How can that be?! Best regards, ../nico - rodercot - 2009-07-03 Is Context Menu not the play button on most remotes, I do not think you have a play button link in your lircmap.xml anywhere. here is my lircmap, with an mce remote. I am using the stock keymap.xml file as shipped with xbmc. my button names may be different as some keys use caps and some do not. If you notice my play button is linked with <title> and in the stock keymap <title> is linked with the context menu. I notice in yours it is not. stock un-modified keymap.xml global remote section for title. Code: <title>ContextMenu</title> my Lircmap.xml for mceusb. Code: <lircmap> Dave - ((( atom ))) - 2009-07-03 Ok, changing Keymap.xml: Code: <title>contextmenu</title> and Lircmap.xml Code: <contextmenu>play</contextmenu> wich points to my lircd.conf: Code: play 0x1175 rebooting (just to make sure..) ... and: nothing! ..but the log shows: Code: Remote Translator: Can't find button contextmenu I don't get the clue, since contextmenu is not a button, but a functionto trigger in xbmc. - ((( atom ))) - 2009-07-03 Oh, I'm stupid, must be Code: <title>play</title> - ((( atom ))) - 2009-07-03 It works, thx a lot! - rodercot - 2009-07-03 ((( atom ))) Wrote:It works, thx a lot! Great, glad to help. upper case, lower case, xml, it can all be a little confusing, wait till you have 5 or 6 scripts linking back to your lircrc file with a few instances of lirc on the same machine, that can be fun stuff. I have never had to edit my Keymap.xml file ever and only ever edited the Lircmap file when changing or adding remotes. Have Fun, Dave |