Wake On Lan only works on first boot, not sequent ones

Posted by sp3ctum on Server Fault See other posts from Server Fault or by sp3ctum
Published on 2012-09-23T20:24:12Z Indexed on 2012/09/23 21:39 UTC
Read the original article Hit count: 350

Filed under:
|
|

I have converted my old Dell Latitude D410 laptop to a server for tinkering. It is running an updated Debian Squeeze (6) with a Xen enabled kernel (I want to toy with virtual machines later on). I am running it 'headless' via an ethernet connection.

I am struggling to enable Wake On Lan for the box. I have enabled the setting in the BIOS, and it works nicely, but only for the first time after the power cord is plugged in. Here is my test:

  1. Plug in power cord, don't boot yet
  2. Send magic Wake On Lan packet from test machine (Ubuntu) using the wakeonlan program
  3. Server expected to start (does every time)
  4. Once server has booted, log in via ssh and shut it down via the operating system
  5. After shutdown, wake server up via WOL again (fails every time)

Some observations:

  • Right after step 1 I can see the integrated NIC has a light on. I deduce this means the NIC gets adequate power and that the ethernet cable is connected to my switch. This light is not on after step 4 (the shutdown stage). The light becomes back on after I disconnect and reconnect the power cord, after which WOL works as well.
  • After step 4 I can verify that wake on lan is enabled via the ethtool program (repeatable each time)
  • This blog post suggested the problem may lay in the fact the motherboard might not be giving adequate power to the NIC after shutdown, so I copied an acpitool script that supposedly should signal the system to give the needed power to the card when shut down. Obviously it did not fix my issue. I have included the relevant power settings in the paste below.
  • I have tried different combinations of parameters of shutdown (the program) options, as well as the poweroff program. I even tried "telinit 0", which I figured would do the most direct boot via software.
  • If I keep the laptop's power button pressed down and do a hard boot this way, the light on the ethernet port stays lit and a WOL is possible.
  • I copied a bunch of hopefully useful information in this paste
  • I have tried this with the laptop battery connected and without it. I get the same result.
  • Promptly pressing the power button causes the system to shut down with the message "The system is going down for system halt NOW!", and WOL is still unsuccessful.

© Server Fault or respective owner

Related posts about debian

Related posts about dell