/proc/acpi/sleep vs /sys/power/state issue - 'standby' on a laptop
---------- Forwarded Message ----------
Subject: [2.6.12-rc1][ACPI][suspend] /proc/acpi/sleep vs /sys/power/state issue - 'standby' on a laptop
Date: March 28, 2005 02:53
From: Shawn Starr <shawn.starr at rogers d0t com>
To: Pavel Machek <pavel at suse d0t cz>, Len Brown <len d0t brown at intel d0t com>
Hello,
I've noticed something strange with issuing 'standby' to the system:
when echoing "standby" to /sys/power/state, nothing happens, not even a log
or system activity to attempt standby mode.
However, trying echo "1" to /proc/acpi/sleep the system attempts to (standby) and aborts:
[4295945.236000] PM: Preparing system for suspend [4295946.270000] Stopping tasks: ============================================================================= [4295946.370000] Restarting tasks... done
We get no reason as to why it quickly aborts.
[4294672.065000] ACPI: CPU0 (power states: C1[C1] C2[C2] C3[C3]) [4294676.827000] ACPI: (supports S0 S3 S4 S5)
What is '1' in /proc/acpi/sleep? standby mode is not the same as suspend to ram? when I put a normal desktop in standby mode its still 'on' but the hard disk is put to sleep and the system runs in a lower power mode.
Shawn.
-------------------------------------------------------
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
Quoted 9 lines · Shawn Starr
However, trying echo "1" to
/proc/acpi/sleepthe system attempts to (standby) and aborts:[4295945.236000] PM: Preparing system for suspend [4295946.270000] Stopping tasks:===========================================================================
== [4295946.370000] Restarting tasks... doneWe get no reason as to why it quickly aborts.
echo 1 to acpi/sleep means S1 called standby. echo 3 to acpi/sleep means S3 called STR: sleep to ram echo 4 to acpi/sleep means S4 called STD: sleep to disk
If you system just support S0, S3, S4, S5,
NO S1 support.
Signature · 9 lines
Thanks, Luming ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
Right, but then why is it trying to do 'something' even if there is no S1 support? :)
it should do the same thing if i echo 1 to /sys/power/state. which is nothing at all.
Shawn.
Quoted 9 lines · Luming
Quoted 8 lines · Shawn Starr
However, trying echo "1" to
/proc/acpi/sleepthe system attempts to (standby) and aborts:[4295945.236000] PM: Preparing system for suspend [4295946.270000] Stopping tasks:=========================================================================
== == [4295946.370000] Restarting tasks... done
Quoted 8 lines
Quoted 1 line
We get no reason as to why it quickly aborts.
echo 1 to acpi/sleep means S1 called standby. echo 3 to acpi/sleep means S3 called STR: sleep to ram echo 4 to acpi/sleep means S4 called STD: sleep to disk
If you system just support S0, S3, S4, S5,
NO S1 support.
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
Good question. could you write a patch for what you said.
Quoted 26 lines · Shawn Starr
Right, but then why is it trying to do 'something' even if there is no S1 support? :)
it should do the same thing if i echo 1 to
/sys/power/state. which is nothing at all.Shawn.
Quoted 17 lines · Luming
Quoted 9 lines · Shawn Starr
However, trying echo "1" to
/proc/acpi/sleepthe system attempts to (standby) and aborts:[4295945.236000] PM: Preparing system for suspend [4295946.270000] Stopping tasks:=======================================================================
== == == [4295946.370000] Restarting tasks... doneWe get no reason as to why it quickly aborts.
echo 1 to acpi/sleep means S1 called standby. echo 3 to acpi/sleep means S3 called STR: sleep to ram echo 4 to acpi/sleep means S4 called STD: sleep to disk
If you system just support S0, S3, S4, S5,
NO S1 support.
Signature · 9 lines
Thanks, Luming ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
Yes, I think thats a good idea... I'll look into that this week.
Shawn.
Quoted 29 lines · Luming
Good question. could you write a patch for what you said.
Quoted 26 lines · Shawn Starr
Right, but then why is it trying to do 'something' even if there is no S1 support? :)
it should do the same thing if i echo 1 to
/sys/power/state. which is nothing at all.Shawn.
Quoted 17 lines · Luming
Quoted 9 lines · Shawn Starr
However, trying echo "1" to
/proc/acpi/sleepthe system attempts to (standby) and aborts:[4295945.236000] PM: Preparing system for suspend [4295946.270000] Stopping tasks:=====================================================================
== == == == [4295946.370000] Restarting tasks... doneWe get no reason as to why it quickly aborts.
echo 1 to acpi/sleep means S1 called standby. echo 3 to acpi/sleep means S3 called STR: sleep to ram echo 4 to acpi/sleep means S4 called STD: sleep to disk
If you system just support S0, S3, S4, S5,
NO S1 support.
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
To further, is /proc/acpi deprecated? or is some of the duplicate functionality such as suspending going to be removed?
If so, the patch won't be worth writing if its being removed :)
Shawn.
Quoted 29 lines · you
Good question. could you write a patch for what you said.
Quoted 26 lines · Shawn Starr
Right, but then why is it trying to do 'something' even if there is no S1 support? :)
it should do the same thing if i echo 1 to
/sys/power/state. which is nothing at all.Shawn.
Quoted 17 lines · Luming
Quoted 9 lines · Shawn Starr
However, trying echo "1" to
/proc/acpi/sleepthe system attempts to (standby) and aborts:[4295945.236000] PM: Preparing system for suspend [4295946.270000] Stopping tasks:=====================================================================
== == == == [4295946.370000] Restarting tasks... doneWe get no reason as to why it quickly aborts.
echo 1 to acpi/sleep means S1 called standby. echo 3 to acpi/sleep means S3 called STR: sleep to ram echo 4 to acpi/sleep means S4 called STD: sleep to disk
If you system just support S0, S3, S4, S5,
NO S1 support.
-------------------------------------------------------
This SF.net email is sponsored by Demarc:
A global provider of Threat Management Solutions. Download our HomeAdmin security software for free today!
http://www.demarc.com/Info/Sentarus/hamr30