From my RapsBerry Pi 2 B running Ubuntu 14.04LTS I do:
sudo poweroff
So the device turns off (nothing on the screen).
If I then try to wake on LAN it up with the usual method:
wakeonlan 11:22:33:44:55:66
... nothing happens.
Any other desktop computer on my LAN awakes fine, so I must suppose this is some issue with the drivers.
The eth0 info in the RapsBerry seems correctly configured for wake on LAN:
luis@Zarzamoro:~$ sudo ethtool eth0
Settings for eth0:
Supported ports: [ TP MII ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Supported pause frame use: No
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Advertised pause frame use: Symmetric Receive-only
Advertised auto-negotiation: Yes
Link partner advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Link partner advertised pause frame use: Symmetric
Link partner advertised auto-negotiation: Yes
Speed: 100Mb/s
Duplex: Full
Port: MII
PHYAD: 1
Transceiver: internal
Auto-negotiation: on
Supports Wake-on: pumbag
Wake-on: g
Current message level: 0x00000007 (7)
drv probe link
Link detected: yes
Note the Wake-on: g
part.
As long as the LAN card seems to be Wake on LAN capable, I assume that maybe another distro would be more optimized in ethernet drivers matter and could put the device in wake on LAN state?
For those arguing there is no need(?) to wake on LAN the RapsBerry Pi, consider these scenarios:
- You have a Rapsberry that you would like to go unnoticed (hidden, nobody must know it is there; they could grab it, you know). So you let it off and you start it up (wake on LAN) when desired (only you will know the MAC address).
- You would like to fully stop the network to isolate network traffic in order to sniff LAN data and detect some misbehavior, failure, virus... etc. Going through all the computers/portables/devices to turn them all off is rather awkward. So you order some sort of
poweroff
(even massive poweroff by using some .sh script) and, later, you turn them all on again via Wake on LAN (massive method is possible to, for example withwakeonlan
tool from Linux).