LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-23-2005, 11:07 PM   #1
slinky2004
Member
 
Registered: Oct 2004
Posts: 309

Rep: Reputation: 30
ACPI sleep states


i'm trying to get my acpi sleep states working, but i'm not sure exactly how they're supposed to behave, so i dont know if what happens when i do an "echo "disk" > /sys/power/state", for example. so, i'm going to list the states that i have available, what happens when i try to use them. i'm hoping somebody can tell me if it's working and what is supposed to happen when i enter these states.

screen blanking:
i've heard you can do this: "xset +dpms and then $ xset dpms force off" to turn a laptop's backlight off, but mine doesnt seem to actually go off. the screen goes blank, but i can kind of tell that there's a light on behind it. there's definitely a difference between this and when it's been shutdown.

S1: I "echo "standby" > /sys/power/state".
if i'm in X, the screen goes black and then goes right back to normal.
if i'm in the console, nothing happens, shouldnt something happen?

S3: I "echo "mem" > /sys/power/state".
It goes to the console, says some stuff about saving state, then the the screen goes blank. sometimes the "power" led light sometimes it stays on, sometimes it goes off and comes back on when i press a button. it's not supposed to shut it down, right? so why is my light going off? also, it doesn't actually wake up. i'm not sure how i would wake it up though. would pressing a keyboard button, the mouse buttons, or the power button do it? none of that has worked.

S4: I "echo "disk" > /sys/power/state".
It goes to console, saves the state to disk, then shuts down. my power led actually goes off and it's totally shut down. when i resume, i have to hit the power button and it goes through the startup process again. is that supposed to happen? from the description of S4, it's supposed to be pretty much like S3 except it saves the state to disk, right? "hibernation" in windows never turned my power led off. if this is what S4 is supposed to do, whats the difference between S4 and "Software Suspend"?

S5:
Quote:
S5 - "Soft Off"

System is shut down, however some power may be supplied to certain devices to generate a wake event, for example to support automatic startup from a LAN or USB device. In Microsoft Windows, the "Shut down" command is associated with this state. Mechanical power can usually be removed or restored with no ill effects.
My computer doesn't seem to support it, but it sounds very similar to what happens when i try to use S4. When you use S5, do you have to go thru the whole startup process(lilo and stuff) when you resume? would it be possible to wake my computer up from S4 remotely over my lan? that would be so cool.
 
Old 10-25-2005, 11:38 PM   #2
ciotog
Member
 
Registered: Mar 2004
Location: Canada
Distribution: Slackware current
Posts: 728
Blog Entries: 2

Rep: Reputation: 43
Re: ACPI sleep states

Quote:
Originally posted by slinky2004
screen blanking:
i've heard you can do this: "xset +dpms and then $ xset dpms force off" to turn a laptop's backlight off, but mine doesnt seem to actually go off. the screen goes blank, but i can kind of tell that there's a light on behind it. there's definitely a difference between this and when it's been shutdown.
When the backlight on a notebook burns out you'll get exactly what you seem to be describing - a faint image of the desktop on the screen. It seems to me that this is doing exactly what it's supposed to - just turn off the backlight, nothing else.

Quote:
S1: I "echo "standby" > /sys/power/state".
if i'm in X, the screen goes black and then goes right back to normal.
if i'm in the console, nothing happens, shouldnt something happen?
As I understand it you have to add the parameter '-n' with the string "standby", so the command would be:
Code:
echo -n "standby" > /sys/power/state
Same with S3 and S4.

Quote:
S5:
My computer doesn't seem to support it, but it sounds very similar to what happens when i try to use S4. When you use S5, do you have to go thru the whole startup process(lilo and stuff) when you resume? would it be possible to wake my computer up from S4 remotely over my lan? that would be so cool.
S5 is just like a shutdown except it maintains minimal power in order to read wake-on-lan type signals. I'm not sure that it's possible to enable this state with a 2.6 kernel, unless a regular shutdown is now the same as S5. You ought to be able to wake the computer up from state S4 without actually restarting, and would be a nice way to suspend every night - restarting would be very quick.
 
Old 10-29-2005, 11:50 AM   #3
op4latino
LQ Newbie
 
Registered: Oct 2005
Posts: 4

Rep: Reputation: 0
How to wake up?

How do you wake it up? I can't for some reason

Thanks
 
Old 10-30-2005, 12:40 AM   #4
ciotog
Member
 
Registered: Mar 2004
Location: Canada
Distribution: Slackware current
Posts: 728
Blog Entries: 2

Rep: Reputation: 43
It would depend on hardware support.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ACPI Sleep ? rpz Linux - Hardware 17 08-08-2005 02:44 AM
ACPI Standby/Sleep modes ValidiusMaximus Linux - Hardware 0 01-17-2005 01:26 PM
acpi sleep reboots computer... djib Linux - Software 2 12-12-2004 10:17 AM
How to use ACPI to sleep/suspend? manueljose Linux - Laptop and Netbook 2 09-28-2004 10:33 AM
ACPI Sleep aaa Linux - General 9 10-01-2003 11:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:00 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration