LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Halt breaks WOL (https://www.linuxquestions.org/questions/linux-general-1/halt-breaks-wol-812422/)

marguelles 06-06-2010 03:19 AM

Halt breaks WOL
 
Hi guys,

I can't do a wake on lan after 'poweroff' my Debian Lenny system.

For example, if I shutdown the machine holding the power button, pulling the power cord or cutting the power with the power supply switch, then I can send a "Magic Packet" to turn it on again. But, when I do a clean shutdown like "shutdown -h now", then the nic doesn't take any action when receiving the signal.

Any ideas ? :(

Thanks in advance.

induswebii@gmail.com 06-07-2010 03:12 AM

We often take a review of that type of the reply.

jschiwal 06-07-2010 03:20 AM

Look in your power saver features. There is the "ethtool wol g" command which will enable waking on magic packets. There is also "ethtool wol d" to disable wake on lan. Your system may be executing the latter command.

marguelles 06-08-2010 05:51 AM

Thanks for the path jschiwal! :)

I've just set the WOL feature to be enabled in every boot by adding the following command in /etc/rc.local before "exit 0":
Code:

ethtool -s ethX wol g
Regards,

Quote:

Originally Posted by jschiwal (Post 3995100)
Look in your power saver features. There is the "ethtool wol g" command which will enable waking on magic packets. There is also "ethtool wol d" to disable wake on lan. Your system may be executing the latter command.



All times are GMT -5. The time now is 10:31 PM.