Oh boy, I have exactly the same problem as you...
I'm using Ubuntu Oneiric.
>I have WOL from S5 enabled in bios.
>WOL is enabled in Windows.
>I am running the wakeonlanconfig startup script.
>I have removed the -i option from halt
>The lights on my NIC are on after shutdown and show activity when I send the MagicPacket.
Here is my ethtool output:
Different driver though... I use a via VT6120/VT6121/VT6122 Gigabit Ethernet Adapter (driver via-velocity).
Here is the output of lscpi -tv:
Code:
-[0000:00]-+-00.0 VIA Technologies, Inc. VX855/VX875 Host Bridge: Host Control
+-00.1 VIA Technologies, Inc. VX855/VX875 Error Reporting
+-00.2 VIA Technologies, Inc. VX855/VX875 Host Bus Control
+-00.3 VIA Technologies, Inc. VX855/VX875 DRAM Bus Control
+-00.4 VIA Technologies, Inc. VX855/VX875 Power Management Control
+-00.5 VIA Technologies, Inc. VX855/VX875 APIC and Central Traffic Control
+-00.6 VIA Technologies, Inc. VX855/VX875 Scratch Registers
+-00.7 VIA Technologies, Inc. VX855/VX875 North-South Module Interface Control
+-01.0 VIA Technologies, Inc. VX855/VX875 Chrome 9 HCM Integrated Graphics
+-0f.0 VIA Technologies, Inc. VX855/VX875 EIDE Controller
+-10.0 VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller
+-10.1 VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller
+-10.2 VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller
+-10.4 VIA Technologies, Inc. USB 2.0
+-11.0 VIA Technologies, Inc. VX855/VX875 Bus Control and Power Management
+-11.7 VIA Technologies, Inc. VX8xx South-North Module Interface Control
+-13.0-[01]----03.0 VIA Technologies, Inc. VT6120/VT6121/VT6122 Gigabit Ethernet Adapter
\-14.0 VIA Technologies, Inc. VT8237A/VT8251 HDA Controller
And acpitool -w
Code:
Device S-state Status Sysfs node
---------------------------------------
1. USB0 S4 *disabled pci:0000:00:10.0
2. USB1 S4 *disabled pci:0000:00:10.1
3. USB2 S4 *disabled pci:0000:00:10.2
4. EHCI S4 *disabled pci:0000:00:10.4
5. SBRG S5 *enabled pci:0000:00:11.0
6. P2PB S5 *enabled pci:0000:00:13.0
To get there, I had to modify the rc.local script as follows:
Code:
/sbin/ethtool -s eth0 wol g
grep 'SBRG.*enabled' < /proc/acpi/wakeup >/dev/null || echo SBRG > /proc/acpi/wakeup
grep 'P2PB.*enabled' < /proc/acpi/wakeup >/dev/null || echo P2PB > /proc/acpi/wakeup
echo enabled > /sys/class/net/eth0/device/power/wakeup
echo enabled > /sys/devices/pci0000\:00/0000\:00\:13.0/power/wakeup
echo enabled > /sys/devices/pci0000\:00/0000\:00\:13.0/0000\:01\:03.0/power/wakeup
As you can see, I'm sort of enabling everything I can!
Finally, I've removed network-manager (who is known to create issues) and configuring my interfaces manually through /etc/network/interfaces
Code:
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.253.2
netmask 255.255.255.0
broadcast 192.168.253.255
network 192.168.253.0
gateway 192.168.253.1
up /sbin/ethtool -s eth0 wol g
post-up /sbin/ethtool -s eth0 wol g
post-down /sbin/ethtool -s eth0 wol g
pre-down false
The command ethtool eth0 outputs the following:
Code:
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: 100baseT/Full
Advertised pause frame use: No
Advertised auto-negotiation: Yes
Speed: 100Mb/s
Duplex: Full
Port: Twisted Pair
PHYAD: 0
Transceiver: internal
Auto-negotiation: off
MDI-X: Unknown
Supports Wake-on: puag
Wake-on: g
Current message level: 0x00000002 (2)
probe
Link detected: yes
It is to be noted that wol works for Debian Squeeze (kernel 2.6.32). Wol has been broken since Ubuntu 11.04. I have tried Debian testing and Mint without success as well and I fear this may be related to a kernel change...
I'm completely lost, please help!
Thanks a lot guys