Skip to contentSkip to conversation

/proc/acpi/sleep vs /sys/power/state issue - 'standby' on a laptop

2.6.12-rc1 Shawn Starr 2 participants 6 messages Mar 28, 2005 – Apr 1, 2005 4 messages not in the archive ACPI

lore
Share & tools
lore
#0 lore raw

---------- 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

A message that is not in the archive (sent off-list or not yet received): 200503280302.57640.shawn.starr-bJEeYj9oJeDQT0dZR+AlfA@public.gmane.org

#2 lore raw
Quoted 9 lines · Shawn Starr

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.

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

A message that is not in the archive (sent off-list or not yet received): 200503301437.09234.luming.yu-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org

#4 lore raw

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/sleep the 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

A message that is not in the archive (sent off-list or not yet received): 200503300142.54497.shawn.starr-bJEeYj9oJeDQT0dZR+AlfA@public.gmane.org

#6 lore raw

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/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.

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

A message that is not in the archive (sent off-list or not yet received): 200503301508.08721.luming.yu-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org

#8 lore raw

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/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.

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

#9 lore raw
In reply to a message not in the archive

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/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.

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