From owner-freebsd-acpi@FreeBSD.ORG Fri Jul 29 02:37:18 2005 Return-Path: X-Original-To: acpi@freebsd.org Delivered-To: freebsd-acpi@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2655A16A41F for ; Fri, 29 Jul 2005 02:37:18 +0000 (GMT) (envelope-from anderson@centtech.com) Received: from mh2.centtech.com (moat3.centtech.com [207.200.51.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9E20D43D46 for ; Fri, 29 Jul 2005 02:37:17 +0000 (GMT) (envelope-from anderson@centtech.com) Received: from [192.168.42.23] (andersonbox3.centtech.com [192.168.42.23]) by mh2.centtech.com (8.13.1/8.13.1) with ESMTP id j6T2bEux071554; Thu, 28 Jul 2005 21:37:14 -0500 (CDT) (envelope-from anderson@centtech.com) Message-ID: <42E99654.6010501@centtech.com> Date: Thu, 28 Jul 2005 21:37:08 -0500 From: Eric Anderson User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.8) Gecko/20050603 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Nate Lawson References: <42E68319.40105@centtech.com> <42E68BF7.4040104@root.org> <42E6A3B4.5000102@centtech.com> <42E9220A.4030007@root.org> In-Reply-To: <42E9220A.4030007@root.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: acpi@freebsd.org Subject: Re: More ACPI patch problems.. X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Jul 2005 02:37:18 -0000 Nate Lawson wrote: > Eric Anderson wrote: > >> Nate Lawson wrote: >> >>> Eric Anderson wrote: >>> >>>> After updating, I now see this when on battery: >>>> hw.acpi.battery.life: 97 >>>> hw.acpi.battery.time: 337898 >>>> hw.acpi.battery.state: 1 >>>> hw.acpi.battery.units: 2 >>>> hw.acpi.battery.info_expire: 5 >>>> >>>> And when on AC, my battery life never gets to 100% (like it used to). >>>> >>>> All my systems info is here: >>>> http://www.googlebit.com/freebsd/ >>> >>> >>> Can you run with the attached debug printf patch and let me know the >>> output? Run it both on and off AC power. >> >> >> On bootup, with AC plugged in: >> batt pass1: dev 0xc22f7500 ok valid state 0 cap 100 valid_rate 0 >> batt pass1: dev 0xc22f7880 batt pass2: min 0 total_min 0 total_cap 100 >> batt pass2: min 0 total_min 0 total_cap 99 >> batt pass1: dev 0xc22f7500 ok valid state 0 cap 100 valid_rate 0 >> batt pass1: dev 0xc22f7880 batt pass2: min 0 total_min 0 total_cap 100 >> batt pass2: min 0 total_min 0 total_cap 99 > > > This is fine. It appears your second battery is not present. > >> Now on battery: >> power_profile: changed to 'economy' >> batt pass1: dev 0xc22f7500 ok valid state 0 cap 100 valid_rate 0 >> batt pass1: dev 0xc22f7880 batt pass2: min 0 total_min 0 total_cap 100 >> batt pass2: min 0 total_min 0 total_cap 99 >> batt pass1: dev 0xc22f7500 ok valid state 0 cap 100 valid_rate 0 >> batt pass1: dev 0xc22f7880 batt pass2: min 0 total_min 0 total_cap 100 >> batt pass2: min 0 total_min 0 total_cap 99 >> >> And then something like: >> batt pass1: dev 0xc22f7500 ok valid state 1 cap 93 valid_rate 2483 >> batt pass1: dev 0xc22f7880 batt pass2: min 104 total_min 104 total_cap 93 >> batt pass2: min 329216 total_min 329320 total_cap 92 >> batt pass1: dev 0xc22f7500 ok valid state 1 cap 93 valid_rate 2483 >> batt pass1: dev 0xc22f7880 batt pass2: min 104 total_min 104 total_cap 93 >> batt pass2: min 329216 total_min 329320 total_cap 92 > > > It appears we're getting invalid capacity data from the not-present 2nd > battery. I just committed a patch that should fix this -- it zeroes the > memory in question so we don't get random values for a battery that > isn't present. > > Please let me know if it fixes this for you. Yea, that did the trick, thanks! However, my battery still only gets to 99%. Eric -- ------------------------------------------------------------------------ Eric Anderson Sr. Systems Administrator Centaur Technology Anything that works is better than anything that doesn't. ------------------------------------------------------------------------