LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 11-17-2009, 08:41 AM   #1
seelk
Member
 
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
DavidMcCann
Senior Member
 
Registered: Jul 2006
Location: London
Distribution: CentOS, Salix
Posts: 3,124

Rep: Reputation: 792Reputation: 792Reputation: 792Reputation: 792Reputation: 792Reputation: 792Reputation: 792
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
GrapefruiTgirl
Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
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
 
Old 11-17-2009, 12:13 PM   #4
seelk
Member
 
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.
 
  


Reply

Tags
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


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration