From owner-cvs-src@FreeBSD.ORG Fri Mar 5 14:28:36 2004 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 74B2B16A56A for ; Fri, 5 Mar 2004 14:28:34 -0800 (PST) Received: from mail1.speakeasy.net (mail1.speakeasy.net [216.254.0.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id 867A543D1F for ; Fri, 5 Mar 2004 14:28:34 -0800 (PST) (envelope-from jhb@FreeBSD.org) Received: (qmail 31067 invoked from network); 5 Mar 2004 22:28:34 -0000 Received: from dsl027-160-063.atl1.dsl.speakeasy.net (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) encrypted SMTP for ; 5 Mar 2004 22:28:34 -0000 Received: from 10.50.40.205 (gw1.twc.weather.com [216.133.140.1]) by server.baldwin.cx (8.12.10/8.12.10) with ESMTP id i25MS82H003080; Fri, 5 Mar 2004 17:28:30 -0500 (EST) (envelope-from jhb@FreeBSD.org) From: John Baldwin To: Nate Lawson Date: Fri, 5 Mar 2004 17:09:55 -0500 User-Agent: KMail/1.6 References: <200403050239.i252dI0u007320@sana.init-main.com> <20040304.201932.78712700.imp@bsdimp.com> <20040305101907.P30482@root.org> In-Reply-To: <20040305101907.P30482@root.org> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200403051709.55254.jhb@FreeBSD.org> X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on server.baldwin.cx cc: src-committers@freebsd.org cc: doconnor@gsoft.com.au cc: cvs-all@freebsd.org cc: cvs-src@freebsd.org cc: takawata@init-main.com cc: "M. Warner Losh" Subject: Re: cvs commit: src/usr.sbin/acpi/acpiconf acpiconf.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Mar 2004 22:28:37 -0000 On Friday 05 March 2004 01:24 pm, Nate Lawson wrote: > On Thu, 4 Mar 2004, M. Warner Losh wrote: > > In message: <200403051335.55836.doconnor@gsoft.com.au> > > > > "Daniel O'Connor" writes: > > : On Fri, 5 Mar 2004 13:09, Takanori Watanabe wrote: > > : > apm(8) information is only emulated apm status. > > : > The acpiconf -i informations are not available from apm(8) interface. > > : > > : acpiconf -i doesn't show stuff like battery percentage and estimated > > : run time though.. > > : > > : I have a program which does and I'm going to shoe horn it into acpiconf > > : and send diffs if I get some spare time :) > > : > > : It's seriously neat to see how many Watt's your laptop is using when > > : you fiddle with stuff :) > > > > I have hacked my acpiconf to print more battery information too. > > I think this is the wrong way to go. Instead of having N separate > utilities with their different syntax for N power management systems, we > should have one user interface for battery and thermal and the PM system > exports data in that defined format. My proposed plan is: > > * Unified sysctls for battery and thermal (hw.power.XXX) > * Make sure both acpi(4) and apm(4) export information through that > interface. > * Move apm(8) to use those sysctls. > * Remove any non-acpi-specific code from acpiconf(8) Have a 'battstat' command or some such. I thought about having /dev/battX devices to do ioctl's on for battery status. Since batteries really are devices, that might be better than sysctl. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org