Wake-up on lan from suspend/sleep


I’m trying to get wol working from suspend on number of workstations I maintain. Other threads suggests that some people can get it working but others can’t for hardware issues, so I thought I’d post and see if I was missing anything.

Firstly, wol works fine from shutdown and hibernate; it’s just suspend which doesn’t work.

I’ve got 2 types of workstations, all running 11.1. They both have this kernel: #1 SMP 2010-02-22 16:49:47 +0100 x86_64 x86_64 x86_64 GNU/Linux

Type 1 is a dell optiplex 745, bios version 2.4.1. Here’s the relevant bit from lspci:
03:00.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5754 Gigabit Ethernet PCI Express (rev 02)
Kernel driver in use: tg3
Kernel modules: tg3

Type 2 is a dell optiplex 960, bios A04. Here’s its card info:
00:19.0 Ethernet controller: Intel Corporation 82567LM-3 Gigabit Network Connection (rev 02)
Kernel driver in use: e1000e
Kernel modules: e1000e

For both machines, here is the output of ethtool eth0:
Settings for eth0:
Supported ports: TP ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Half 1000baseT/Full
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Half 1000baseT/Full
Advertised auto-negotiation: Yes
Speed: 1000Mb/s
Duplex: Full
Port: Twisted Pair
Transceiver: internal
Auto-negotiation: on
Supports Wake-on: g
Wake-on: g
Current message level: 0x000000ff (255)
Link detected: yes
The above settings are persistent across boots.

ETHTOOL_OPTIONS=‘wol g’ in /etc/sysconfig/network/ifcfg-eth0 in both machines.

WOL is of course enabled in the bios for both machines, and in both cases the text explaining the options specifically refers to waking from suspend. In particular, it notes that if the powersave option is enabled in the bios, then wol will only work from suspend, and not hibernate or shutdown. This implies it is expecting wol to work from suspend. It doesn’t, regardless of whether or not powersave is enabled in the bios.

Does anyone have any suggestions as to what I’ve missed? The fact that it’s happening across two different machines makes me wonder if it is some OS setting I’ve missed, but then maybe neither card/driver supports it from suspend.

I’d really like to get them waking from suspend because training users to use suspend rather than hibernate would be a pain. Also, being able to configure such that it only wakes from suspend and not hibernate/shutdown, as implied in the bios, would allow me to wake machines up for backups etc only when the users are here, rather than on holiday/seconded to another department etc.


Anybody have any ideas? I’m out of ideas, but I’d really like to get this working. Or am I in the wrong forum?