LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   SUSPEND (sleep) command (https://www.linuxquestions.org/questions/linux-software-2/suspend-sleep-command-769680/)

seelk 11-17-2009 08:41 AM

SUSPEND (sleep) command
 
Is there a command I can run from the command line that would allow my Ubuntu Server box to go on SUSPEND? I'm using Karmic 64bit. I'm trying to set my server to SUSPEND to save power, then WOL when needed. Thanks in advanced.

DavidMcCann 11-17-2009 10:28 AM

You should have pm-suspend: see "man" for details. You might also do an "apropos suspend", which might show some other useful stuff: I seem to remember there's a tool to see if suspend will work properly on a system.

GrapefruiTgirl 11-17-2009 10:33 AM

Since you want a command-line option, and assuming you want to suspend to RAM, as a test you might try:

Code:

shell$ sudo echo -n "mem" > /sys/power/state
and see if the machine goes to sleep AND if it awakes cleanly. If so, there you go; if it doesn't awake cleanly (or doesn't sleep) you have a little more work ahead of you.

Cheers!
Sasha

seelk 11-17-2009 12:13 PM

Thank you guys. I'll give your suggestions a try and report back.


All times are GMT -5. The time now is 03:35 AM.