From owner-freebsd-current@FreeBSD.ORG Tue Jul 26 13:51:28 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 D61C916A41F; Tue, 26 Jul 2005 13:51:28 +0000 (GMT) (envelope-from tataz@tataz.chchile.org) Received: from postfix4-2.free.fr (postfix4-2.free.fr [213.228.0.176]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2ABAD43D48; Tue, 26 Jul 2005 13:51:27 +0000 (GMT) (envelope-from tataz@tataz.chchile.org) Received: from tatooine.tataz.chchile.org (vol75-8-82-233-239-98.fbx.proxad.net [82.233.239.98]) by postfix4-2.free.fr (Postfix) with ESMTP id 91576323408; Tue, 26 Jul 2005 15:51:24 +0200 (CEST) Received: by tatooine.tataz.chchile.org (Postfix, from userid 1000) id B6E54405B; Tue, 26 Jul 2005 15:51:49 +0200 (CEST) Date: Tue, 26 Jul 2005 15:51:49 +0200 From: Jeremie Le Hen To: Nate Lawson Message-ID: <20050726135149.GG1610@obiwan.tataz.chchile.org> References: <20050723133819.36efb537.lists@yazzy.org> <42E29CAA.1020007@root.org> <20050724215818.55f951ae.lists@yazzy.org> <42E42F10.3030309@root.org> <20050725091221.106a0368.lists@yazzy.org> <42E5134F.706@root.org> <20050726011943.0abe83a0.lists@yazzy.org> <42E5C96C.9060105@root.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <42E5C96C.9060105@root.org> User-Agent: Mutt/1.5.9i Cc: acpi@freebsd.org, Marcin Jessa , freebsd-current@freebsd.org Subject: Re: acpi battery rework patch 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: Tue, 26 Jul 2005 13:51:29 -0000 Hi Nate, > >- Battery: > >hw.acpi.battery.life: 87 > >hw.acpi.battery.time: 103 > >hw.acpi.battery.state: 1 > > Completely fine. Time should be -1 (unknown) while on AC power. And > state is "discharging" when on battery. > > >- AC: > >hw.acpi.battery.life: 70 > >hw.acpi.battery.time: -1 > >hw.acpi.battery.state: 2 > > This is fine. On AC power and state is charging. > > >- Battery: > >hw.acpi.battery.life: 70 > >hw.acpi.battery.time: 125 > >hw.acpi.battery.state: 1 > > Time is valid and state is "discharging". Where are these states documented ? What do you think of the idea of using the following as a description for the hw.acpi.battery.state sysctl ? "0: battery full, 1: discharging, 2: charging" Regards, -- Jeremie Le Hen < jeremie at le-hen dot org >< ttz at chchile dot org >