From owner-freebsd-current@FreeBSD.ORG Mon Jul 6 08:56:19 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 DDACB10656E0 for ; Mon, 6 Jul 2009 08:56:19 +0000 (UTC) (envelope-from cavac@magicbooks.org) Received: from magic3.magicbooks.org (cl-190.dus-01.de.sixxs.net [IPv6:2a01:198:200:bd::2]) by mx1.freebsd.org (Postfix) with ESMTP id 1AF448FC1A for ; Mon, 6 Jul 2009 08:56:18 +0000 (UTC) (envelope-from cavac@magicbooks.org) Received: from mail.magicbooks.org (localhost [127.0.0.1]) by magic3.magicbooks.org (8.14.3/8.14.3) with ESMTP id n668uH5B071105; Mon, 6 Jul 2009 10:56:17 +0200 (CEST) (envelope-from cavac@magicbooks.org) Received: from 213.150.228.38 (SquirrelMail authenticated user cavac) by mail.magicbooks.org with HTTP; Mon, 6 Jul 2009 10:56:17 +0200 (CEST) Message-ID: <12908.213.150.228.38.1246870577.squirrel@mail.magicbooks.org> In-Reply-To: <20090706100602.00003969@unknown> References: <18510.213.150.228.38.1246864978.squirrel@mail.magicbooks.org> <20090706100602.00003969@unknown> Date: Mon, 6 Jul 2009 10:56:17 +0200 (CEST) From: "Rene Schickbauer" To: "Gergely CZUCZY" User-Agent: SquirrelMail/1.4.6 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal 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:56:20 -0000 Hi! > 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. Yes, changing the transmit power would be possible. Although adjusting the transmit power via script on a *mobile* computer is likely to get the user offline rather quickly. On the other hand, powerd would just run a script. This script could start a user-written daemon to continually adjust power level.. and when ac is plugged in again, the script kills that daemon. I sincerely doubt that would save you any amount of power worth mentioning, though but may give you additional troubles. But maybe you could restrict an a/b/g card to b/g or a and thus save some power. Some laptops let you power down the normal (cabled) network adapter. When your out of reach for AC power, you're very unlikely lugging a network cable around the building. Also, you may power down/unload inbuild audio, webcam, bluetooth, modem, serial port etc. If you're desperate, disallowing CDROM and SWAP operation may save you a ton of power, too. As i said, with user scripting triggered by powerd state changes, you could get *really* creative (like temporarly halting any mencoder and ffmpeg process while on battery power ;-). LLAP & LG Rene Schickbauer -- Hackerkey: http://tinyurl.com/pof37z