From owner-freebsd-current@FreeBSD.ORG Tue Jul 7 02:15:44 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B8F5010656A3 for ; Tue, 7 Jul 2009 02:15:44 +0000 (UTC) (envelope-from erich@apsara.com.sg) Received: from babylon.webvis.net (babylon.webvis.net [202.157.163.226]) by mx1.freebsd.org (Postfix) with ESMTP id 192CF8FC19 for ; Tue, 7 Jul 2009 02:15:41 +0000 (UTC) (envelope-from erich@apsara.com.sg) Received: from [10.0.1.240] ([119.73.191.194]) by apsara.com.sg ; Tue, 07 Jul 2009 08:15:38 +0800 SGT From: Erich Dollansky Organization: apsara green technology pte ltd To: freebsd-current@freebsd.org Date: Tue, 7 Jul 2009 08:15:32 +0800 User-Agent: KMail/1.9.10 References: <18510.213.150.228.38.1246864978.squirrel@mail.magicbooks.org> In-Reply-To: <18510.213.150.228.38.1246864978.squirrel@mail.magicbooks.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200907070815.34876.erich@apsara.com.sg> X-Mailman-Approved-At: Tue, 07 Jul 2009 02:34:49 +0000 Cc: Rene Schickbauer Subject: Re: RFC: powerd Patch & proposed future changes X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Jul 2009 02:16:00 -0000 Hi, On 06 July 2009 pm 15:22:58 Rene Schickbauer wrote: > > Would it also make sense to have powerd run an (optional) user > configureable script on ac state change? I'm thinking about > things like dimming TFT backlight, on EEE PC turning of the > webcam and so on. > I did some work on powerd to regulate the speed better but never finished it. Let me share my experience. Yes, it makes sense that powerd is enabled to run external programs triggered by events powerd has to monitor. I would not limit it to AC/DC changes. powerd could also run external programs when falling below a certain speed and coming back above a certain speed again. This would allow also to dim the LCD when less power is used because notbody is using the screen. It might will not make sense for most uses but for some. powerd's main idea is to save energy. Allowing a second program to parse through a file is not what will save energy. Erich