long story short.
I switched from a regular Ubuntu 12.04 to XBMCbuntu because....
Everything seems to work fine or even better.
But I am struggling to get the Wake-on-Lan working together with Suspend to RAM (S3).
WOL is working fine after shutdown (S5) and system gets back on after receiving magic packet. On Ubuntu 12.04 it is working with suspend flawlessly.
All I have to do in Ubuntu 12.04 is:
echo SLAN > /proc/acpi/wakeup
echo enabled > /sys/bus/pci/devices/my_network_card/power/wakeup
echo enabled > /sys/class/net/eth0/device/power/wakeup
ethtool -s eth0 wol g
For some reason XMBCBuntu is already pre-equiped with ethtool and ethtool eth0 reports "g" without any further script of my own.
As mentioned, if I do sudo poweroff, magic packet works. But it won't work after pm-suspend (LAN leds still blinking).
I know how to set up WOL on Ubuntu but I don't know what is the difference in XBMCBuntu distro and why it won't work there.
Is it managing suspending actions differently? Is it maybe some script overriding the ethtool wol setting? Do I have to unload network before suspend somehow?
I have already tried all the suggested ways like adding STOP, WHITELIST, etc.. entries in
service network stop
ifconfig eth0 down
Here are the outputs:
iqon@iqon-MS-7387:~$ cat /proc/acpi/wakeup
Device S-state Status Sysfs node
NPGS S4 *disabled pci:0000:02:00.0
NP0S S4 *disabled
USB1 S3 *enabled pci:0000:00:10.0
USB2 S3 *enabled pci:0000:00:10.1
USB3 S3 *enabled pci:0000:00:10.2
USB4 S3 *enabled pci:0000:00:10.3
EHCI S3 *enabled pci:0000:00:10.4
SLT1 S4 *disabled
SLT2 S4 *disabled
SLAN S4 *enabled pci:0000:00:12.0
SLPB S4 *enabled
PWRB S3 *enabled
iqon@iqon-MS-7387:~$ for i in /sys/bus/pci/devices/*/power/wakeup; do echo $i && cat $i; done
iqon@iqon-MS-7387:~$ cat /sys/class/net/eth0/device/power/wakeup
iqon@iqon-MS-7387:~$ uname -a
Linux iqon-MS-7387 3.5.0-48-generic #72-Ubuntu SMP Mon Mar 10 23:20:26 UTC 2014 i686 i686 i686 GNU/Linux
iqon@iqon-MS-7387:~$ sudo lshw -C network
description: Ethernet interface
product: VT6102 [Rhine-II]
vendor: VIA Technologies, Inc.
physical id: 12
bus info: pci@0000:00:12.0
logical name: eth0
width: 32 bits
capabilities: bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=via-rhine driverversion=1.5.1 duplex=full ip=192.168.1.143 latency=64 maxlatency=8 mingnt=3 multicast=yes port=MII speed=100Mbit/s
resources: irq:23 ioport:c000(size=256) memory:fcfff800-fcfff8ff
iqon@iqon-MS-7387:~$ sudo ethtool eth0
Settings for eth0:
Supported ports: [ TP MII ]
Supported link modes: 10baseT/Half 10baseT/Full
Supported pause frame use: No
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
Advertised pause frame use: No
Advertised auto-negotiation: Yes
Link partner advertised link modes: 10baseT/Half 10baseT/Full
Link partner advertised pause frame use: Symmetric
Link partner advertised auto-negotiation: Yes
Supports Wake-on: pumbg
Current message level: 0x00000000 (0)
Link detected: yes