From owner-freebsd-acpi@FreeBSD.ORG Fri Feb 8 01:48:19 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 ECF1416A419; Fri, 8 Feb 2008 01:48:19 +0000 (UTC) (envelope-from alex.kovalenko@verizon.net) Received: from vms044pub.verizon.net (vms044pub.verizon.net [206.46.252.44]) by mx1.freebsd.org (Postfix) with ESMTP id D460D13C457; Fri, 8 Feb 2008 01:48:19 +0000 (UTC) (envelope-from alex.kovalenko@verizon.net) Received: from [10.0.3.231] ([70.111.176.151]) by vms044.mailsrvcs.net (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPA id <0JVW00HRPD086070@vms044.mailsrvcs.net>; Thu, 07 Feb 2008 19:48:09 -0600 (CST) Date: Thu, 07 Feb 2008 20:47:56 -0500 From: "Alexandre \"Sunny\" Kovalenko" In-reply-to: To: Hajimu UMEMOTO Message-id: <1202435276.1157.90.camel@RabbitsDen> MIME-version: 1.0 X-Mailer: Evolution 2.12.3 FreeBSD GNOME Team Port Content-type: text/plain; charset=utf-8 Content-transfer-encoding: 8BIT References: <1201733779.902.18.camel@RabbitsDen> 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: Fri, 08 Feb 2008 01:48:20 -0000 On Fri, 2008-02-08 at 00:50 +0900, Hajimu UMEMOTO wrote: > 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? I must have missed it somehow, if you could, please, point me in the right direction I will really appreciate it. > > Sincerely, > > -- > Hajimu UMEMOTO @ Internet Mutual Aid Society Yokohama, Japan > ume@mahoroba.org ume@{,jp.}FreeBSD.org > http://www.imasy.org/~ume/ -- Alexandre "Sunny" Kovalenko (Олександр Коваленко)