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.
Created attachment 10285 [details] acpidump output
Created attachment 10286 [details] /proc/acpi/wakeup before shutdown
Created attachment 10287 [details] dmesg output
Created attachment 10288 [details] ethtool output
Created attachment 10289 [details] lspci
Created attachment 10290 [details] interrupts
Also, I just confirmed that the same problem still exists with 2.6.20
Is there any bios option about wol?
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 ?
Please check if /sys/power/disk has "platform" in it... With "shutdown" ACPI is not able to set wake-up devices at all.
$ cat /sys/power/disk platform
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.
> 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)
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,
Hi, please try the latest kernel release. And attach the content of /proc/acpi/wakeup.
Hi, Sorry, my MB burned in the meantime, so I can't try anymore. Note that /proc/acpi/wakeup was already attached.
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?
Well as I said, my hardware died. So I can't test this anymore.