<div class="gmail_quote">On Tue, May 31, 2011 at 11:13 PM, Jarod Wilson <span dir="ltr"><<a href="mailto:jarod@wilsonet.com">jarod@wilsonet.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div><div></div><div class="h5">On May 31, 2011, at 9:46 AM, lists.md301 wrote:<br>
<br>
</div></div><div class="im"><br>
> Patch applied cleanly to 2.6.38-gentoo-r5, and I was able to select the new fintek_cir module option. Two wrinkles I encountered. First, using my kernel oldconfig when compiling the new one, it built the rc-core stuff into the kernel, instead of as modules. My bad, as I should have paid closer to attention to the first time I ran menuconfig.<br>
><br>
> Second, this was my first attempt at using a devinput device, which led to a couple of issues. Not sure in hindsight whether it was absolutely necessary (Jared may tell me it was),<br>
<br>
</div>It wasn't. The fintek-cir driver works with the rc-core ir-lirc-codec plugin,<br>
which provides a classic /dev/lirc0 interface to the hardware.<br>
<div class="im"><br></div></blockquote><div><br>I figured out this was still available, eventually, when I noticed the lirc0 interface being created. However, the one faulty bit of extrapolation on my part, from my reading of the Gentoo LIRC wiki, was taking the advice that the lirc_dev was not required, and that its kernel module should be deleted, when using a devinput device. Obviously a bad conclusion, as I ended up with errors from it missing and had to rebuild it. As mentioned previously, some of my problems probably resulted from trying to run with my original lirc-0.8.7 install, which you reminded me wouldn't work. Not sure what I was doing when in my debug effort.<br>
</div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="im">
> It was in debugging this process that I discovered that rc-core wasn't compiled as a module. It took me a little while to understand how devinput devices are discovered and used. Once I understood what the documentation was telling me, I was able to see that an rc0 system resource was being created and linked to a /dev/input/eventX. The Gentoo wiki entry about LIRC is pretty good at explaining this. I had to create my own udev rule (as none exists in my way-behind udev version) so that a /dev/input/irremote soft link is created when the fintek_module is probed. The Gentoo wiki describes parsing a /sys/class/rc subdirectory to search/grep for the proper link for the handle, and putting that in the /etc/conf.d file, but I preferred the udev rule route.<br>
<br>
</div>Ideally, /dev/input/by-id/ links should be set up for all rc-core drivers, but<br>
that's not the case for any of the pnp-based drivers yet, only the usb ones.<br>
On my TODO list to figure out how to remedy that.<br>
<div class="im"><br></div></blockquote><div><br>Thanks for the explanation. I was wondering about that. I had looked for those links.<br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">
<br>
> My final mistake was thinking that the lircd.conf for the MCE USB and a devinput device are the same.<br>
<br>
</div>Yeah, not even close.<br>
<div class="im"><br>
<br>
> They're not. Likewise the keymap names that I previously used are different for the .lircrc that existed in my mythtv home directory. Once I finally got irw to give me an output from the fintek_cir module, I had to recreate my own .lircrc by editing a copy of the one I had been using for the MCE remote. Maybe one existed somewhere, but I didn't have the patience to track it down.<br>
<br>
</div>Well, I have one that I use myself, but it may or may not line up with how you<br>
have things mapped.<br>
<br></blockquote></div><br>I'm happy with the keymapping I created. A good re-learning experience. You are right that such things end up being a personal preference. Wasn't too difficult to do. And with using the remote as a devinput device, I noticed (obviously) that key presses also show up on a console/terminal window. At least the up arrow, as I was able to bring up the mythfrontend text on the xterm CLI with it.<br>
<br>One final comment/question: part of the reason I ended up using the Fintek as a devinput device is that I was unsure as to what device to compile/select in lirc 9.0 to work with it, for the /dev/lirc0 interface. I didn't see anything in the documentation available, realizing that doc often lags functionality. I was under the impression that choosing an MCE USB would NOT work (since that would select the wrong kernel driver), and I thought my debug testing proved that, but I may have been trying that with 0.8.7 which would not have been aware of the newest drivers. Maybe choosing NOTHING is the correct option? If you could clarify that a bit more, it might be helpful to others. Haven't had time to retrace my steps to test whether my /dev/lirc0 would work now that I have 0.9.0 installed, given the correct lircd.conf file (but which one?).<br>