[LINUX] HOWTO iMON MCE new linux input event and driver - 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] HOWTO iMON MCE new linux input event and driver (/showthread.php?tid=99042) |
[LINUX] HOWTO iMON MCE new linux input event and driver - Nektarios - 2011-04-11 Although there is already a howto for iMon under the new input layer of the newer kernels (> 2.6.35), this one is for using the iMon in MCE mode free of bugs and keep it working. First of all, I have to say that the new imon driver and the new input layer/lirc system of the newer kernels are riddled with horrible bugs and I spent countless hours to finally find a solution and a fix. The new IR system in linux works like this: Kernel IR core -> Driver/Module producing input events -> Lirc listening to dev input -> XBMC listening to Lirc It's quite complicated and involves many layers, and with the peculiar iMon with its mode switches (iMon/MCE) it's rather buggy and difficult, but with my instructions it should work: Instructions First follow these instructions from Lyka's guide: lyka Wrote:With Ubuntu 10.10 due to some changes to lirc and its modules, my harmony-mce remote stopped to work. I decided to try to use IMON codes and follow the new way of lirc: Then we need to change to MCE mode. To do this we need 2 things: 1. To change the imon's IR protocol from "other" to "MCE" 2. And to load the imon MCE keymap to kernel, so the mce codes get picked up. And we need them to be done in every reboot/resume/thaw. Fortunately both of these can be done through the use of the ir-keytable from v4l-utils, though it has several bugs and it doesn't work. But fear not because I fixed all of them and made a patch: 1. download this git snapshot of v4l-utils Code: mkdir ~/src With ir-keytable now working, you need to create a new udev rule (this one took me the most time to make) to change to the MCE mode and to load the keymaps in each reboot/resume/thaw or just plain module load: Code: sudo wget "http://pastebin.com/raw.php?i=pjY3G8q0" -O /etc/udev/rules.d/10-imon-mce.rules Now continue to follow the rest of Lyka's guide: Quote:after this try And you are done! You should reboot now and it should work! Check it with reboot, suspend and hibernate to make sure everything works correctly. I hope you find this useful. - embo - 2011-06-19 Nektarios, I was hoping to use your instructions to change my iMon remote receiver to receive MCE signals. However, I'm not having any luck. It is not responding to MCE remote keypresses. I noticed that after typing this line: "patch utils/keytable/keytable.c < keytable-imon-fixes.patch", I get the following errors: Code: (Stripping trailing CRs from patch.) Any ideas on what I may be doing wrong? Also, for "cat /proc/bus/input/devices", I get the following 2 devices: Code: I: Bus=0003 Vendor=15c2 Product=0038 Version=0002 So, I selected "event6" for my device... When I tried irw, I was able to see the keypresses from my iMon remote, so I'm assuming this is the correct device. Howerver, I did notice that this event number keeps changing after reboots... Sometimes, it is event4. Any ideas how to make this permanent? Looking forward to your help and comments. Thanks! - lobothefoots - 2012-03-01 First I'd like to thanks for this tutorial it helped a lot. I had the same problem as embo when I applied the patch command so I patched the file manually. Now IRW respond when I press a key. - schoon - 2012-03-02 Hi, Have you found a solution to your problem? In advance thank you. - lobothefoots - 2012-03-04 Yes, my problem is solved. I reinstalled XBMC live Beta 3 did the upgrade to RC2 and configure my harmony to mimic my antec veris RM100 remote instead of trying to configure it as a MCE. All worked without editing anything in Linux, I just did configure my Harmony remote |