Bug 7937 - ACPI breaks WOL
Summary: ACPI breaks WOL
Status: REJECTED UNREPRODUCIBLE
Alias: None
Product: ACPI
Classification: Unclassified
Component: Power-Sleep-Wake (show other bugs)
Hardware: i386 Linux
: P2 normal
Assignee: acpi_power-sleep-wake
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-05 02:48 UTC by Lucas Nussbaum
Modified: 2007-09-06 15:41 UTC (History)
1 user (show)

See Also:
Kernel Version: 2.6.18
Subsystem:
Regression: ---
Bisected commit-id:


Attachments
acpidump output (50.75 KB, text/plain)
2007-02-05 02:50 UTC, Lucas Nussbaum
Details
/proc/acpi/wakeup before shutdown (146 bytes, text/plain)
2007-02-05 02:51 UTC, Lucas Nussbaum
Details
dmesg output (13.43 KB, text/plain)
2007-02-05 02:53 UTC, Lucas Nussbaum
Details
ethtool output (514 bytes, text/plain)
2007-02-05 02:54 UTC, Lucas Nussbaum
Details
lspci (10.78 KB, text/plain)
2007-02-05 02:55 UTC, Lucas Nussbaum
Details
interrupts (508 bytes, text/plain)
2007-02-05 02:55 UTC, Lucas Nussbaum
Details
enable wakeup GPE before sleep (9.47 KB, patch)
2007-06-05 00:10 UTC, Zhang Rui
Details | Diff

Description Lucas Nussbaum 2007-02-05 02:48:19 UTC
Most recent kernel where this bug did *NOT* occur: 2.6.18
Distribution: Debian
Hardware Environment: ASUS A7N266-E motherboard, Intel NIC with e100 driver
Software Environment: Debian Etch
Problem Description:

Using an A7N266-E motherboard, and an Intel 82557/8/9 network card, with an
up-to-date Debian etch and Debian's 2.6.18 kernel:

When ACPI is enabled, wake on lan doesn't work after the computer has been shut
down using "halt".

When ACPI is disabled (with acpi=off) and APM is enabled (to be able to
completely shut down the computer remotely, using apm power_off=1 in
/etc/modules), wake on lan works fine. (but I cannot use that since USB has
problems, then)

Steps to reproduce:
Enable wake-up for everything using acpitool and /proc/acpi/wakeup. Shutdown
using halt. Try to wake-on-lan.

I'll attach some maybe-relevant files, but I'm looking for directions to help
debug this.
Comment 1 Lucas Nussbaum 2007-02-05 02:50:29 UTC
Created attachment 10285 [details]
acpidump output
Comment 2 Lucas Nussbaum 2007-02-05 02:51:30 UTC
Created attachment 10286 [details]
/proc/acpi/wakeup before shutdown
Comment 3 Lucas Nussbaum 2007-02-05 02:53:13 UTC
Created attachment 10287 [details]
dmesg output
Comment 4 Lucas Nussbaum 2007-02-05 02:54:23 UTC
Created attachment 10288 [details]
ethtool output
Comment 5 Lucas Nussbaum 2007-02-05 02:55:08 UTC
Created attachment 10289 [details]
lspci
Comment 6 Lucas Nussbaum 2007-02-05 02:55:23 UTC
Created attachment 10290 [details]
interrupts
Comment 7 Lucas Nussbaum 2007-02-05 05:18:03 UTC
Also, I just confirmed that the same problem still exists with 2.6.20
Comment 8 Shaohua 2007-02-06 18:33:57 UTC
Is there any bios option about wol?
Comment 9 Lucas Nussbaum 2007-02-07 00:17:41 UTC
Yes there is, sort of. The bios is a Phoenix bios.
Under Power / Power Up Control, there's:
AC Power Loss Restart [*Disabled*/Enabled]
Power Up On PCI Card [Disabled/*Enabled*]
Power On By PS/2 Keyboard [Disabled/*Space Bar*]
Power On BY PS/2 Mouse [*Disabled*/Enabled]

If I disable Power Up On PCI Card, WOL stops working even if the computer is
shut down using the power button while in grub (which works otherwise).

Is it possible that, since there's no LAN0 in /proc/acpi/wakeup, linux doesn't
find it "useful" to re-enable WOL during shutdown, or something like that ?
Comment 10 Alexey Starikovskiy 2007-02-07 01:05:58 UTC
Please check if /sys/power/disk has "platform" in it... With "shutdown" ACPI 
is not able to set wake-up devices at all.
Comment 11 Lucas Nussbaum 2007-02-07 01:14:20 UTC
$ cat /sys/power/disk 
platform
Comment 12 Alexey Starikovskiy 2007-02-07 03:26:23 UTC
your 'wakeup' file says that all devices can wakeup system only from 4th 
state, which is S4 or suspend-to-disk. Halt is S5 or software-off. Please try 
if you can wakeup system from suspend-to-disk.
Comment 13 Lucas Nussbaum 2007-02-07 03:57:28 UTC
> your 'wakeup' file says that all devices can wakeup system only from 4th 
> state, which is S4 or suspend-to-disk. Halt is S5 or software-off.

I saw that as well. However WOL works when the computer is shutdown ("halt")
using apm (with acpi=off).

> Please try if you can wakeup system from suspend-to-disk.

I tried both with and without enabling wakeup using acpitool -W. In both cases,
waking up with WOL didn't work. (waking up using the power button worked, and
everything resumed as expected)
Comment 14 Lucas Nussbaum 2007-03-21 02:45:06 UTC
Hi,

are there other things I can try ? Is it a bug in the bios, that doesn't
advertise the real capabilities of the motherboard ? Is it possible to work
around it ?

Thank you,
Comment 15 Zhang Rui 2007-06-04 23:11:07 UTC
Hi, please try the latest kernel release.
And attach the content of /proc/acpi/wakeup.
Comment 16 Lucas Nussbaum 2007-06-04 23:58:37 UTC
Hi,

Sorry, my MB burned in the meantime, so I can't try anymore.

Note that /proc/acpi/wakeup was already attached.
Comment 17 Zhang Rui 2007-06-05 00:10:59 UTC
Created attachment 11680 [details]
enable wakeup GPE before sleep

>And attach the content of /proc/acpi/wakeup.
Please ignore this. :)
This patch adds a hook in driver model which enables the wakeup GPE before
sleep. Please have a try.
WOL doesn't work in S4, what about S3?
Comment 18 Lucas Nussbaum 2007-06-05 23:01:56 UTC
Well as I said, my hardware died. So I can't test this anymore.

Note You need to log in before you can comment on or make changes to this bug.