Re: [linux-pm] [PATCH 0/4] Fix forcedeth hibernate/wake-on-lan problems



On Sun, 1 Jun 2008, Tobias Diedrich wrote:

Ok, after another long debugging session I finally found out the
reason for the immediate reboot (after finding the place that
suspends the serial console (drivers/pnp) and disabling that suspend
path):
The system is woken up by USB activity! (Optical mouse, anyone?)

Lo and behold:
drivers/usb/core/hcd-pci.c tries it's best to activate 'wake on
usb', which I didn't know since it apparently also never worked.
However, after applying the 'use platform_enable_wakeup'-patch,
not only forcedeth wake starts working, also usb wake.
If I prevent usb wake:
|echo disabled > /sys/devices/pci0000\:00/0000\:00\:02.0/power/wakeup'
|echo disabled > /sys/devices/pci0000\:00/0000\:00\:02.1/power/wakeup'
And then hibernate in platform mode, the immediate reboot is gone
and waking up using magic packets works fine even without setting up
/proc/acpi/wakeup first.

Maybe I should try hooking mouse and keyboard onto different usb
host controllers, so I can disable wakeup for the mouse host
controller and enable wakeup for the keyboard host controller,
then it should be possible to wake the system by pressing a key. :)

You don't need to do that. Wakeup can be set specifically for each
individual USB device, provided CONFIG_USB_SUSPEND is enabled.


On Sun, 1 Jun 2008, Tobias Diedrich wrote:

(BTW I first thought the 'immediate reboot because of usb wake' effect is
caused by the optical mouse generating a wake event, but it rather
seems to be a problem with a flaky secondary usb host controller,
which sees a connected device where nothing is attached)

Can you provide debugging information (i.e., CONFIG_USB_DEBUG) with the
details on this bogus wakeup?

Alan Stern


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: Windows Socket Error 0; Also disk scans hang.
    ... card, display adaptor, additional IDE controller adaptor card, USB 2.0 ... adaptor card and on-mobo USB 1.0 all use IRQ 11. ... 11 NEC PCI to USB Open Host Controller ...
    (microsoft.public.win2000.networking)
  • Re: Guidance on USB Contoller listing in Device Manager, please
    ... I do not understand however why a known USB 2.0 device (my HP 8450 ... An USB host controller and an USB root hub is the same ... USB side which provides USB ports. ...
    (microsoft.public.windowsxp.hardware)
  • DVD drives cause XP to freeze
    ... 2048 kilobyte secondary memory cache ... Drives - 250.04 Gigabytes Usable Hard Drive Capacity ... Other Devices - VIA OHCI Compliant IEEE 1394 Host Controller ... Generic USB Hub ...
    (microsoft.public.windows.mediacenter)
  • Re: Guidance on USB Contoller listing in Device Manager, please
    ... An USB host controller and an USB root hub is the same ... USB side which provides USB ports. ...
    (microsoft.public.windowsxp.hardware)
  • Re: Guidance on USB Contoller listing in Device Manager, please
    ... I do not understand however why a known USB 2.0 device is shown as being connected to a 1.1 Host Controller and shown as having a connection running at 12 Mbps when it should be shown connected to the Enhanced controller and connected at 480 Mbps. ... USB side which provides USB ports. ...
    (microsoft.public.windowsxp.hardware)