From owner-freebsd-acpi@FreeBSD.ORG Thu Feb 7 15:51:18 2008 Return-Path: Delivered-To: acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 52BFB16A418 for ; Thu, 7 Feb 2008 15:51:18 +0000 (UTC) (envelope-from ume@mahoroba.org) Received: from ameno.mahoroba.org (ent.mahoroba.org [IPv6:2001:2f0:104:8010::1]) by mx1.freebsd.org (Postfix) with ESMTP id 9202613C465 for ; Thu, 7 Feb 2008 15:51:16 +0000 (UTC) (envelope-from ume@mahoroba.org) Received: from kasuga.mahoroba.org (IDENT:u6FwuCF0EhRVdKbdPAsXh57WVOnLvo6G/ApbYzCMLVM0Z7V7I56jJ5qziF/h9BPz@[IPv6:2001:200:161:1cf0:212:f0ff:fe52:6ac]) (user=ume mech=CRAM-MD5 bits=0) by ameno.mahoroba.org (8.13.8/8.13.8) with ESMTP/inet6 id m17Fp6p0083378 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 8 Feb 2008 00:51:07 +0900 (JST) (envelope-from ume@mahoroba.org) Date: Fri, 08 Feb 2008 00:50:54 +0900 Message-ID: From: Hajimu UMEMOTO To: "Alexandre \"Sunny\" Kovalenko" In-Reply-To: <1201733779.902.18.camel@RabbitsDen> References: <1201733779.902.18.camel@RabbitsDen> User-Agent: xcite1.57> Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (=?ISO-8859-4?Q?Shij=F2?=) APEL/10.7 Emacs/22.1 (i386-pc-freebsd) MULE/5.0 (SAKAKI) X-Operating-System: FreeBSD 6.3-RELEASE X-PGP-Key: http://www.imasy.or.jp/~ume/publickey.asc X-PGP-Fingerprint: 1F00 0B9E 2164 70FC 6DC5 BF5F 04E9 F086 BF90 71FE Organization: Internet Mutual Aid Society, YOKOHAMA MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-3.0 (ameno.mahoroba.org [IPv6:2001:2f0:104:8010::1]); Fri, 08 Feb 2008 00:51:07 +0900 (JST) X-Virus-Scanned: by amavisd-new X-Virus-Status: Clean X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.4 X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on ameno.mahoroba.org Cc: acpi@freebsd.org Subject: Re: [RFC] Patch to enable temperature ceiling in powerd X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Feb 2008 15:51:18 -0000 Hi, >>>>> On Wed, 30 Jan 2008 17:56:19 -0500 >>>>> "Alexandre \"Sunny\" Kovalenko" said: alex.kovalenko> Some time ago I have put together patch for powerd, which allows user to alex.kovalenko> specify the temperature threshold at which powerd will lower CPU alex.kovalenko> frequency no matter what the load was at the time. I recently had to alex.kovalenko> adapt it to the 7.0-PRERELEASE for someone with the overheating laptop, alex.kovalenko> which got me to think that it might be useful for someone else yet. alex.kovalenko> Basic idea is fairly simple -- check temperature in TZ0 and, if it has alex.kovalenko> reached certain value, either override frequency with the lowest alex.kovalenko> available (in the case of 'max' setting) or change idle time to 100% and alex.kovalenko> let adaptive algorithm decrease frequency gradually. alex.kovalenko> I imagine it also could be poor man's substitute for the low noise alex.kovalenko> acoustic policy ;) alex.kovalenko> If there is an interest, I will go ahead and submit a PR, otherwise it alex.kovalenko> will live in the mail archives for someone to find. Any comments, alex.kovalenko> suggestions or criticisms are welcome. alex.kovalenko> Temperature threshold (in Celsius) could be set by means of '-T' command alex.kovalenko> line option (as in '-T 60'). Our kernel has passive cooling feature, already. Is it not enough for you? Sincerely, -- Hajimu UMEMOTO @ Internet Mutual Aid Society Yokohama, Japan ume@mahoroba.org ume@{,jp.}FreeBSD.org http://www.imasy.org/~ume/