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

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <netdev@...>, <linux-kernel@...>, Ayaz Abdulla <aabdulla@...>, Rafael J. Wysocki <rjw@...>, Stephen Hemminger <shemminger@...>, David Brownell <david-b@...>, <linux-acpi@...>, <linux-pm@...>
Date: Saturday, May 31, 2008 - 6: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
このメールは十割再利用されたビットで作られています。
--
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, 8:57 am)
Re: [PATCH 6/4] Fix forcedeth hibernate/wake-on-lan problems, Tobias Diedrich, (Sat May 31, 7:20 pm)
Re: [PATCH 5/4] Fix forcedeth hibernate/wake-on-lan problems, Tobias Diedrich, (Sat May 31, 6:54 pm)
Re: [PATCH 0/4] Fix forcedeth hibernate/wake-on-lan problems, Tobias Diedrich, (Sun May 18, 11:09 am)
Re: [PATCH 0/4] Fix forcedeth hibernate/wake-on-lan problems, Tobias Diedrich, (Sun May 25, 11:04 am)
Re: [PATCH 0/4] Fix forcedeth hibernate/wake-on-lan problems, Tobias Diedrich, (Sun May 25, 2:13 pm)
Re: [PATCH 0/4] Fix forcedeth hibernate/wake-on-lan problems, Tobias Diedrich, (Tue May 27, 2:21 am)
Re: [PATCH 0/4] Fix forcedeth hibernate/wake-on-lan problems, Tobias Diedrich, (Sat May 31, 6:12 pm)
Re: [PATCH 0/4] Fix forcedeth hibernate/wake-on-lan problems, Rafael J. Wysocki, (Tue May 20, 6:39 pm)
Re: [PATCH 4/4] reorder suspend/resume code, Tobias Diedrich, (Sun May 18, 9:04 am)
Re: [PATCH 3/4] save/restore device configuration space, Tobias Diedrich, (Sun May 18, 9:03 am)
Re: [PATCH 2/4] setup wake-on-lan before shutting down, Tobias Diedrich, (Sun May 18, 9:02 am)
Re: [PATCH 2/4] setup wake-on-lan before shutting down, Jeff Garzik, (Fri May 30, 10:20 pm)
Re: [PATCH 1/4] Restore multicast settings on resume, Tobias Diedrich, (Sun May 18, 9:00 am)
Re: [PATCH 1/4] Restore multicast settings on resume, Jeff Garzik, (Thu May 22, 6:21 am)