Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-laptop
Navigation:
Lists: gentoo-laptop: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-laptop@g.o
From: Thomas Tuttle <tom@...>
Subject: Re: powermgr: Unified power management for Gentoo
Date: Wed, 27 Jul 2005 10:47:53 -0400
Okay, the best way to do that would be to (using powermgr) create a
profile named "hot" and then write your script like so:

#!/bin/pseudocode-interpreter
if (TEMP > $HOT) {
	echo "System is actually hot, slowing everything down.";
	powermgr --profile hot;
	sleep 5;
	if (TEMP > $HOT) {
		echo "System is about to explode, shutting down.";
		poweroff;
	} else {
		echo "System has cooled down, returning to normal."
		powermgr --auto;
	}
} else {
	echo "System is just being foolish and is not hot.";
}

The "hot" profile would probably look like this:

Profile hot
cpu frequency = 0%
EndProfile

That way it would slow down the CPU frequency without playing with other
stuff like brightness.

On Wed, 2005-07-27 at 10:33 -0400, Devon Miller wrote:
> Thanks Thomas, I'll definitely check it out. One feature I would like
> to see is the ability to throttle the cpu to manage temperature.
> 
> My laptop occasionally reports spurious high temperatures. Within 3
> polls the temperature might be reported as 70C, 97C, 70C. When the
> kernel sees the 97C it powers off the system.
> 
> I've hacked around this by patching the kernel to run /sbin/overheat
> instead of /sbin/poweroff. Overheat checks the temp again and if it's
> still hot, shuts down powernowd and sets the cpufreq to its minimum
> value It then sleeps for 5 seconds and if the temp is still 90C+,
> calls poweroff. 
> 
> The downside is the system is now left in a very slow state. I have
> not written something to bring it back to a dynamic clocking state. A
> daemon that would manage all of this would be really appreciated! (Of
> course, the kernel would still need to be patched to not poweroff
> until the daemon has had a chance to try cooling things down.)
> 
> <dcm>
> 
> 
> On 7/13/05, Thomas Tuttle <tom@...> wrote:
>         I've been working on a program called powermgr.  It's a daemon
>         written
>         in Perl that can control many power management functions on
>         Linux,
>         including CPU frequency and/or governor, screen brightness,
>         laptop mode,
>         fan speed, wireless power management, as well as runlevel and
>         services, 
>         based on the state of the system.
> 
Attachment:
signature.asc (This is a digitally signed message part)
Replies:
Re: powermgr: Unified power management for Gentoo
-- Fernando Meira
References:
powermgr: Unified power management for Gentoo
-- Thomas Tuttle
Re: powermgr: Unified power management for Gentoo
-- Devon Miller
Navigation:
Lists: gentoo-laptop: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: powermgr: Unified power management for Gentoo
Next by thread:
Re: powermgr: Unified power management for Gentoo
Previous by date:
Re: powermgr: Unified power management for Gentoo
Next by date:
Re: Toshiba A70 Restart Problem


Updated Jun 17, 2009

Summary: Archive of the gentoo-laptop mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.