[mythtv-users] How to patch LIRC for HD-PVR150

Jeff Cranmer jeff at lotussevencars.com
Tue Oct 26 00:27:53 UTC 2010


> Um. What? "HD-PVR 150" does not add up. The Hauppauge WinTV PVR-150
> and Hauppauge HD-PVR are two different products, I presume you're
> actually referring to the latter.
> 
Oops - Hauppauge 1212 HD-PVR is the device.  Got my part numbers mixed
up<g>.

> 
> It does work, but that remote, imo, is trash.
> 
I'm not too bothered about the remote, since I have a decent
reprogrammable one.  I'll worry about remote control programming once I
get the IR Blaster PC control working within Linux MythTV.

> > I found a couple of links related to configuring the IR remote.
> >
> > This link indicates that the LIRC program that is current does not have
> > necessary code for the HD-PVR, so I need to apply a patch.
> > http://www.mythtv.org/wiki/Hauppauge_HD-PVR#Possible_Countermeasures
> 
> The "LIRC program" doesn't need to be patched at all. You need an
> hdpvr driver that has the i2c-connected IR part enabled, and an lirc
> kernel driver (lirc_zilog) to talk to it. The lirc userspace remains
> unchanged.
> 
That's good news.

> > The version of lirc I have installed at the moment is lirc-0.8.7_pre1,
> > with LIRC_DEVICES="hauppauge" and every USE flag but "debug" turned on
> 
> No clue what the LIRC_DEVICES="hauppauge" part actually does, or why
> your distro is apparently still providing a pre1 snapshot, given that
> pre2, pre3 and final have all since shipped too... But at least the
> version issue should be neither here nor there in this case.

Hmm - the gentoo guys must be a little behind with their releases.  The
latest one in the portage tree is 0.8.7-pre1
http://www.gentoo-portage.com/app-misc/lirc

> > I also found this thread at
> > http://www.gossamerthreads.com/lists/mythtv/users/445141
> > which makes the original patch link invalid, since I'm presently running
> > 2.6.34-gentoo-r6 kernel.
> >
> > My question is, I could lirc_zilog.c from
> > http://git.kernel.org/?p=linux/kernel/git/jarod/linux-2.6-lirc.git;a=tree;f=drivers/staging/lirc;hb=HEAD and copy over the file in the original zipfile quoted in the patch above, but this would probably be mixing revisions too much.  Is there a more recent version of this package that I can download from somewhere?
> 
> The lirc_zilog kernel driver is provided directly in kernel 2.6.36.
> The above referenced tree is a fair bit outdated now. Though, there
> hasn't been much churn in lirc_zilog.c of late, so that may not be
> relevant. Of course, I should also note that lirc 0.8.7 probably won't
> work right away with the in-kernel lirc bits, as the ioctl interface
> has changed, and the lirc maintainer is slacking on putting out a
> 0.9.0-pre1 release with the necessary ioctl changes incorporated...
> Hm, maybe I should get that done tomorrow.
> 
OK.  The lirc zilog kernel module is probably at least part of the
problem.  I may not have that kernel option turned on.  I'll take a look
for that.  Do you know which section of the kernel menuconfig that I
would find it in?  I'm always a bit wary of search and directly editing
the .config file, since that may be a good way to end up with an
incompatible set of kernel config options.

So, if lirc 0.8.7 won't work with the kernel bits, what is the best
solution?  Is downgrading to 0.8.6-r3 an option?

Thanks for the assistance.

Jeff




More information about the mythtv-users mailing list