[LINUX] HOW-TO get Hama MCE Remote Control to fully work in Ubuntu 9.04 - 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: [LINUX] HOW-TO get Hama MCE Remote Control to fully work in Ubuntu 9.04 (/showthread.php?tid=63152) |
[LINUX] HOW-TO get Hama MCE Remote Control to fully work in Ubuntu 9.04 - lx_cool_j - 2009-12-02 i finally got the hama mce remote control to work properly under ubuntu 9.04 with xbmc after about a week doing a lot of research and testing. i use this remote control and got almost every key to work in xbmc. in this tutorial, [xbmc-user] is a placeholder for your xbmc user. please note that some keys have the same mapping (for example: "OK", "Start" and "Enter" or "i" and the right mouse button). some keys send three commands to the ir receiver, but in the lircd.conf, i only entered one, otherwise it didn't work, because xbmc only catches the first key sent. log in as your standard xbmc user and install the latest lirc: Code: sudo apt-get install lirc In the lirc configuration tool, that opens up after installation, select "None" in every screen. after the installation has been completed, edit the following files: /etc/lirc/lircd.conf Code: begin remote /etc/lirc/hardware.conf Code: # /etc/lirc/hardware.conf add the following code to /etc/modprobe.d/blacklist.conf Code: blacklist ati_remote add the following code (IMPORTANT: the entry has to be written before "exit 0") to /etc/rc.local Code: ./home/[xbmc-user]/lircstart.sh read out the event numbers for your hid: Code: cat /proc/bus/input/devices you get something like this (i only copied the important entries containing Name="HID...): Code: I: Bus=0003 Vendor=05a4 Product=9881 Version=0110 event3 and event4 are the two important entries from the cat we made before that we need in the next step. they could be different on your system. create a file /home/[xbmc-user]/lircstart.sh please note that the code change from dec 17, 2009. the old code contained a copy/paste error... Code: #!/bin/sh be careful to change event3 and event4 to the event numbers you got for your system. chmod the lircstart.sh to 0755 Code: chmod 0755 lircstart.sh to be continued in the next post... [LINUX] Full Hama MCE Remote Control support in ubuntu 9.04, continued... - lx_cool_j - 2009-12-03 continued from previous post edit the file /home/[xbmc-user]/.xbmc/userdata/Lircmap.xml Code: <lircmap> /home/[xbmc-user]/.xbmc/userdata/keymaps/remote.xml Code: <keymap> ok, everything should work now after a reboot. to check if remote.xml and Lircmap.xml are integrated to xbmc without any problem you may check it with: Code: cat /home/[xbmc-user]/.xbmc/temp/xbmc.log | grep remote.xml and Code: cat /home/[xbmc-user]/.xbmc/temp/xbmc.log | grep Lircmap.xml something like this should come to your screen: Code: 21:11:00 T:3041413008 M:1477832704 INFO: Loading special://xbmc/system/keymaps/remote.xml and Code: 21:11:00 T:3041413008 M:1477832704 INFO: Loading special://xbmc/system/Lircmap.xml you also can check the incoming remote control commands with Code: irw press any keys on your remote and you should see the name for that key. To close irw, use strg-c. with Code: tail -f /home/[xbmc-user]/.xbmc/temp/xbmc.log you can see the keys pressed and the executed commands in xbmc with your remote control. have fun using your working remote in xbmc! - anton610 - 2009-12-03 Hey Thank you very much!!! you made my day! regards Ubuntu 9.10 - anton610 - 2009-12-07 Hello, I've tried it in 9.10, but it didn't worked... does anybody tried it also in ubuntu 9.10?? Regards Anton - lx_cool_j - 2009-12-07 hi anton610, are there any errors? do you get any response when you use irw? any errors in the xbmc.log? regards alex - anton610 - 2009-12-08 Hello, there are no errors. of the remote are only a few buttons who work. Ive found a sec. howto I'll try and report. regards Anton - TheHeadGear - 2009-12-16 Thanks very much for posting this howto. I had trouble getting all the keys working. In the end, I did everything as posted with the exception of using the following to start lircd. I put these directly into /etc/rc.local rather than creating a separate sh script in my home folder. sudo vim /etc/rc.local Code: /etc/init.d/lirc stop - lx_cool_j - 2009-12-17 thank you @TheHeadGear, there was a copy/paste error in my tutorial... i changed the lines regarding lircstart.sh in my post to the code i use. hope, it works now. this could also be the solution for @anton610 - DocEvil - 2009-12-22 first, thanksfor the tutorial, but it is not working for me. let me explain, what i did. I Installed Ubuntu minimal with openssh server, then followed the Instruktions in the XBMC Wiki found here: http://wiki.xbmc.org/?title=XBMCbuntu. Everthing works fine, only the damn remote from HAMA. I have until now no sound issues, no graphic issues, and the SMB Network with my Windows PC works fine. So i install then straight following your tutorial lirc, everything was fine, editing the files, change chmod until even the thing with the event3 and event4. My ION has a bit more Harware at the USB connetors, so i have to changed that to event6 and event7. But when i write this command in the terminal via ssh: cat /home/[xbmc-user]/.xbmc/temp/xbmc.log | grep remote.xml nothing happen. Of course i rebbot my Asrock ION 330 before i tested it. Take a look at your tutorial the next command ist the same command like before. Sounds strange, or? So then I tried the other commans, like irw but no input was shown and the last command tail -f /home/[xbmc-user]/.xbmc/temp/xbmc.log displays also nothing on the screen. So i'm a littlebit crazy, trying to install all the things with xbmc the last three days and then that. S, eventually you can told me, how i unstall lirc, to try it again, or you know my problem and have a solution for me - DocEvil - 2009-12-22 excuse my double post, but i want you to know, that i have a little success, with Code: irw i could ffind out the keymapping from my hama remote, so please tell me, what in which section i must adjust, to get my remote with this keybinding to work. here are my commands recorded by me Code: 00000000000100ac 00 HOMEPAGE hama_52451 -- this is the Button with an "e" i forget to say, that in XBMC only the Volume Buttons and a few other Buttons will work, about ninty Percent dont make anything while pushing it oh god, the important thing i forget to say, i'm using minimal Ubunto 9.10 karmic. so this is eventually important for you. - anton610 - 2009-12-23 lx_cool_j Wrote:thank you @TheHeadGear, Thank you!! I'll try it soon - lx_cool_j - 2009-12-23 @DocEvil hi, to completely remove lirc enter Code: sudo apt-get purge lirc have you replaced [xbmc-user] to your ubuntu username in all of the commands and pathes listed in my tutorial? for example, if your username is xbmc, the correct command should be: Code: cat /home/[b]xbmc[/b]/.xbmc/temp/xbmc.log | grep remote.xml i only tried this on ubuntu 9.04 (my machine and a friend's) but normally, it should work on 9.10 too. - DocEvil - 2009-12-23 sure, i completly removed lirc with the command you posted, after that, a complete reinstall was made. So now i can use irw to look which remote actions are function, but like i wrote, the command you are posting again, have no effect, no output in terminal. - lx_cool_j - 2009-12-24 if you see the pressed buttons of the remote in irw, there has to be an error with your Lircmap.xml or remote.xml in the userdata directory of xbmc. the first letter of Lircmap.xml has to be upper case. do you see a xbmc.log in your xbmc temp directory? in my case /home/xbmc/.xbmc/temp also, in my xbmc, i have checked the option "remote control sends keyboard presses" and "enable mouse" from the "input devices" section. you may also check the option debug logging in the system settings. good look! - vibowit - 2009-12-28 Hi, To make it work under Karmic you have to edit: ./home/[xbmc-user]/lircstart.sh add one line to it Code: ln -s /var/run/lirc/lircd /dev/lircd With this modification it works like a charm in Karmic and XBMC 9.11 beta2. I have not hama, but Vista MCE Remote VRC-1100 and the codes are identical. Thanks and regards. |