From owner-freebsd-current Thu Mar 6 22:54:55 2003 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 4F93437B401 for <current@FreeBSD.ORG>; Thu, 6 Mar 2003 22:54:54 -0800 (PST) Received: from alpha.siliconlandmark.com (alpha.siliconlandmark.com [209.69.98.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7DF0243FD7 for <current@FreeBSD.ORG>; Thu, 6 Mar 2003 22:54:53 -0800 (PST) (envelope-from andy@siliconlandmark.com) Received: from alpha.siliconlandmark.com (localhost [127.0.0.1]) by alpha.siliconlandmark.com (8.12.8/8.12.7) with ESMTP id h276sqBq032061; Fri, 7 Mar 2003 01:54:52 -0500 (EST) (envelope-from andy@siliconlandmark.com) Received: from localhost (andy@localhost) by alpha.siliconlandmark.com (8.12.8/8.12.7/Submit) with ESMTP id h276sqWZ032058; Fri, 7 Mar 2003 01:54:52 -0500 (EST) (envelope-from andy@siliconlandmark.com) X-Authentication-Warning: alpha.siliconlandmark.com: andy owned process doing -bs Date: Fri, 7 Mar 2003 01:54:52 -0500 (EST) From: Andre Guibert de Bruet <andy@siliconlandmark.com> To: George Patterson <george@visp.com.au> Cc: current@FreeBSD.ORG Subject: Re: hw.acpi.battery.units not accurate In-Reply-To: <20030307170843.5f12422f.george@visp.com.au> Message-ID: <20030307015213.W31811@alpha.siliconlandmark.com> References: <20030307010326.P31811@alpha.siliconlandmark.com> <20030307170843.5f12422f.george@visp.com.au> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: <freebsd-current.FreeBSD.ORG> List-Archive: <http://docs.freebsd.org/mail/> (Web Archive) List-Help: <mailto:majordomo@FreeBSD.ORG?subject=help> (List Instructions) List-Subscribe: <mailto:majordomo@FreeBSD.ORG?subject=subscribe%20freebsd-current> List-Unsubscribe: <mailto:majordomo@FreeBSD.ORG?subject=unsubscribe%20freebsd-current> X-Loop: FreeBSD.ORG On Fri, 7 Mar 2003, George Patterson wrote: > I have a Toshiba Satellite 1800 laptop (Mostly Acer subsystems). While > the battery.time is incorrect (negative number), the > hw.acpi.battery.units sysctl doesn't change when I swap out the battery. > > Batter Installed > > sysctl hw.acpi.battery > hw.acpi.battery.life: 99 > hw.acpi.battery.time: -1 > hw.acpi.battery.state: 2 > hw.acpi.battery.units: 1 > hw.acpi.battery.info_expire: 5 > Battery Removed > > sysctl hw.acpi.battery > hw.acpi.battery.life: -1 > hw.acpi.battery.time: -1 > hw.acpi.battery.state: 7 > hw.acpi.battery.units: 1 > hw.acpi.battery.info_expire: 5 > > The battery time was being reported correct by apm under FreeBSD 4.7 -1 is the value that you get if you get the sysctl sample when the unit is plugged in. Make sure that you disconnect the AC line when you sample... Regards, > Andre Guibert de Bruet | Enterprise Software Consultant > > Silicon Landmark, LLC. | http://siliconlandmark.com/ > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message