From owner-cvs-all@FreeBSD.ORG Thu May 6 01:44:53 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5516416A4CE for ; Thu, 6 May 2004 01:44:53 -0700 (PDT) Received: from relay.pair.com (relay.pair.com [209.68.1.20]) by mx1.FreeBSD.org (Postfix) with SMTP id 9C4DB43D45 for ; Thu, 6 May 2004 01:44:52 -0700 (PDT) (envelope-from silby@silby.com) Received: (qmail 74011 invoked from network); 6 May 2004 08:44:51 -0000 Received: from niwun.pair.com (HELO localhost) (209.68.2.70) by relay.pair.com with SMTP; 6 May 2004 08:44:51 -0000 X-pair-Authenticated: 209.68.2.70 Date: Thu, 6 May 2004 03:44:49 -0500 (CDT) From: Mike Silbersack To: Nate Lawson In-Reply-To: <20040506011323.C39605@root.org> Message-ID: <20040506034307.M811@odysseus.silby.com> References: <200405052004.i45K4EnF029671@repoman.freebsd.org> <20040505171634.N37631@root.org> <20040506025051.V630@odysseus.silby.com> <20040506011323.C39605@root.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: cvs-src@FreeBSD.org cc: src-committers@FreeBSD.org cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/dev/acpica/Osd OsdSynch.csrc/sys/i386/include acpica_machdep.h src/sys/ia64/include acpica_machdep.h src/sys/amd64/include acpica_machdep.h X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 May 2004 08:44:53 -0000 On Thu, 6 May 2004, Nate Lawson wrote: > > Does devd receive lid status events? I'm thinking that it would be > > advantageous for my battery life if I could throttle the cpu down whenever > > the lid is closed. > > cat /etc/devd.conf: > # Examples of notify hooks. A notify is a generic way for a kernel > # subsystem to send event notification to userland. > > If you want to change CPU idle states and/or throttling on AC line > transition, see the appropriate values in /etc/rc.conf. But for one-offs > like lid to control CPU, using devd.conf and a small script is the way to > go. > > -Nate Good deal, it works as avertised. I even learned a bit of shell scripting in the process of writing a simple speed switching script. :) Of course, the real question is whether or not it'll actually help battery life at all; this is a mobile celeron, I suspect that I won't have much of an impact. Ah well. Mike "Silby" Silbersack