LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-06-2008, 10:04 AM   #1
lchxr
Member
 
Registered: Mar 2006
Posts: 42

Rep: Reputation: 15
How does Wake-On-Lan response to the power down?


I have never used Wake-On-Lan feature before. This is my first time to try remotely waking up a Linux computer.

In the remote computer, I did the following:
1. enable WOL in BIOS
2. execute 'ethtool -s eth0 wol g' to enable WOL in NIC
3. Now the response of 'ethtool eth0' is
Quote:
Auto-negotiation: on
Supports Wake-on: umbg
Wake-on: g
Current message level: 0x00000001 (1)
Link detected: yes
In the local computer, I did the following:
1. ssh <remote_computer>
2. shutdown -h now
when the remote computer was shutdown. I perform
3. I sent magic packet with 'wakeonlan -i 192.168.0.255 <MAC>'
the remote computer is powered up. This is great.

However, if I 'ssh' to and 'shutdown -h now' the remote computer, and on the remote side I plugged out the power supply socket (fully power down) for a few minutes and plug in the power supply socket again, I could see the LED in NIC was lit up. At this situation, I could never wake up remotely. In other words, the plug out power socket will disable the WOL feature. I experiment many times, the situation is repeated.

I don't know if this is a correct result. I would appreciate if someone could answer me.

Last edited by lchxr; 11-06-2008 at 10:15 AM.
 
Old 11-06-2008, 10:35 AM   #2
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
There's a known problem with WOL.
The kernel developers are "working on it".
See this other (recent) thread: http://www.linuxquestions.org/questi...-issue-678917/
 
Old 11-09-2008, 09:27 AM   #3
jcliburn
Member
 
Registered: Dec 2003
Location: Mississippi, USA
Distribution: Fedora
Posts: 435

Rep: Reputation: 33
Quote:
Originally Posted by lchxr View Post
However, if I 'ssh' to and 'shutdown -h now' the remote computer, and on the remote side I plugged out the power supply socket (fully power down) for a few minutes and plug in the power supply socket again, I could see the LED in NIC was lit up. At this situation, I could never wake up remotely. In other words, the plug out power socket will disable the WOL feature. I experiment many times, the situation is repeated.

I don't know if this is a correct result. I would appreciate if someone could answer me.
Yes, this is a correct result.

Whenever you enable wake-on-LAN (WOL) with ethtool, the NIC responds by setting up its registers to make ready for entering a low power state (PCI D3 state) on shutdown, sleep, or hibernation. Power to the NIC is supplied by the PCI or PCIe bus, and even when you power off your computer, at least one voltage source, called Vaux, is left active. (Depending upon your particular system, you may also have a second voltage source active, called Vcc.) This is the power source the NIC uses to stay alive when your computer is shut down.

However, when you unplug your computer -- or open the rocker switch (if you have one) on the exterior of your power supply -- you remove *all* PCI power, including Vaux, causing the NIC to lose those register settings and revert to default values on power up.

Of course, WOL is dependent upon the kernel's correctness in handling PCI power management, and upon your NIC driver's correctness in setting up the registers and preparing for transition to the PCI D3 power state. From time to time, one or both get broken, but *usually* not in a stable release kernel.

Last edited by jcliburn; 11-09-2008 at 09:31 AM.
 
Old 11-09-2008, 05:11 PM   #4
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
@jcliburn:

Thanks for the update and detailed information.

WoL is currently broken on my LAN (Target to WoL = kernel 2.6.15-52-386, "kubuntu"), but I expect the clever people will get it fixed soon.

Meanwhile, I wish I knew how to power down that PC, and still be able to wake it up later without having to climb 3 flights of stairs and press the little button. WoL would be perfect.

It isn't that important, but I wish it worked.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Wake on Lan & Sleep on lan? ufmale Linux - Networking 1 06-25-2008 05:34 PM
Wake on LAN DennyB Linux - Hardware 1 08-21-2007 07:27 AM
wake on lan magic packet does not wake. albean Linux - Networking 1 06-30-2007 03:57 PM
Monitor doesn't wake up at power-on pingu Linux - Hardware 5 04-29-2007 05:51 AM
Wake on Lan - Link on b4 power up, No Link light after shutdown? Mark007 Linux - Networking 0 11-20-2004 08:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration