From owner-freebsd-current@FreeBSD.ORG Tue Jul 26 19:12:12 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 0AD4116A41F; Tue, 26 Jul 2005 19:12:12 +0000 (GMT) (envelope-from nate@root.org) Received: from www.cryptography.com (li-22.members.linode.com [64.5.53.22]) by mx1.FreeBSD.org (Postfix) with ESMTP id A482B43D58; Tue, 26 Jul 2005 19:12:10 +0000 (GMT) (envelope-from nate@root.org) Received: from [10.0.0.33] (adsl-67-119-74-222.dsl.sntc01.pacbell.net [67.119.74.222]) by www.cryptography.com (8.12.8/8.12.8) with ESMTP id j6QJC9o5016681 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 26 Jul 2005 12:12:10 -0700 Message-ID: <42E68B08.2030701@root.org> Date: Tue, 26 Jul 2005 12:12:09 -0700 From: Nate Lawson User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Eric Kjeldergaard 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> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: acpi@freebsd.org, Marcin Jessa , Jeremie Le Hen , 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 19:12:12 -0000 Eric Kjeldergaard wrote: > On 7/26/05, Jeremie Le Hen wrote: > >>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" >> > > > 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? > Yes, I have a patch for this and will try to roll it into a group of them later today. -- Nate