[mythtv-users] mce remote (lirc) fails after resume from standby

Eloy Paris peloy at chapus.net
Tue Jun 30 17:43:17 UTC 2009


Hi Jarod,

On Mon, Jun 29, 2009 at 11:52:36PM -0400, Jarod Wilson wrote:

> >>root at altamira:/usr/src/lirc-0.8.4a/drivers/lirc_mceusb2# diff -u lirc_mceusb2.c.orig lirc_mceusb2.c
> >>--- lirc_mceusb2.c.orig 2009-01-28 16:56:52.000000000 -0500
> >>+++ lirc_mceusb2.c      2009-01-28 16:29:26.000000000 -0500
> >>@@ -1121,6 +1121,7 @@
> >> #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 0)
> >>       .suspend =      usb_remote_suspend,
> >>       .resume =       usb_remote_resume,
> >>+       .reset_resume = usb_remote_resume,
> >> #endif
> >>       .id_table =     usb_remote_table
> >> };
> >>
> >>This was for lirc 0.8.4a. I just checked lirc 0.8.5 and they've
> >>changed function names but the driver structure is still lacking a
> >>.reset_resume field.
> >>
> >>I don't know if the above will fix your resume problem, but my
> >>recommendation is that you try the above patch. As I said, resuming
> >>from S3 sleep by pressing the remote's power botton would not work
> >>at all for me without the above little patch, and I've been running
> >>for a few months with the above patch with no ill or side effects.
> 
> Eloy, would you mind submitting this upstream to the lirc list? I
> can't recall if you already did and it was overlooked, or what, but
> send it there again, and I'll keep an eye out for it and see if we
> can't get it included properly.

My apologies -- it's been in my to-do list to send this small patch to
the LIRC maintainers but I keep neglecting to do that. I don't know if
if the patch is correct, but without it LIRC stops working after S3
resume for me. I'll submit it to the lirc list and let the maintainers
decide if the patch makes sense, or if the problem needs to be handled
in a different way.

> >I made the patch did make & make install.
> >
> >I now get the following in syslog:
> >Jun 29 21:34:18 fe1 lircd-0.8.4a[1577]: accepted new client on
> >/dev/lircd
> >Jun 29 21:34:18 fe1 lircd-0.8.4a[1577]: could not get hardware
> >features
> >Jun 29 21:34:18 fe1 lircd-0.8.4a[1577]: this device driver does not
> >support the new LIRC interface
> >Jun 29 21:34:18 fe1 lircd-0.8.4a[1577]: make sure you use a current
> >version of the driver
> >Jun 29 21:34:18 fe1 lircd-0.8.4a[1577]: Failed to initialize hardware
> >
> >Is this a problem with using lirc 0.8.5?  Or is something left over
> >from my old lirc setup (0.8.4.a)?  I tried apt-get remove lirc but it
> >also wanted to remove a bunch of mythbuntu packages so I don't think I
> >want to do that.
> 
> Yes, this is more or less the same lirc version mis-match biting
> Fedora 10 users in the ass right now. There were incompatible
> changes between the 0.8.4 and 0.8.5, so you need to make sure if
> you're building your own driver that it matches your available
> userspace. I'd suggest you try patching the driver in lirc 0.8.4a
> instead of the latest lirc release or cvs if updating your userspace
> to match isn't practical.

Yes, patching the 0.8.4a driver given that Alan has a 0.8.4a lircd seems
like the easiest thing to do here.

Cheers,

Eloy Paris.-


More information about the mythtv-users mailing list