81

My first thought was to simply start broadcasting WOL magic packets over the network, but my Raspberry Pi is not waking up. So I'm assuming it either doesn't support WOL, or I haven't properly configured it.

What do I have to do to enable Wake-on-LAN?

6
  • 4
    I wonder though, how on Earth did you manage to have power attached and not having your Pi turned on?
    – user13
    Commented Jun 14, 2012 at 16:23
  • 8
    @Tibor: I only have an imaginary one, that's how. Commented Jun 14, 2012 at 18:10
  • 21
    @OliverSalzburg: Then imagine it's waking up. Commented Jul 20, 2012 at 23:00
  • 2
    While I wouldn't be suprised if the pi's operating consumption is comparable to many desktop's waiting-for-wake-on-lan consumption, it would be an interesting question if there is enough public information available about the SOC to do clock throttling and achieve a lower power idle state. Commented Aug 3, 2012 at 0:01
  • 8
    I am using RampBMC on my Pi and I can tell you this. Using the xbmc remote app on the iPhone has a shut down feature. When I tell it to shut down it does. IT DOESN'T REBOOT. The screen goes blank and the only thing lit up on the Pi is the red power lite. Thats it. It may have power to it but it is not running XBMC. I am also interested in a WOL option. I want to be able to put a piece of double sided tape on my Pi and stick on the back of my TV and never have to touch it. The XBMC iPhone app also has WOL option by the way.
    – user13657
    Commented Mar 22, 2014 at 14:53

7 Answers 7

48

It doesn't support WoL.

Considering the device draws so little power, the benefits of shutting it of and waking it with WoL are few and far between. Just leave it on!

16
  • 6
    @AlexChamberlain Yes, but once the OS is halted you can't get it back without rebooting.
    – Jivings
    Commented Aug 3, 2012 at 9:37
  • 3
    @Jivings Can you reboot using the WoL support in the LAN chip? Commented Aug 3, 2012 at 9:38
  • 22
    Its not just the Pi, going to sleep also puts external HDDs to sleep which can mean significant power savings or simply prolong the life of HDD.
    – Mrchief
    Commented Dec 29, 2012 at 4:10
  • 2
    Ok, so the new RaspBmc spins down external HDD after 20 minutes of inactivity - sweet! You can also configure the time period to anything like. So I guess WOL takes a back seat for now! :)
    – Mrchief
    Commented Jan 1, 2013 at 4:16
  • 8
    I think what people fail to realize is that the Raspi does not have an 'ON' button, so this would come in handy to turn on a Raspi has been turned 'off'
    – puk
    Commented Oct 10, 2013 at 1:14
44

I beg to differ. If you dig a bit deeper you find out the LAN micro chip, which incidentally is also the 2 port USB hub.

The manufacturer of the LAN microchip clearly says in their specifications the there is WoL on the LAN module.

Ethernet features: 10/100 Ethernet controller supports numerous power management wakeup features, including Magic Packet™, Wake-on LAN (WOL) and Link Status Change.

Now how you use it is another question. End of the day as long as there is power connected to Raspberry Pi (even if it off state or sleeping), you can use the WoL with out problem.

I know the other answers say you cannot shut down or sleep the Raspberry Pi (maybe with existing OS's), but the answer is still there is WoL in the LAN Module and that is a fact.


One thing to cry about if the fact that PoE has been omitted, but luckily Raspberrians questioned this fact and it turns out.. they just forgot about it.. oops.

Is power over Ethernet (PoE) possible?

Not in the base device, but it’s been a very commonly requested feature, so we’re examining options for later releases.

Somewhere on their blog they admitted to forgetting about it.. cannot find it now.

3
  • 3
    Page 2 of the schematic. Commented Aug 3, 2012 at 8:26
  • PoE is supported by HAT devices, like this: raspberrypi.org/products/poe-hat
    – CLS
    Commented Jan 19, 2019 at 13:10
  • PoE is not the same as WOL? Still pretty cool ... I think? :D
    – Piotr Kula
    Commented Jan 22, 2019 at 15:52
17

The RPi doesn't need Wake On Lan.

If it's connected to the power supply then it's on. There is no suspend or hibernation.

If it's not connected to the power supply, then it's definitely not going to turn on.

7
  • 9
    What happens if you shutdown the OS? Commented Aug 3, 2012 at 8:28
  • 1
    @AlexChamberlain It says "System Halted" and then you unplug it.
    – Jivings
    Commented Aug 3, 2012 at 9:35
  • Let's go to chat... Commented Aug 3, 2012 at 9:37
  • 3
    @Jivings : how to boot after it has been halted ?
    – user1648
    Commented Sep 27, 2012 at 8:32
  • 16
    You are wrong. Just issue a 'poweroff' command from the console while power is attached and it will turn off. Now it is connected to the power supply, but it is not on. There's plenty of software that turns the device off through a similar soft-off method. WoL would then theoretically turn it back on.
    – Octopus
    Commented Dec 3, 2014 at 18:36
9

I'm facing the same issue for a long time. But I use a trick to WOL my Raspberry Pi's (I use several RPi's in the museum where I work). I tackled the issue using an inexpensive ethernet power relay.

Here is my trick: I connect an ETH002 board (from Devantech) to the network. Power of the RPi is connected through the output NC (Normally Closed) of a relay. As the relay is normally closed, when main power is switched ON, both systems start up.

When I send a "sudo halt" command to the RPi, this goes off. To wake it again, I send the following command to the relays board (assuming the Relay 1 is in use):

//deactivate relay 1

PacketSender\PacketSender.exe -txw 500 IPaddress 17494 "21 01 00"

// wait some seconds...

//reactivate relay 1

PacketSender\PacketSender.exe -txw 500 IPaddress 17494 "20 01 00"

where IPaddress is the IP address of the relays board and port 17494 by default.

-- PacketSender is a very good freeware, Thanks to the developer --

Doing so, I completely switch off the RPi and power it on again. e.g when there is an evening event in the museum. Looks like WOL.

That 's it! Et voila!

Regards to all,

Yvan.

6

You can use PoE with the pi, use a PoE switch and a PoE splitter at the pi end. Works well and with a smarter, yet more expensive switch, you can reset the port to power cycle the pi.

It would be nice to use WOL on the pi, but not seeing any input on anyone getting that to work, even though the nic chip will "support" it.

-1

RPi gets power from a normal phone charger like a old PC AT power supply where you need to manually power on and off. For this reason pi cannot power cycle itself and functions like WoL cannot work.

-2

I'm no expert, but if the ethernet chip is also the controller for the USB ports, the answer may be to get power via the main USB ports for the PI via a USB hub that support power back-feed.

Not the answer you're looking for? Browse other questions tagged or ask your own question.