From owner-freebsd-current@FreeBSD.ORG Mon Jul 6 08:18:47 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 6E9F01065673 for ; Mon, 6 Jul 2009 08:18:47 +0000 (UTC) (envelope-from phoemix@harmless.hu) Received: from marvin.harmless.hu (marvin.harmless.hu [195.56.55.204]) by mx1.freebsd.org (Postfix) with ESMTP id B649D8FC25 for ; Mon, 6 Jul 2009 08:18:45 +0000 (UTC) (envelope-from phoemix@harmless.hu) Received: from [217.150.130.134] (helo=unknown) by marvin.harmless.hu with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.69 (FreeBSD)) (envelope-from ) id 1MNjDA-000Kpy-FZ; Mon, 06 Jul 2009 10:06:04 +0200 Date: Mon, 6 Jul 2009 10:06:02 +0200 From: Gergely CZUCZY To: "Rene Schickbauer" Message-ID: <20090706100602.00003969@unknown> In-Reply-To: <18510.213.150.228.38.1246864978.squirrel@mail.magicbooks.org> References: <18510.213.150.228.38.1246864978.squirrel@mail.magicbooks.org> Organization: Harmless Digital Bt X-Mailer: Claws Mail 3.7.1 (GTK+ 2.16.0; i586-pc-mingw32msvc) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: Czuczy Gergely Cc: freebsd-current@freebsd.org 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: Mon, 06 Jul 2009 08:18:47 -0000 Hello, I think this is a very nice idea, especially the TFT backlight part. It also might be useful to adjust the WiFi transmit power level according to battery state. That can also save some power, especially on portables. On Mon, 6 Jul 2009 09:22:58 +0200 (CEST) "Rene Schickbauer" wrote: > Hi! > > Yesterday i submitted a patch for powerd to set maximum allowed CPU > speed for adaptive modes (to keep the system cool and using less > power). > > PR: 136354 > > 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. > > Another option that could make sense in powerd is checking the > battery state and running a user configureable script when ac-state > is set to battery and battery falls below a configured threshold. The > script could do a number of things like warning the user, scheduling > a shutdown and so on in order to give the user a fair chance to save > his/her work and do a clean shutdown (or just plugin the ac adapter). > > powerd currently only adjusts CPU speed, but having a *second* > programm monitor the same kernel variables to work on another part of > the same problem does not seem to make sense. > > BTW, i'm also thinking of having the option to have powerd log the > battery status (ac mode + load + charge level) every 5 Minutes or so > to syslog. That way, a second script (log parser) may be able to > determine information about the battery - like how long does it take > to charge, rough capacity estimation and possible degradation of > battery. > > Just throwing ideas... > > LLAP & LG > Rene -- Sincerely, Gergely CZUCZY Harmless Digital Bt +36-30-9702963