From owner-freebsd-current@FreeBSD.ORG Tue Jul 26 17:32:49 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 9A67616A41F for ; Tue, 26 Jul 2005 17:32:49 +0000 (GMT) (envelope-from kjelderg@gmail.com) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id C16D643D46 for ; Tue, 26 Jul 2005 17:32:48 +0000 (GMT) (envelope-from kjelderg@gmail.com) Received: by rproxy.gmail.com with SMTP id i8so3004rne for ; Tue, 26 Jul 2005 10:32:48 -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:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=EW/0OT+Vp6upYjWwE9V1cE/bbZmcLkYBmAHBYVe7EyAT4sNTh55/HIt7JSDwetthnw81Ks0CgL83DUvJ/ylXuR2+iBhGzSO1kO6KLsZ7Rehls4IZGk6hv/QjZL52NElFW2EQcj2rhxNaiegXhc3ZkUppRxOtvrB1W2eVRhPQpd8= Received: by 10.38.89.20 with SMTP id m20mr6149rnb; Tue, 26 Jul 2005 10:32:48 -0700 (PDT) Received: by 10.38.101.41 with HTTP; Tue, 26 Jul 2005 10:32:48 -0700 (PDT) Message-ID: Date: Wed, 27 Jul 2005 02:32:48 +0900 From: Eric Kjeldergaard To: Jeremie Le Hen In-Reply-To: <20050726135149.GG1610@obiwan.tataz.chchile.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <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> <20050726135149.GG1610@obiwan.tataz.chchile.org> Cc: acpi@freebsd.org, Marcin Jessa , freebsd-current@freebsd.org, Nate Lawson Subject: Re: acpi battery rework patch X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Eric Kjeldergaard 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 17:32:49 -0000 On 7/26/05, Jeremie Le Hen wrote: > Hi Nate, >=20 > > >- Battery: > > >hw.acpi.battery.life: 87 > > >hw.acpi.battery.time: 103 > > >hw.acpi.battery.state: 1 > >=20 > > Completely fine. Time should be -1 (unknown) while on AC power. And= =20 > > state is "discharging" when on battery. > >=20 > > >- AC: > > >hw.acpi.battery.life: 70 > > >hw.acpi.battery.time: -1 > > >hw.acpi.battery.state: 2 > >=20 > > This is fine. On AC power and state is charging. > >=20 > > >- Battery: > > >hw.acpi.battery.life: 70 > > >hw.acpi.battery.time: 125 > > >hw.acpi.battery.state: 1 > >=20 > > Time is valid and state is "discharging". >=20 > 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" >=20 Along the same lines, I notice the following: [~/mp3] #sysctl -d hw.acpi.battery hw.acpi.battery: hw.acpi.battery.life: hw.acpi.battery.time: hw.acpi.battery.state: hw.acpi.battery.units: hw.acpi.battery.info_expire: Any chance of descriptions being added to all? =20 --=20 If I write a signature, my emails will appear more personalised.