From: Andrei T. <an...@ta...> - 2007-11-22 16:25:19
|
On Wed, 21 Nov 2007 16:19:03 -0800, Paul Bender <peb...@sa...> wrote: > Andrei Tanas wrote: >> This patch will mark lirc_mceusb2 driver as ACPI-wakeup capable, which > will >> allow it to bring system out of standby when the "PC power" button is >> pressed on the remote. The only other thing necessary to enable this > will >> be to >> echo USBx > /proc/acpi/wakeup >> where x is the USB hub (?) number. >> >> Make sure that lirc_mceusb2 driver (and lirc_dev driver) is NOT unloaded >> before standby (it supports standby/resume). >> >> Regards, >> Andrei Tanas. >> >> >> diff -u -r1.37 lirc_mceusb2.c >> --- lirc_mceusb2.c 18 Oct 2007 18:41:10 -0000 1.37 >> +++ lirc_mceusb2.c 21 Nov 2007 21:19:05 -0000 >> @@ -794,6 +794,8 @@ >> >> usb_reset_device(dev); >> >> + device_init_wakeup(&dev->dev, 1); >> + >> config = dev->actconfig; >> >> idesc = intf->cur_altsetting; > > Is there some version of kernel that does not default can_wakeup to 1 > already? I know that it has been defaulted to 1 since at least 2.6.17. > You may be right. Some people reported that they couldn't setup lirc_mceusb2 to wake their system, I figured that that's probably the only piece missing. It's possible that it wasn't necessary, but it definitely didn't hurt - I have a Home Theatre box using the driver with this patch. I spent some time trying to make mceusb2 to wakeup the box, when I did this, it started working, but, on the other hand, I changed a few other things at the same time too. |