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

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Tobias Diedrich
Date: Saturday, May 31, 2008 - 3:12 pm

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. :)

-- 
Tobias						PGP: http://9ac7e0bc.uguu.de
このメールは十割再利用されたビットで作られています。
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/4] Fix forcedeth hibernate/wake-on-lan problems, Tobias Diedrich, (Sun May 18, 5:57 am)
Re: [PATCH 1/4] Restore multicast settings on resume, Tobias Diedrich, (Sun May 18, 6:00 am)
Re: [PATCH 2/4] setup wake-on-lan before shutting down, Tobias Diedrich, (Sun May 18, 6:02 am)
Re: [PATCH 3/4] save/restore device configuration space, Tobias Diedrich, (Sun May 18, 6:03 am)
Re: [PATCH 4/4] reorder suspend/resume code, Tobias Diedrich, (Sun May 18, 6:04 am)
Re: [PATCH 0/4] Fix forcedeth hibernate/wake-on-lan problems, Tobias Diedrich, (Sun May 18, 8:09 am)
Re: [PATCH 0/4] Fix forcedeth hibernate/wake-on-lan problems, Rafael J. Wysocki, (Tue May 20, 3:39 pm)
Re: [PATCH 1/4] Restore multicast settings on resume, Jeff Garzik, (Thu May 22, 3:21 am)
Re: [PATCH 0/4] Fix forcedeth hibernate/wake-on-lan problems, Tobias Diedrich, (Sun May 25, 8:04 am)
Re: [PATCH 0/4] Fix forcedeth hibernate/wake-on-lan problems, Tobias Diedrich, (Sun May 25, 11:13 am)
Re: [PATCH 0/4] Fix forcedeth hibernate/wake-on-lan problems, Tobias Diedrich, (Mon May 26, 11:21 pm)
Re: [PATCH 2/4] setup wake-on-lan before shutting down, Jeff Garzik, (Fri May 30, 7:20 pm)
Re: [PATCH 0/4] Fix forcedeth hibernate/wake-on-lan problems, Tobias Diedrich, (Sat May 31, 3:12 pm)
Re: [PATCH 5/4] Fix forcedeth hibernate/wake-on-lan problems, Tobias Diedrich, (Sat May 31, 3:54 pm)
Re: [PATCH 6/4] Fix forcedeth hibernate/wake-on-lan problems, Tobias Diedrich, (Sat May 31, 4:20 pm)