* Re: swsusp and suspend2 like to overheat my laptop
2006-08-09 11:45 ` Steven Rostedt
@ 2006-08-09 11:54 ` Nigel Cunningham
2006-08-09 11:58 ` Pavel Machek
` (2 subsequent siblings)
3 siblings, 0 replies; 30+ messages in thread
From: Nigel Cunningham @ 2006-08-09 11:54 UTC (permalink / raw)
To: Steven Rostedt; +Cc: linux-pm, Pavel Machek, LKML, Suspend2-devel
[-- Attachment #1.1: Type: text/plain, Size: 281 bytes --]
Hi Steven.
Have you tried building the ACPI modules as modules (if you're not already
doing so), and unloading them while suspending? If not, I'd give that a go.
Regards,
Nigel
--
See http://www.suspend2.net for Howtos, FAQs, mailing
lists, wiki and bugzilla info.
[-- Attachment #1.2: Type: application/pgp-signature, Size: 189 bytes --]
[-- Attachment #2: Type: text/plain, Size: 168 bytes --]
_______________________________________________
Suspend2-devel mailing list
Suspend2-devel@lists.suspend2.net
http://lists.suspend2.net/mailman/listinfo/suspend2-devel
^ permalink raw reply [flat|nested] 30+ messages in thread* Re: swsusp and suspend2 like to overheat my laptop
2006-08-09 11:45 ` Steven Rostedt
2006-08-09 11:54 ` Nigel Cunningham
@ 2006-08-09 11:58 ` Pavel Machek
2006-08-09 12:15 ` Rafael J. Wysocki
2006-08-09 13:35 ` Steven Rostedt
2006-08-09 12:04 ` Steven Rostedt
2006-08-09 12:07 ` Andreas Mohr
3 siblings, 2 replies; 30+ messages in thread
From: Pavel Machek @ 2006-08-09 11:58 UTC (permalink / raw)
To: Steven Rostedt; +Cc: linux-pm, LKML, Suspend2-devel, ncunningham
Hi!
> > Okay, can you try to leave it up for a week or two (no suspends, no
> > poweroffs) and see what happens?
>
> I've had this laptop running for a couple of months without shutting down
> and it doesn't have a problem. The only time that I do shut it down
Ok.
> > > > P4 has thermal protection, so you are actually safe.
> > >
> > > Yeah, but still, the keyboard gets pretty hot too, and I'm actually more
> > > worried about damaging something that is close by than damaging the CPU
> > > itself.
> >
> > If you damage something, machine was misdesigned in the first place.
>
> agreed, but you never know ;) This laptop is currently my lifeline :)
You'd have good reason to get new one.
> > cat we get contents of /proc/acpi/thermal*/*/* ?
>
> I'm running after a poweroff (left it running over night in the hotel, and
> I'm still in the hotel).
>
> $ grep . /proc/acpi/thermal_zone/THRM/*
> /proc/acpi/thermal_zone/THRM/cooling_mode:<setting not supported>
> /proc/acpi/thermal_zone/THRM/cooling_mode:cooling mode: passive
> /proc/acpi/thermal_zone/THRM/polling_frequency:<polling disabled>
> /proc/acpi/thermal_zone/THRM/state:state: ok
> /proc/acpi/thermal_zone/THRM/temperature:temperature: 48 C
> /proc/acpi/thermal_zone/THRM/trip_points:critical (S5): 88 C
> /proc/acpi/thermal_zone/THRM/trip_points:passive: 81 C: tc1=4 tc2=3 tsp=100 devices=0xcf6c2338
>
> Note thermal_zone/THRM was finished with bash tab completion so they are
> the only things that match the above glob expr.
Ok, so it is the bios doing temperature control up-to 81C. At 81C,
linux should start cooling it, and at 88C, linux should shutdown. At
little higher temperature, hardware should emergency shutdown.
> > How s2ram works would be useful info.
>
> No idea.
Well, try it :-). suspend.sf.net.
> It does look like something isn't setting up the ACPI power properly on
> resume, and that the CPU is probably in a busy loop while the machine is
> idle. Just a guess.
Fan is not controlled by ACPI. But we may be saving some memory we
should not save, or something like that.
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: swsusp and suspend2 like to overheat my laptop
2006-08-09 11:58 ` Pavel Machek
@ 2006-08-09 12:15 ` Rafael J. Wysocki
2006-08-09 13:16 ` Steven Rostedt
2006-08-09 13:35 ` Steven Rostedt
1 sibling, 1 reply; 30+ messages in thread
From: Rafael J. Wysocki @ 2006-08-09 12:15 UTC (permalink / raw)
To: Pavel Machek; +Cc: Steven Rostedt, LKML, Suspend2-devel, linux-pm, ncunningham
On Wednesday 09 August 2006 13:58, Pavel Machek wrote:
> Hi!
>
> > > Okay, can you try to leave it up for a week or two (no suspends, no
> > > poweroffs) and see what happens?
> >
> > I've had this laptop running for a couple of months without shutting down
> > and it doesn't have a problem. The only time that I do shut it down
>
> Ok.
>
> > > > > P4 has thermal protection, so you are actually safe.
> > > >
> > > > Yeah, but still, the keyboard gets pretty hot too, and I'm actually more
> > > > worried about damaging something that is close by than damaging the CPU
> > > > itself.
> > >
> > > If you damage something, machine was misdesigned in the first place.
> >
> > agreed, but you never know ;) This laptop is currently my lifeline :)
>
> You'd have good reason to get new one.
>
> > > cat we get contents of /proc/acpi/thermal*/*/* ?
> >
> > I'm running after a poweroff (left it running over night in the hotel, and
> > I'm still in the hotel).
> >
> > $ grep . /proc/acpi/thermal_zone/THRM/*
> > /proc/acpi/thermal_zone/THRM/cooling_mode:<setting not supported>
> > /proc/acpi/thermal_zone/THRM/cooling_mode:cooling mode: passive
> > /proc/acpi/thermal_zone/THRM/polling_frequency:<polling disabled>
> > /proc/acpi/thermal_zone/THRM/state:state: ok
> > /proc/acpi/thermal_zone/THRM/temperature:temperature: 48 C
> > /proc/acpi/thermal_zone/THRM/trip_points:critical (S5): 88 C
> > /proc/acpi/thermal_zone/THRM/trip_points:passive: 81 C: tc1=4 tc2=3 tsp=100 devices=0xcf6c2338
> >
> > Note thermal_zone/THRM was finished with bash tab completion so they are
> > the only things that match the above glob expr.
>
> Ok, so it is the bios doing temperature control up-to 81C. At 81C,
> linux should start cooling it, and at 88C, linux should shutdown. At
> little higher temperature, hardware should emergency shutdown.
>
> > > How s2ram works would be useful info.
> >
> > No idea.
>
> Well, try it :-). suspend.sf.net.
>
> > It does look like something isn't setting up the ACPI power properly on
> > resume, and that the CPU is probably in a busy loop while the machine is
> > idle. Just a guess.
>
> Fan is not controlled by ACPI. But we may be saving some memory we
> should not save, or something like that.
If it's a P4, we rather don't, because the ACPI tables should be above the
last pfn in the normal zone. Still, Steven please send your dmesg after a
fresh boot.
Rafael
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: swsusp and suspend2 like to overheat my laptop
2006-08-09 12:15 ` Rafael J. Wysocki
@ 2006-08-09 13:16 ` Steven Rostedt
2006-08-09 13:42 ` Andreas Mohr
2006-08-09 20:32 ` Rafael J. Wysocki
0 siblings, 2 replies; 30+ messages in thread
From: Steven Rostedt @ 2006-08-09 13:16 UTC (permalink / raw)
To: Rafael J. Wysocki
Cc: linux-pm, ncunningham, LKML, Pavel Machek, Suspend2-devel
[-- Attachment #1: Type: TEXT/PLAIN, Size: 272 bytes --]
On Wed, 9 Aug 2006, Rafael J. Wysocki wrote:
>
> If it's a P4, we rather don't, because the ACPI tables should be above the
> last pfn in the normal zone. Still, Steven please send your dmesg after a
> fresh boot.
>
Attached is a gzipped version of my dmesg.
-- Steve
[-- Attachment #2: Type: APPLICATION/octet-stream, Size: 7824 bytes --]
[-- Attachment #3: Type: text/plain, Size: 168 bytes --]
_______________________________________________
Suspend2-devel mailing list
Suspend2-devel@lists.suspend2.net
http://lists.suspend2.net/mailman/listinfo/suspend2-devel
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: swsusp and suspend2 like to overheat my laptop
2006-08-09 13:16 ` Steven Rostedt
@ 2006-08-09 13:42 ` Andreas Mohr
2006-08-09 20:32 ` Rafael J. Wysocki
1 sibling, 0 replies; 30+ messages in thread
From: Andreas Mohr @ 2006-08-09 13:42 UTC (permalink / raw)
To: Steven Rostedt
Cc: linux-pm, Suspend2-devel, LKML, Rafael J. Wysocki, Pavel Machek,
ncunningham
On Wed, Aug 09, 2006 at 09:16:30AM -0400, Steven Rostedt wrote:
>
> On Wed, 9 Aug 2006, Rafael J. Wysocki wrote:
>
> >
> > If it's a P4, we rather don't, because the ACPI tables should be above the
> > last pfn in the normal zone. Still, Steven please send your dmesg after a
> > fresh boot.
> >
>
> Attached is a gzipped version of my dmesg.
This one is fatal:
| ACPI: Found ECDT
| ACPI: Could not use ECDT
And you also have
| ACPI: Processor [CPU0] (supports 4 throttling states)
| ACPI: Processor [CPU1] (supports 4 throttling states)
(IOW, no C2/C3 states listed here)
The buggy ECDT table (see http://www.poupinou.org/acpi/ibm_ecdt.html)
is said to cause ACPI init to fail:
http://t2100cdt.kippona.net/tlinux/archive/linux.toshiba-dme.co.jp/ML/tlinux-users/4300/4396.html
as such it's not too astonishing that you don't have C2/C3 states, *always*
(pre-suspend and post-suspend).
However the machine should still do normal HLT idle loop which should
manage to keep it reasonably cool, right?
Given this ECDT table issue it's very possible that this is the reason for
Linux ACPI layer misbehaviour after resume.
Google "ACPI ECDT" might help, too.
In any case, you could do some kernel logging around pm_idle* in
drivers/acpi/processor_idle.c since I suspect that this is what changes
after resume to cause the idling to fail.
Andreas Mohr
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: swsusp and suspend2 like to overheat my laptop
2006-08-09 13:16 ` Steven Rostedt
2006-08-09 13:42 ` Andreas Mohr
@ 2006-08-09 20:32 ` Rafael J. Wysocki
1 sibling, 0 replies; 30+ messages in thread
From: Rafael J. Wysocki @ 2006-08-09 20:32 UTC (permalink / raw)
To: Steven Rostedt; +Cc: linux-pm, ncunningham, LKML, Pavel Machek, Suspend2-devel
On Wednesday 09 August 2006 15:16, Steven Rostedt wrote:
>
> On Wed, 9 Aug 2006, Rafael J. Wysocki wrote:
>
> >
> > If it's a P4, we rather don't, because the ACPI tables should be above the
> > last pfn in the normal zone. Still, Steven please send your dmesg after a
> > fresh boot.
> >
>
> Attached is a gzipped version of my dmesg.
Thanks.
I don't think we overwrite anything important from the hardware's perspective.
Rafael
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: swsusp and suspend2 like to overheat my laptop
2006-08-09 11:58 ` Pavel Machek
2006-08-09 12:15 ` Rafael J. Wysocki
@ 2006-08-09 13:35 ` Steven Rostedt
2006-08-09 13:37 ` Pavel Machek
2006-08-09 13:45 ` Brad Campbell
1 sibling, 2 replies; 30+ messages in thread
From: Steven Rostedt @ 2006-08-09 13:35 UTC (permalink / raw)
To: Pavel Machek; +Cc: linux-pm, LKML, Suspend2-devel, ncunningham
On Wed, 9 Aug 2006, Pavel Machek wrote:
>
> > > How s2ram works would be useful info.
> >
> > No idea.
>
> Well, try it :-). suspend.sf.net.
>
Debian testing has it installed already, so I tried that one.
# s2ram
Machine is unknown.
This machine can be identified by:
sys_vendor = "IBM"
sys_product = "288679U"
sys_version = "ThinkPad G41"
bios_version = "1XET44WW (1.03 )"
See http://en.opensuse.org/S2ram for details.
If you report a problem, please include the complete output above.
So then I tried s2ram -f
Well it went to sleep fine. But when I tried to wake it up again, the
screen didn't come back. I'm not sure if the keyboard was working either.
But I could eject the CD and when I put it back in, it seemed to mount it.
Oh well, I'll have to debug that another day ;)
-- Steve
^ permalink raw reply [flat|nested] 30+ messages in thread* Re: swsusp and suspend2 like to overheat my laptop
2006-08-09 13:35 ` Steven Rostedt
@ 2006-08-09 13:37 ` Pavel Machek
2006-08-09 13:45 ` Brad Campbell
1 sibling, 0 replies; 30+ messages in thread
From: Pavel Machek @ 2006-08-09 13:37 UTC (permalink / raw)
To: Steven Rostedt; +Cc: linux-pm, LKML, Suspend2-devel, ncunningham
On Wed 2006-08-09 09:35:31, Steven Rostedt wrote:
>
> On Wed, 9 Aug 2006, Pavel Machek wrote:
>
> >
> > > > How s2ram works would be useful info.
> > >
> > > No idea.
> >
> > Well, try it :-). suspend.sf.net.
> >
>
> Debian testing has it installed already, so I tried that one.
>
> # s2ram
> Machine is unknown.
> This machine can be identified by:
> sys_vendor = "IBM"
> sys_product = "288679U"
> sys_version = "ThinkPad G41"
> bios_version = "1XET44WW (1.03 )"
> See http://en.opensuse.org/S2ram for details.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> If you report a problem, please include the complete output above.
>
>
>
> So then I tried s2ram -f
>
> Well it went to sleep fine. But when I tried to wake it up again, the
> screen didn't come back. I'm not sure if the keyboard was working either.
> But I could eject the CD and when I put it back in, it seemed to mount it.
>
> Oh well, I'll have to debug that another day ;)
There's a very nice writeup... at underlined address.
you probably want -f -a 3 .
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
^ permalink raw reply [flat|nested] 30+ messages in thread* Re: Re: swsusp and suspend2 like to overheat my laptop
2006-08-09 13:35 ` Steven Rostedt
2006-08-09 13:37 ` Pavel Machek
@ 2006-08-09 13:45 ` Brad Campbell
1 sibling, 0 replies; 30+ messages in thread
From: Brad Campbell @ 2006-08-09 13:45 UTC (permalink / raw)
To: Steven Rostedt; +Cc: linux-pm, ncunningham, LKML, Pavel Machek, Suspend2-devel
Steven Rostedt wrote:
>
> Well it went to sleep fine. But when I tried to wake it up again, the
> screen didn't come back. I'm not sure if the keyboard was working either.
> But I could eject the CD and when I put it back in, it seemed to mount it.
>
Different laptop of course.. but good results can often be had with
s2ram -f -s
Running the full array of command line permutations can be somewhat tedious though. A good initramfs
and separate grub boot entry help there a great deal (no fsck if you lock it up).
Brad
--
"Human beings, who are almost unique in having the ability
to learn from the experience of others, are also remarkable
for their apparent disinclination to do so." -- Douglas Adams
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: swsusp and suspend2 like to overheat my laptop
2006-08-09 11:45 ` Steven Rostedt
2006-08-09 11:54 ` Nigel Cunningham
2006-08-09 11:58 ` Pavel Machek
@ 2006-08-09 12:04 ` Steven Rostedt
2006-08-09 12:08 ` Pavel Machek
2006-08-09 12:14 ` Steven Rostedt
2006-08-09 12:07 ` Andreas Mohr
3 siblings, 2 replies; 30+ messages in thread
From: Steven Rostedt @ 2006-08-09 12:04 UTC (permalink / raw)
To: Pavel Machek; +Cc: linux-pm, LKML, Suspend2-devel, ncunningham
On Wed, 9 Aug 2006, Steven Rostedt wrote:
> >
> > cat we get contents of /proc/acpi/thermal*/*/* ?
>
> I'm running after a poweroff (left it running over night in the hotel, and
> I'm still in the hotel).
>
> $ grep . /proc/acpi/thermal_zone/THRM/*
> /proc/acpi/thermal_zone/THRM/cooling_mode:<setting not supported>
> /proc/acpi/thermal_zone/THRM/cooling_mode:cooling mode: passive
> /proc/acpi/thermal_zone/THRM/polling_frequency:<polling disabled>
> /proc/acpi/thermal_zone/THRM/state:state: ok
> /proc/acpi/thermal_zone/THRM/temperature:temperature: 48 C
> /proc/acpi/thermal_zone/THRM/trip_points:critical (S5): 88 C
> /proc/acpi/thermal_zone/THRM/trip_points:passive: 81 C: tc1=4 tc2=3 tsp=100 devices=0xcf6c2338
>
> Note thermal_zone/THRM was finished with bash tab completion so they are
> the only things that match the above glob expr.
>
Note: I just did a swsusp and resume and here's the same data:
$ grep . /proc/acpi/thermal_zone/THRM/*
/proc/acpi/thermal_zone/THRM/cooling_mode:<setting not supported>
/proc/acpi/thermal_zone/THRM/cooling_mode:cooling mode: passive
/proc/acpi/thermal_zone/THRM/polling_frequency:<polling disabled>
/proc/acpi/thermal_zone/THRM/state:state: ok
/proc/acpi/thermal_zone/THRM/temperature:temperature: 60 C
/proc/acpi/thermal_zone/THRM/trip_points:critical (S5): 88 C
/proc/acpi/thermal_zone/THRM/trip_points:passive: 81 C: tc1=4 tc2=3 tsp=100 devices=0xcf6c2338
And just leaving my system idle for a few minutes:
$ grep . /proc/acpi/thermal_zone/THRM/temperature
temperature: 62 C
and a few more minutes:
temperature: 64 C
And a few more:
temperature: 66 C
right now after typing this:
temperature: 69 C
So this definitely shows somethings not letting the CPU rest.
-- Steve
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: swsusp and suspend2 like to overheat my laptop
2006-08-09 12:04 ` Steven Rostedt
@ 2006-08-09 12:08 ` Pavel Machek
2006-08-09 12:35 ` Steven Rostedt
2006-08-09 12:14 ` Steven Rostedt
1 sibling, 1 reply; 30+ messages in thread
From: Pavel Machek @ 2006-08-09 12:08 UTC (permalink / raw)
To: Steven Rostedt; +Cc: linux-pm, LKML, Suspend2-devel, ncunningham
Hi!
> > > cat we get contents of /proc/acpi/thermal*/*/* ?
> >
> > I'm running after a poweroff (left it running over night in the hotel, and
> > I'm still in the hotel).
> >
> > $ grep . /proc/acpi/thermal_zone/THRM/*
> > /proc/acpi/thermal_zone/THRM/cooling_mode:<setting not supported>
> > /proc/acpi/thermal_zone/THRM/cooling_mode:cooling mode: passive
> > /proc/acpi/thermal_zone/THRM/polling_frequency:<polling disabled>
> > /proc/acpi/thermal_zone/THRM/state:state: ok
> > /proc/acpi/thermal_zone/THRM/temperature:temperature: 48 C
> > /proc/acpi/thermal_zone/THRM/trip_points:critical (S5): 88 C
> > /proc/acpi/thermal_zone/THRM/trip_points:passive: 81 C: tc1=4 tc2=3 tsp=100 devices=0xcf6c2338
> >
> > Note thermal_zone/THRM was finished with bash tab completion so they are
> > the only things that match the above glob expr.
> >
>
> Note: I just did a swsusp and resume and here's the same data:
>
> $ grep . /proc/acpi/thermal_zone/THRM/*
> /proc/acpi/thermal_zone/THRM/cooling_mode:<setting not supported>
> /proc/acpi/thermal_zone/THRM/cooling_mode:cooling mode: passive
> /proc/acpi/thermal_zone/THRM/polling_frequency:<polling disabled>
> /proc/acpi/thermal_zone/THRM/state:state: ok
> /proc/acpi/thermal_zone/THRM/temperature:temperature: 60 C
> /proc/acpi/thermal_zone/THRM/trip_points:critical (S5): 88 C
> /proc/acpi/thermal_zone/THRM/trip_points:passive: 81 C: tc1=4 tc2=3 tsp=100 devices=0xcf6c2338
>
>
> And just leaving my system idle for a few minutes:
>
> $ grep . /proc/acpi/thermal_zone/THRM/temperature
> temperature: 62 C
>
> and a few more minutes:
>
> temperature: 64 C
>
>
> And a few more:
>
> temperature: 66 C
>
>
> right now after typing this:
>
> temperature: 69 C
>
>
> So this definitely shows somethings not letting the CPU rest.
Okay, run top to see what goes on, and look for
/proc/acpi/processor/*/* -- you are interested in C states before and
after suspend.
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: swsusp and suspend2 like to overheat my laptop
2006-08-09 12:08 ` Pavel Machek
@ 2006-08-09 12:35 ` Steven Rostedt
2006-08-09 12:58 ` Pavel Machek
0 siblings, 1 reply; 30+ messages in thread
From: Steven Rostedt @ 2006-08-09 12:35 UTC (permalink / raw)
To: Pavel Machek; +Cc: linux-pm, LKML, Suspend2-devel, ncunningham
On Wed, 9 Aug 2006, Pavel Machek wrote:
>
> Okay, run top to see what goes on, and look for
> /proc/acpi/processor/*/* -- you are interested in C states before and
> after suspend.
> Pavel
I don't quite understand. What am I looking for in top?
Here's the before and after:
before:
$ grep C /proc/acpi/processor/*/*
/proc/acpi/processor/CPU0/power:active state: C1
/proc/acpi/processor/CPU0/power:max_cstate: C8
/proc/acpi/processor/CPU0/power: *C1: type[C1]
promotion[--] demotion[--] latency[000] usage[00000000] duration[00000000000000000000]
/proc/acpi/processor/CPU1/power:active state: C1
/proc/acpi/processor/CPU1/power:max_cstate: C8
/proc/acpi/processor/CPU1/power: *C1: type[C1]
promotion[--] demotion[--] latency[000] usage[00000000] duration[00000000000000000000]
after:
grep C /proc/acpi/processor/*/*
/proc/acpi/processor/CPU0/power:active state: C1
/proc/acpi/processor/CPU0/power:max_cstate: C8
/proc/acpi/processor/CPU0/power: *C1: type[C1]
promotion[--] demotion[--] latency[000] usage[00000000] duration[00000000000000000000]
/proc/acpi/processor/CPU1/power:active
state: C1
/proc/acpi/processor/CPU1/power:max_cstate: C8
/proc/acpi/processor/CPU1/power: *C1: type[C1]
promotion[--] demotion[--] latency[000] usage[00000000] duration[00000000000000000000]
-- Steve
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: swsusp and suspend2 like to overheat my laptop
2006-08-09 12:35 ` Steven Rostedt
@ 2006-08-09 12:58 ` Pavel Machek
2006-08-11 0:14 ` Steven Rostedt
0 siblings, 1 reply; 30+ messages in thread
From: Pavel Machek @ 2006-08-09 12:58 UTC (permalink / raw)
To: Steven Rostedt; +Cc: linux-pm, LKML, Suspend2-devel, ncunningham
On Wed 2006-08-09 08:35:47, Steven Rostedt wrote:
>
> On Wed, 9 Aug 2006, Pavel Machek wrote:
>
> >
> > Okay, run top to see what goes on, and look for
> > /proc/acpi/processor/*/* -- you are interested in C states before and
> > after suspend.
>
> I don't quite understand. What am I looking for in top?
Some process that is running and eating 99% cpu when it should not be
running and doing anything?
Pavel
> Here's the before and after:
>
> before:
>
> $ grep C /proc/acpi/processor/*/*
> /proc/acpi/processor/CPU0/power:active state: C1
> /proc/acpi/processor/CPU0/power:max_cstate: C8
> /proc/acpi/processor/CPU0/power: *C1: type[C1]
> promotion[--] demotion[--] latency[000] usage[00000000] duration[00000000000000000000]
All zeros? Strange...
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: swsusp and suspend2 like to overheat my laptop
2006-08-09 12:04 ` Steven Rostedt
2006-08-09 12:08 ` Pavel Machek
@ 2006-08-09 12:14 ` Steven Rostedt
1 sibling, 0 replies; 30+ messages in thread
From: Steven Rostedt @ 2006-08-09 12:14 UTC (permalink / raw)
To: Pavel Machek; +Cc: linux-pm, LKML, Suspend2-devel, ncunningham
FYI
On Wed, 9 Aug 2006, Steven Rostedt wrote:
>
> Note: I just did a swsusp and resume and here's the same data:
>
> $ grep . /proc/acpi/thermal_zone/THRM/*
> /proc/acpi/thermal_zone/THRM/cooling_mode:<setting not supported>
> /proc/acpi/thermal_zone/THRM/cooling_mode:cooling mode: passive
> /proc/acpi/thermal_zone/THRM/polling_frequency:<polling disabled>
> /proc/acpi/thermal_zone/THRM/state:state: ok
> /proc/acpi/thermal_zone/THRM/temperature:temperature: 60 C
> /proc/acpi/thermal_zone/THRM/trip_points:critical (S5): 88 C
> /proc/acpi/thermal_zone/THRM/trip_points:passive: 81 C: tc1=4 tc2=3 tsp=100 devices=0xcf6c2338
>
>
> And just leaving my system idle for a few minutes:
>
> $ grep . /proc/acpi/thermal_zone/THRM/temperature
> temperature: 62 C
>
> and a few more minutes:
>
> temperature: 64 C
>
>
> And a few more:
>
> temperature: 66 C
>
>
> right now after typing this:
>
> temperature: 69 C
>
>
I just did a soft reboot and right afterwards I get:
$ cat /proc/acpi/thermal_zone/THRM/temperature
temperature: 63 C
waited a few seconds:
temperature: 62 C
After a few minutes (while connecting back home):
temperature: 58 C
And right now:
temperature: 56 C
So it is going the opposite direction after a soft reboot.
-- Steve
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: swsusp and suspend2 like to overheat my laptop
2006-08-09 11:45 ` Steven Rostedt
` (2 preceding siblings ...)
2006-08-09 12:04 ` Steven Rostedt
@ 2006-08-09 12:07 ` Andreas Mohr
2006-08-09 12:38 ` Steven Rostedt
3 siblings, 1 reply; 30+ messages in thread
From: Andreas Mohr @ 2006-08-09 12:07 UTC (permalink / raw)
To: Steven Rostedt; +Cc: Pavel Machek, LKML, Suspend2-devel, linux-pm, ncunningham
On Wed, Aug 09, 2006 at 07:45:23AM -0400, Steven Rostedt wrote:
> It does look like something isn't setting up the ACPI power properly on
> resume, and that the CPU is probably in a busy loop while the machine is
> idle. Just a guess.
In that case could you post
cat /proc/acpi/processor/CPU?/*
?
Perhaps we're losing ACPI C2/C3 state power saving, and checking
the busmaster activity indicators there would be useful, too.
Oh, in this context maybe it's actually a problem of a misbehaving driver?
An active USB mouse is known to distort ACPI power saving, causing reduced
notebook battery operation length (due to busmaster activity preventing
ACPI idling, I think). Now what if some certain driver actually caused
permanent busmaster activity...?
Andreas Mohr
^ permalink raw reply [flat|nested] 30+ messages in thread* Re: swsusp and suspend2 like to overheat my laptop
2006-08-09 12:07 ` Andreas Mohr
@ 2006-08-09 12:38 ` Steven Rostedt
2006-08-09 13:03 ` Andreas Mohr
0 siblings, 1 reply; 30+ messages in thread
From: Steven Rostedt @ 2006-08-09 12:38 UTC (permalink / raw)
To: Andreas Mohr; +Cc: linux-pm, Pavel Machek, LKML, Suspend2-devel, ncunningham
On Wed, 9 Aug 2006, Andreas Mohr wrote:
> On Wed, Aug 09, 2006 at 07:45:23AM -0400, Steven Rostedt wrote:
> > It does look like something isn't setting up the ACPI power properly on
> > resume, and that the CPU is probably in a busy loop while the machine is
> > idle. Just a guess.
>
> In that case could you post
> cat /proc/acpi/processor/CPU?/*
> ?
This is after a suspend:
$ cat /proc/acpi/processor/CPU*/*
processor id: 0
acpi id: 0
bus mastering control: yes
power management: no
throttling control: yes
limit interface: yes
active limit: P0:T0
user limit: P0:T0
thermal limit: P0:T0
active state: C1
max_cstate: C8
bus master activity: 00000000
states:
*C1: type[C1] promotion[--] demotion[--] latency[000]
usage[00000000] duration[00000000000000000000]
state count: 4
active state: T0
states:
*T0: 00%
T1: 25%
T2: 50%
T3: 75%
processor id: 1
acpi id: 1
bus mastering control: yes
power management: no
throttling control: yes
limit interface: yes
active limit: P0:T0
user limit: P0:T0
thermal limit: P0:T0
active state: C1
max_cstate: C8
bus master activity: 00000000
states:
*C1: type[C1] promotion[--] demotion[--] latency[000]
usage[00000000] duration[00000000000000000000]
state count: 4
active state: T0
states:
*T0: 00%
T1: 25%
T2: 50%
T3: 75%
>
> Perhaps we're losing ACPI C2/C3 state power saving, and checking
> the busmaster activity indicators there would be useful, too.
>
> Oh, in this context maybe it's actually a problem of a misbehaving driver?
> An active USB mouse is known to distort ACPI power saving, causing reduced
> notebook battery operation length (due to busmaster activity preventing
> ACPI idling, I think). Now what if some certain driver actually caused
> permanent busmaster activity...?
I unplug everything before doing a suspend. Right now I'm leaving the
network connected so I don't need to go throught the connection process
again.
Got to leave the hotel now, eat breakfast and go to work ;)
-- Steve
^ permalink raw reply [flat|nested] 30+ messages in thread* Re: swsusp and suspend2 like to overheat my laptop
2006-08-09 12:38 ` Steven Rostedt
@ 2006-08-09 13:03 ` Andreas Mohr
0 siblings, 0 replies; 30+ messages in thread
From: Andreas Mohr @ 2006-08-09 13:03 UTC (permalink / raw)
To: Steven Rostedt; +Cc: Pavel Machek, LKML, Suspend2-devel, linux-pm, ncunningham
Hi,
On Wed, Aug 09, 2006 at 08:38:27AM -0400, Steven Rostedt wrote:
> This is after a suspend:
>
> $ cat /proc/acpi/processor/CPU*/*
> processor id: 0
> acpi id: 0
> bus mastering control: yes
> power management: no
> throttling control: yes
> limit interface: yes
> active limit: P0:T0
> user limit: P0:T0
> thermal limit: P0:T0
> active state: C1
> max_cstate: C8
> bus master activity: 00000000
> states:
> *C1: type[C1] promotion[--] demotion[--] latency[000]
> usage[00000000] duration[00000000000000000000]
> state count: 4
> active state: T0
> states:
> *T0: 00%
> T1: 25%
> T2: 50%
> T3: 75%
This is almost *exactly* the same as on my very cheap'n stupid HP/Compaq
desktop P4 HT which doesn't support ACPI C2/C3 at all despite proper support
by other P4 HT desktop machines (missing _CST ACPI object in the DSDT,
as confirmed after messing with Intel's DSDT decompiler):
# cat /proc/acpi/processor/CPU?/*
processor id: 0
acpi id: 1
bus mastering control: no
power management: no
throttling control: yes
limit interface: yes
active limit: P0:T0
user limit: P0:T0
thermal limit: P0:T0
active state: C1
max_cstate: C8
bus master activity: 00000000
states:
*C1: type[C1] promotion[--] demotion[--] latency[000] usage[00000000] duration[00000000000000000000]
state count: 8
active state: T0
states:
*T0: 00%
T1: 12%
T2: 25%
T3: 37%
T4: 50%
T5: 62%
T6: 75%
T7: 87%
Note that
max_cstate: C8
can be considered a bug (this is a C state init value from an ACPI define
mistakenly left unchanged in case of missing _CST) since I thus only have C1
and it should thus be set to C1.
What would be interesting is this output *before* any suspend, not after ;)
Oh, and your temperature after boot goes backwards since booting is a very
active period, obviously.
Andreas
^ permalink raw reply [flat|nested] 30+ messages in thread