From: Frans Pop <elendil@planet.nl>
To: LKML <linux-kernel@vger.kernel.org>
Cc: "Rafael J. Wysocki" <rjw@sisk.pl>,
Linus Torvalds <torvalds@linux-foundation.org>,
Andrew Morton <akpm@linux-foundation.org>,
Damien Wyart <damien.wyart@free.fr>,
Len Brown <len.brown@intel.com>,
Alexey Starikovskiy <astarikovskiy@suse.de>,
linux-acpi@vger.kernel.org
Subject: ACPI suspend/hibernate tests (was: ACPI power off regression in 2.6.23-rc8)
Date: Tue, 25 Sep 2007 23:44:01 +0200 [thread overview]
Message-ID: <200709252344.02894.elendil@planet.nl> (raw)
In-Reply-To: <200709251800.13272.rjw@sisk.pl>
On Tuesday 25 September 2007, Rafael J. Wysocki wrote:
> On Tuesday, 25 September 2007 17:40, Linus Torvalds wrote:
> > Len - why are you guys moving stuff into CONFIG_PM_SLEEP? I know you
> > seem to think that absolutely *everybody* should always support suspend
> > and hibernation, but the fact is, not everybody does. And it's a
> > totally separate thing for normal ACPI CPU runstate support that people
> > have used to manage a *running* CPU (and shutting it down).
>
> This was a mistake and fixes have already been posted:
>
> http://marc.info/?l=linux-acpi&m=119052970904643&w=4
> http://marc.info/?l=linux-acpi&m=119073173625910&w=4
As this whole "separate suspend and hibernate" change seems to have been
trickier than expected, I have done some additional testing using
2.6.23-rc8 plus both patches referred to above.
I compiled kernels (i386) for my laptop (Toshiba Satellite A40) with:
A) PM + SUSPEND + HIBERNATION + ACPI
B) PM + SUSPEND + ACPI
C) PM + HIBERNATION + ACPI
D) PM + ACPI
E) PM + SUSPEND + HIBERNATION but _without_ ACPI
F) without PM
In all cases CONFIG_APM was not set; all compiled without errors.
With all I have have booted, tried to suspend (close lid, which runs sleep
script, which does 'echo mem >/sys/power/state'), tried to hibernate ('echo
disk >/sys/power/state') and powered off (all from KDE sessions).
RESULTS
boot s2ram s2disk off
A) OK OK OK OK
B) OK OK N/A OK
C) OK OK 1) OK OK
D) OK 2) OK 1) N/A OK
E) OK 3) N/A 4) ??? 5) Only halted 6)
F) OK N/A N/A Only halted 6)
Comments:
1) sleep script ran, but laptop stayed on
2) dmesg lists S0,S5 supported
/proc/acpi/{sleep,wakeup} do not exist (is that correct?)
3) /proc/acpi/{sleep,wakeup} do not exist; /sys/power/state only has 'mem'
so SUSPEND seems missing even though compiled in
4) sleep script did not even run (as expected)
5) System did suspend, but power stayed on with on console:
Shutdown: hda \ Power down. \ Shutdown: hda \ hda: lost interrupt (2x)
\ psmouse.c: Failed to deactivate mouse on isa0060/serio1
System powered off manually and resumed correctly after that
6) System halted correctly, but did not power off automatically
The results for E and F are possibly correct as basically the config
(without ACPI) was broken for this laptop. In fact, I was somewhat
surprised how well it behaved without ACPI.
I suspect that whether a system powers off without ACPI or not can depend on
the system?
I have dmesg after boot and some other info available for all kernels if
anybody is interested. If any additional tests are wanted, please ask.
Cheers,
FJP
next prev parent reply other threads:[~2007-09-25 21:44 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-25 6:51 ACPI power off regression in 2.6.23-rc8 (NOT in rc7) Damien Wyart
2007-09-25 7:33 ` Andrew Morton
2007-09-25 8:36 ` Alexey Starikovskiy
2007-09-25 9:08 ` Torsten Kaiser
2007-09-25 9:27 ` Damien Wyart
2007-09-25 9:58 ` Damien Wyart
2007-09-25 11:45 ` Rafael J. Wysocki
2007-09-25 12:02 ` Damien Wyart
2007-09-25 15:05 ` Damien Wyart
2007-09-26 1:39 ` Mike Houston
2007-09-25 12:05 ` Rafael J. Wysocki
2007-09-25 12:05 ` Alexey Starikovskiy
2007-09-25 12:39 ` Rafael J. Wysocki
2007-09-25 12:53 ` Alexey Starikovskiy
2007-09-25 13:25 ` Rafael J. Wysocki
2007-09-25 13:15 ` Alexey Starikovskiy
2007-09-25 14:18 ` Rafael J. Wysocki
2007-09-25 14:19 ` Alexey Starikovskiy
2007-09-25 14:52 ` Rafael J. Wysocki
2007-09-25 14:45 ` Alexey Starikovskiy
2007-09-25 15:54 ` Rafael J. Wysocki
2007-09-25 16:23 ` Andrew Morton
2007-09-25 16:25 ` Alexey Starikovskiy
2007-09-25 11:25 ` Alexey Starikovskiy
2007-09-25 16:30 ` Torsten Kaiser
2007-09-25 16:31 ` Alexey Starikovskiy
2007-09-25 16:34 ` Alexey Starikovskiy
2007-09-25 15:40 ` Linus Torvalds
2007-09-25 16:00 ` Rafael J. Wysocki
2007-09-25 21:44 ` Frans Pop [this message]
2007-09-25 22:18 ` ACPI suspend/hibernate tests (was: ACPI power off regression in 2.6.23-rc8) Rafael J. Wysocki
2007-09-25 22:28 ` Frans Pop
2007-09-26 14:59 ` ACPI power off regression in 2.6.23-rc8 (NOT in rc7) Tim Post
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200709252344.02894.elendil@planet.nl \
--to=elendil@planet.nl \
--cc=akpm@linux-foundation.org \
--cc=astarikovskiy@suse.de \
--cc=damien.wyart@free.fr \
--cc=len.brown@intel.com \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rjw@sisk.pl \
--cc=torvalds@linux-foundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox