LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Can I wake up a server in "standby" or "memory" mode using wake-on-lan? (https://www.linuxquestions.org/questions/linux-server-73/can-i-wake-up-a-server-in-standby-or-memory-mode-using-wake-on-lan-792851/)

songweijia 03-03-2010 06:26 AM

Can I wake up a server in "standby" or "memory" mode using wake-on-lan?
 
I have a linux server running RHEL 5.1 x86 (the distribution doesn't matter since the same happens on SuSE.). Using wake-on-lan, I can wake up it if it was shutted down by "shutdown -h now" or "echo disk > /sys/power/state". Since waking up from such a state implys long start-up time, I'd rather it stays "standby" or "sleep in memory" by command "echo standby|memory > /sys/power/state". Although it can be waken by pressing power button, it does not respond to a wake-on-lan packet.

To make sure WOL works, I checked BIOS and it said: "Wake On Lan:enabled"; I issued command: 'ethtool eth0' and it said: Supports Wake-on: umbg
Wake-on: d
;

I'm confused. Does linux in "standby" or "memory" power mode can be waken up by wake-on-lan mechanism? If the answer is no, is there a way I can remotely wake it up?

smoker 03-03-2010 06:55 AM

Quote:

To make sure WOL works, I checked BIOS and it said: "Wake On Lan:enabled"; I issued command: 'ethtool eth0' and it said: Supports Wake-on: umbg
Wake-on: d
Wake-on: d means it is disabled, so enable it with
ethtool -s eth0 wol g

If you want the setting to stick after a reboot you could add the same line to your start up scripts.
Code:

echo "ETHTOOL_OPTS=\"wol g\"" >> /etc/sysconfig/network-scripts/ifcfg-eth0
I can't find evidence of linux supporting WoL from suspend to ram

You might also look at /etc/sysconfig/apm-scripts/ if that directory exists. You might be able to influence the suspend/hibernate procedure from there. These control Automatic Power Management on RH.
http://www.linuxtopia.org/online_boo...sconf-dir.html

songweijia 03-03-2010 06:51 PM

Thank you for your reply, smoker. I'm sorry that "Wake-on: d", which should be "Wake-on: g", is a clerical mistake I made. I typed this line instead of copy-and-paste for I posted on windows.

"/etc/sysconfig/apm-scripts" directory does not exists on my linux.I'm still not sure if linux can be WoL from standby mode. Maybe I need to install suspend-scripts.

Quote:

Originally Posted by smoker (Post 3883816)
Wake-on: d means it is disabled, so enable it with
ethtool -s eth0 wol g

If you want the setting to stick after a reboot you could add the same line to your start up scripts.
Code:

echo "ETHTOOL_OPTS=\"wol g\"" >> /etc/sysconfig/network-scripts/ifcfg-eth0
I can't find evidence of linux supporting WoL from suspend to ram

You might also look at /etc/sysconfig/apm-scripts/ if that directory exists. You might be able to influence the suspend/hibernate procedure from there. These control Automatic Power Management on RH.
http://www.linuxtopia.org/online_boo...sconf-dir.html



All times are GMT -5. The time now is 06:53 PM.