From owner-freebsd-current@FreeBSD.ORG Fri Jul 29 06:14:41 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E4B0216A41F for ; Fri, 29 Jul 2005 06:14:41 +0000 (GMT) (envelope-from minimarmot@gmail.com) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3A9C843D48 for ; Fri, 29 Jul 2005 06:14:41 +0000 (GMT) (envelope-from minimarmot@gmail.com) Received: by wproxy.gmail.com with SMTP id i4so558176wra for ; Thu, 28 Jul 2005 23:14:40 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=TX13HHU/Q8AVyouJkcEyVfICuy7n5scRI+hXiXfsNRM3m8BRQfAQII4xlu2sCtEaJmppwr1c/8uPJdh5te1NS9IMeQhtnhLafMGq1nFPy4Q+sjz9Y6WaX5WfW4NHyqjyujqZP5yfCEqMNzOTyGJCqxEVLrKvbc0JpyVyxKih5Jw= Received: by 10.54.129.7 with SMTP id b7mr1129307wrd; Thu, 28 Jul 2005 23:14:40 -0700 (PDT) Received: by 10.54.44.33 with HTTP; Thu, 28 Jul 2005 23:14:40 -0700 (PDT) Message-ID: <47d0403c050728231474826d5@mail.gmail.com> Date: Fri, 29 Jul 2005 06:14:40 +0000 From: Ben Kaduk To: freebsd-current@freebsd.org In-Reply-To: <47d0403c050728231367f52d3b@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <47d0403c05072817251d3c965a@mail.gmail.com> <42E99222.8090406@centtech.com> <47d0403c050728231367f52d3b@mail.gmail.com> Subject: Re: hw.acpi.battery.time reports inconsistent values X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Ben Kaduk List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Jul 2005 06:14:42 -0000 On 7/29/05, Eric Anderson wrote: > Ben Kaduk wrote: > > Hi all -- I don't know whether or not this is related to the recent > > battery rework, but I'm running > > prolepsis# uname -a > > FreeBSD prolepsis.math.uiuc.edu 7.0-CURRENT FreeBSD 7.0-CURRENT #5: > > Thu Jul 28 07:42:25 UTC 2005 > > kaduk@prolepsis.math.uiuc.edu:/usr/obj/usr/src/sys/PROLEPSIS i386 > > and this afternoon I had my laptop running off its battery (basically > > as a jukebox), which is somewhat unusual since normally I plug it in. > > I wanted to see how > > fast I was draining the battery, so I did some `sysctl > > hw.acpi.battery'-ing (see transcript below), and then proceeded to get > > very confused. > > > > Is there a known race in this sysctl code, or should I be looking for > > something else (like a broken acpi)? > > Re-cvsup and rebuild - Nate Lawson committed a fix for this today, after > your build that fixed me up. > > Eric > > > > > -- > ------------------------------------------------------------------------ > Eric Anderson Sr. Systems Administrator Centaur Technology > Anything that works is better than anything that doesn't. > ------------------------------------------------------------------------ > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org= " > Thanks for the pointer, Eric -- I probably read the commit message as I was compiling! I rebuild (with NOCLEAN) world, and there seems to be a difference, in that I'm no longer getting insane values for hw.acpi.battery.time, but I'm not entirely sure that it's fully fixed -- its behaviour over time is not particularly monotone, but as I mentioned earlier, I don't often run this machine off the battery, so I don't know if this behaviour is normal: bash-2.05b$ sysctl hw.acpi.battery hw.acpi.battery.life: 99 hw.acpi.battery.time: -1 hw.acpi.battery.state: 0 hw.acpi.battery.units: 2 hw.acpi.battery.info_expire: 5 bash-2.05b$ sysctl hw.acpi.battery hw.acpi.battery.life: 99 hw.acpi.battery.time: -1 hw.acpi.battery.state: 0 hw.acpi.battery.units: 2 hw.acpi.battery.info_expire: 5 bash-2.05b$ sysctl hw.acpi.battery hw.acpi.battery.life: 99 hw.acpi.battery.time: -1 hw.acpi.battery.state: 0 hw.acpi.battery.units: 2 hw.acpi.battery.info_expire: 5 bash-2.05b$ sysctl hw.acpi.battery hw.acpi.battery.life: 99 hw.acpi.battery.time: 147 hw.acpi.battery.state: 1 hw.acpi.battery.units: 2 hw.acpi.battery.info_expire: 5 bash-2.05b$ sysctl hw.acpi.battery hw.acpi.battery.life: 99 hw.acpi.battery.time: 147 hw.acpi.battery.state: 1 hw.acpi.battery.units: 2 hw.acpi.battery.info_expire: 5 bash-2.05b$ sysctl hw.acpi.battery hw.acpi.battery.life: 99 hw.acpi.battery.time: 147 hw.acpi.battery.state: 1 hw.acpi.battery.units: 2 hw.acpi.battery.info_expire: 5 bash-2.05b$ sysctl hw.acpi.battery hw.acpi.battery.life: 96 hw.acpi.battery.time: 91 hw.acpi.battery.state: 1 hw.acpi.battery.units: 2 hw.acpi.battery.info_expire: 5 bash-2.05b$ sysctl hw.acpi.battery hw.acpi.battery.life: 96 hw.acpi.battery.time: 108 hw.acpi.battery.state: 1 hw.acpi.battery.units: 2 hw.acpi.battery.info_expirbash-2.05b$ sysctl hw.acpi.battery hw.acpi.battery.life: 96 hw.acpi.battery.time: 108 hw.acpi.battery.state: 1 hw.acpi.battery.units: 2 hw.acpi.battery.info_expire: 5 bash-2.05b$ sysctl hw.acpi.battery hw.acpi.battery.life: 96 hw.acpi.battery.time: 89 hw.acpi.battery.state: 1 hw.acpi.battery.units: 2 hw.acpi.battery.info_expire: 5 bash-2.05b$ sysctl hw.acpi.battery hw.acpi.battery.life: 96 hw.acpi.battery.time: 89 hw.acpi.battery.state: 1 hw.acpi.battery.units: 2 hw.acpi.battery.info_expire: 5 bash-2.05b$ sysctl hw.acpi.battery hw.acpi.battery.life: 96 hw.acpi.battery.time: 90 hw.acpi.battery.state: 1 hw.acpi.battery.units: 2 hw.acpi.battery.info_expire: 5 bash-2.05b$ sysctl hw.acpi.battery hw.acpi.battery.life: 92 hw.acpi.battery.time: 90 hw.acpi.battery.state: 1 hw.acpi.battery.units: 2 hw.acpi.battery.info_expire: 5 bash-2.05b$ sysctl hw.acpi.battery hw.acpi.battery.life: 92 hw.acpi.battery.time: 90 hw.acpi.battery.state: 1 hw.acpi.battery.units: 2 hw.acpi.battery.info_expire: 5 bash-2.05b$ sysctl hw.acpi.battery hw.acpi.battery.life: 92 hw.acpi.battery.time: 90 hw.acpi.battery.state: 1 hw.acpi.battery.units: 2 hw.acpi.battery.info_expire: 5 bash-2.05b$ sysctl hw.acpi.battery hw.acpi.battery.life: 92 hw.acpi.battery.time: 105 hw.acpi.battery.state: 1 hw.acpi.battery.units: 2 hw.acpi.bash-2.05b$ sysctl hw.acpi.battery hw.acpi.battery.life: 92 hw.acpi.battery.time: 105 hw.acpi.battery.state: 1 hw.acpi.battery.units: 2 hw.acpi.battery.info_expire: 5 battery.info_expire: 5 Is this magnitude fluctuation normal (depending on the instantaneous load on the machine)? Thanks Ben Kaduk