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

Alan Marchiori alan at alanmarian.com
Tue Jun 30 03:44:48 UTC 2009


On Sun, Jun 28, 2009 at 6:45 AM, Eloy Paris<peloy at chapus.net> wrote:
> Hi Alan,
>
> On Sat, Jun 27, 2009 at 09:15:13PM -0600, Alan Marchiori wrote:
>
>> I have most of my issues figured out but getting the remote to work
>> consistently after standby is still causing problems.  The only
>> reliable way to get the remote to work is unplug the usb receiver and
>> plug it back in.  Restarting lirc or myth doesn't help.  Most of the
>> time it fails but every once in a while it works fine.  Below is the
>> relevant parts from syslog after a resume (showing the failure).  The
>> call trace seems to indicate something is breaking... but what, why,
>> and how to fix it?
>
> The "warn_slowpat" stack trace may not be a problem -- I've seen it in
> the past and haven't noticed any bad effects; I think it just means (at
> least in some cases) that some driver took longer to wake up.
>
> I also had problems with my MCE remote after resume from S3 sleep. It
> was weird because things would work fine if I resumed by pressing the
> machine's power botton instead of doing an USB resume by pressing the
> power button on the remote.
>
> I ended up adding one line to the lirc_mceusb2.c file and this fixed the
> problem for me:
>
> 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.
>

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.


More information about the mythtv-users mailing list