From owner-freebsd-current@FreeBSD.ORG Tue Jul 7 03:58:43 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 D73E3106564A for ; Tue, 7 Jul 2009 03:58:43 +0000 (UTC) (envelope-from aragon@phat.za.net) Received: from mail.geek.sh (decoder.geek.sh [196.36.198.81]) by mx1.freebsd.org (Postfix) with ESMTP id 74CC98FC15 for ; Tue, 7 Jul 2009 03:58:43 +0000 (UTC) (envelope-from aragon@phat.za.net) Received: from fuzz.geek.sh (unknown [196.209.244.147]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.geek.sh (Postfix) with ESMTPSA id 370313A6A5; Tue, 7 Jul 2009 05:58:41 +0200 (SAST) Message-ID: <4A52C7E3.4000304@phat.za.net> Date: Tue, 07 Jul 2009 05:58:27 +0200 From: Aragon Gouveia User-Agent: Thunderbird 2.0.0.22 (X11/20090628) MIME-Version: 1.0 To: Erich Dollansky References: <18510.213.150.228.38.1246864978.squirrel@mail.magicbooks.org> <200907070815.34876.erich@apsara.com.sg> In-Reply-To: <200907070815.34876.erich@apsara.com.sg> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org, 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 03:58:44 -0000 Erich Dollansky wrote: > 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. Can you think of a better example? LCD dimming can already by handled by Xorg's DPMS. And LCD dimming and CPU usage are not directly related. If I walk away from a port compiling, I don't want powerd to keep my LCD on because the CPU is at 100%. > powerd's main idea is to save energy. Allowing a second program to > parse through a file is not what will save energy. Neither will constant spawning of new processes. JMHO. Regards, Aragon