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: Fernando Meira <fmeira@...>
Subject: Re: powermgr: Unified power management for Gentoo
Date: Sun, 7 Aug 2005 12:12:18 +0000
Hi,<br>
Is there any documentation on how to use powermgr?<br><br><div><span class="gmail_quote">On 7/27/05, <b class="gmail_sendername">Thomas Tuttle</b> &lt;<a href="mailto:tom@...">tom@...
</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Okay, the best way to do that would be to (using powermgr) create a<br>
profile named &quot;hot&quot; and then write your script like so:<br><br>#!/bin/pseudocode-interpreter<br>if (TEMP &gt; $HOT) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo &quot;System is actually hot, slowing everything down.&quot;;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;powermgr --profile hot;
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sleep 5;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (TEMP &gt; $HOT) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo
&quot;System is about to explode, shutting down.&quot;;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;poweroff;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} else {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo
&quot;System has cooled down, returning to normal.&quot;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;powermgr --auto;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br>} else {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo &quot;System is just being foolish and is not hot.&quot;;<br>}<br><br>The &quot;hot&quot; profile would probably look like this:
<br><br>Profile hot<br>cpu frequency = 0%<br>EndProfile<br><br>That way it would slow down the CPU frequency without playing with other<br>stuff like brightness.<br><br>On Wed, 2005-07-27 at 10:33 -0400, Devon Miller wrote:
<br>&gt; Thanks Thomas, I'll definitely check it out. One feature I would like<br>&gt; to see is the ability to throttle the cpu to manage temperature.<br>&gt;<br>&gt; My laptop occasionally reports spurious high temperatures. Within 3
<br>&gt; polls the temperature might be reported as 70C, 97C, 70C. When the<br>&gt; kernel sees the 97C it powers off the system.<br>&gt;<br>&gt; I've hacked around this by patching the kernel to run /sbin/overheat<br>&gt; instead of /sbin/poweroff. Overheat checks the temp again and if it's
<br>&gt; still hot, shuts down powernowd and sets the cpufreq to its minimum<br>&gt; value It then sleeps for 5 seconds and if the temp is still 90C+,<br>&gt; calls poweroff.<br>&gt;<br>&gt; The downside is the system is now left in a very slow state. I have
<br>&gt; not written something to bring it back to a dynamic clocking state. A<br>&gt; daemon that would manage all of this would be really appreciated! (Of<br>&gt; course, the kernel would still need to be patched to not poweroff
<br>&gt; until the daemon has had a chance to try cooling things down.)<br>&gt;<br>&gt; &lt;dcm&gt;<br>&gt;<br>&gt;<br>&gt; On 7/13/05, Thomas Tuttle &lt;<a href="mailto:tom@...">tom@...
</a>&gt; wrote:<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I've been working on a program called powermgr.&nbsp;&nbsp;It's a daemon<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; written<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; in Perl that can control many power management functions on<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Linux,<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; including CPU frequency and/or governor, screen brightness,<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; laptop mode,<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fan speed, wireless power management, as well as runlevel and<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; services,<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; based on the state of the system.
<br>&gt;<br><br><br>-----BEGIN PGP SIGNATURE-----<br>Version: GnuPG v1.4.1-ecc0.1.6 (GNU/Linux)<br><br>iD8DBQBC556Z/UG6u69REsYRAo8qAJ9w8ab8s183nvc3cN/AXh1tqeUt3wCfYSUT<br>fu3lk34QqS3XwoUdpQtK48U=<br>=/Lqt<br>-----END PGP SIGNATURE-----
<br><br><br></blockquote></div><br>
References:
powermgr: Unified power management for Gentoo
-- Thomas Tuttle
Re: powermgr: Unified power management for Gentoo
-- Devon Miller
Re: powermgr: Unified power management for Gentoo
-- Thomas Tuttle
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:
[Fwd: Re: [gentoo-user] Re: My laptop is freaking me out.]
Previous by date:
Toshiba Satellite A70 Question
Next by date:
Re: Toshiba Satellite A70 Question


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.