From owner-freebsd-current@FreeBSD.ORG Thu Jan 17 10:15:11 2008 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 A361316A417; Thu, 17 Jan 2008 10:15:11 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (tim.des.no [194.63.250.121]) by mx1.freebsd.org (Postfix) with ESMTP id 5A63913C468; Thu, 17 Jan 2008 10:15:11 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (localhost [127.0.0.1]) by spam.des.no (Postfix) with ESMTP id E46C12087; Thu, 17 Jan 2008 11:15:02 +0100 (CET) X-Spam-Tests: AWL X-Spam-Learn: disabled X-Spam-Score: -0.2/3.0 X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on tim.des.no Received: from ds4.des.no (des.no [80.203.243.180]) by smtp.des.no (Postfix) with ESMTP id 4A4742086; Thu, 17 Jan 2008 11:15:02 +0100 (CET) Received: by ds4.des.no (Postfix, from userid 1001) id 3AD648449D; Thu, 17 Jan 2008 11:15:02 +0100 (CET) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: "Daniel O'Connor" References: <478930D2.90806@digifonica.com> <200801171115.43663.doconnor@gsoft.com.au> Date: Thu, 17 Jan 2008 11:15:02 +0100 In-Reply-To: <200801171115.43663.doconnor@gsoft.com.au> (Daniel O'Connor's message of "Thu\, 17 Jan 2008 11\:15\:35 +1030") Message-ID: <86myr4n4gp.fsf@ds4.des.no> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.1 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: njl@freebsd.org, bruno@freebsd.org, Stefan Lambrev , freebsd-current@freebsd.org, Igor Mozolevsky , Maxim Sobolev Subject: Re: powerd adaptive mode latching 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: Thu, 17 Jan 2008 10:15:11 -0000 "Daniel O'Connor" writes: > One problem with it is that it lags behind actual usage by a few > seconds (presumably averaging it). It is based on the (didle/dt) / (dtotal/dt) fraction computed from kern.cp_time, which can take a while to ramp up. This is not easily seen in a cursory reading of the code, as the fraction is computed in a very roundabout way. > Turning the LCD off saves about 4W too. Hmm, it would be interesting to experiment with varying backlight brightness based on system load :) DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no