Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 11-17-2009, 08:41 AM   #1
Registered: Apr 2004
Location: NJ
Distribution: Ubuntu
Posts: 51

Rep: Reputation: 15
Question 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.
Old 11-17-2009, 10:28 AM   #2
LQ Veteran
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Debian
Posts: 5,936

Rep: Reputation: 2209Reputation: 2209Reputation: 2209Reputation: 2209Reputation: 2209Reputation: 2209Reputation: 2209Reputation: 2209Reputation: 2209Reputation: 2209Reputation: 2209
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.

Last edited by DavidMcCann; 11-17-2009 at 10:31 AM.
Old 11-17-2009, 10:33 AM   #3
LQ Guru
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

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

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.

Old 11-17-2009, 12:13 PM   #4
Registered: Apr 2004
Location: NJ
Distribution: Ubuntu
Posts: 51

Original Poster
Rep: Reputation: 15
Thank you guys. I'll give your suggestions a try and report back.


server, sleep, suspend, ubuntu, wol

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
ACPI Suspend / Sleep Galib Linux - Laptop and Netbook 3 04-03-2009 07:06 AM
Problem with sleep (suspend-to-ram, S3) Jessard Linux - Laptop and Netbook 7 02-15-2009 09:17 PM
Disable suspend/sleep/hibernate/whatever-you-call-it arizonagroovejet Linux - General 4 02-06-2009 04:33 AM
Problems with acpi/sleep/suspend on laptop kierse Linux - Hardware 4 03-08-2005 12:19 AM
How to use ACPI to sleep/suspend? manueljose Linux - Laptop and Netbook 2 09-28-2004 10:33 AM > Forums > Linux Forums > Linux - Software

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

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