Thursday, August 9, 2012

devinput + Antec Veris / iMon remote used in XBMC

So I upgraded a friends XBMC system which runs on Ubuntu to 12.04 the other day and ran into the troubles with the changes in Lircd + devinput.  Luckily once I switched Lircd to devinput via:
sudo dpkg-reconfigure lirc
things generally worked but I was missing a few buttons, like one that opened the menu to delete things or enable subtitles.

This was using a Harmony/Logitech 800 remote to emulate the remote that came with the Antec Veris case.  When using irw or ir-keytables I could not see any buttons being hit when hitting the 'info', 'guide' or channel up or down.   I found notes about recompiling lirc due to it missing some scan codes (ref: https://bugs.launchpad.net/ubuntu/+source/lirc/+bug/1029604 or http://lirc.sourceforge.net/remotes/devinput/lircd.conf.devinput ) but I didn't really want to get into that and block future apt upgrades of lirc.  After quite awhile I found mention of /lib/udev/rc_keymaps and found imon_pad and imon_mce:
/lib/udev/rc_keymaps$ ls imon_*
-lrta-rw-r--r-- 1 root root 1756 Feb 10 15:58 imon_mce
-rw-r--r-- 1 root root 2742 Aug 8 21:22 imon_pad
my system was using the imon_pad file as found via dmesg:
~$ dmesg | grep imon | grep Registered
[   22.450927] Registered IR keymap rc-imon-pad

and I looked in there and noticed the buttons I wanted where not listed, specially BTN_RIGHT and BTN_LEFT which I have as 'info' and 'guide'.  So I used the old file from lircd prior to devinput and took the codes/names and merged it with imon_pad so I could have all the scan codes.  This was done by taking /usr/share/lirc/remotes/imon/lircd.conf.imon-pad editing it so I was left with a file that only had lines like:

Tuesday, July 29, 2008

Dandelion Seeds..


20080525_IMG_1907
Originally uploaded by Torawk

This was taken in my parent's back yard... hand held with extension tubes with my 50mm, although I don't remember which tube(s) now... my problem with the tubes is getting the DOF set decently.. this one was my best and I think it might still be a bit narrow as some of the fore ground flower is out of focus.. but I like the background as you can tell the background is another couple dandelion and not just a mysterious yellow.. :)