0
The problem:
- The computer resumes from S3 sleep (suspend-to-ram) within 5 seconds of suspend if the ethernet cable is connected
Hardware:
- Intel E2180
- Gigabyte P35-DS3L
- Realtek RTL8111b (using the r8169 module)
Software:
- I've disabled ACPI wakeup for all devices, per
/proc/acpi/wakeup
- kernel logs per dmesg look normal - no driver inhibiting suspend, or any other problems. The logs from a successful suspend (ethernet cable disconnected) and a broken suspend (ethernet cable connected) are the same.
- on S3 suspend-to-ram the kernel force-enables ACPI wakeup for the PCI-e bridge. I suspect this is normal.
- BIOS: USB mouse/keyboard wakeup disabled, wake-on-ring disabled, wake-on-PME enabled
- ethtool reports WOL set to ug.
I suspected a faulty device emitting continous WOL packets, but Wireshark records no WOL packets while the computer is on.
This occurs even with all other ports (USB) disconnected (leaving VGA/ethernet).
Also, I will need WOL functionality
Edit:
- Disabling WOL on the network interface using ethtool prevents the immediate resume.
What are you doing with this machine? It's very old, surely it's not supported anymore? – Chopper3 – 2016-12-01T18:12:05.300
I don't follow, the hardware is still supported by Linux? – user19087 – 2016-12-01T18:18:24.920
That may be the case but what about the systemboard manufacturer? Do they support it still? what's the use-case for this setup you have in mind? – Chopper3 – 2016-12-01T18:38:40.233
Media server, WOL to save power, all my remote apps already support WOL. Since the last BIOS update was years ago, I doubt the systemboard still receives updates. – user19087 – 2016-12-01T18:41:36.683
1what's sending the WOL packet/s? and why isn't it on 24 hours a day? – Chopper3 – 2016-12-01T18:52:47.893
right now, nothing, per wireshark. Eventuall, some remote apps, which support sending WOL. I suspend the mediaserver when not in use to save power. – user19087 – 2016-12-01T18:58:57.850
narrowed the issue down to the r8169 module. – user19087 – 2016-12-01T18:59:16.617
Is this a home-based question? – Chopper3 – 2016-12-01T19:00:15.750
Yes. But does it really matter if the server is in a home environment or not? If serverfault only supports specific hardware, you would've immediately migrated my question, since I initially posted my hardware.... And the answer turned out to be environment agnostic. – user19087 – 2016-12-01T20:08:51.517
Please read the help pages for serverfault.com when you can, even the first few lines will make it clear why you picked the wrong site to post this on. – Chopper3 – 2016-12-01T22:24:31.227