From owner-freebsd-acpi@FreeBSD.ORG Wed Mar 17 12:36:26 2010 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ED777106564A for ; Wed, 17 Mar 2010 12:36:25 +0000 (UTC) (envelope-from gaijin.k@gmail.com) Received: from mail-iw0-f185.google.com (mail-iw0-f185.google.com [209.85.223.185]) by mx1.freebsd.org (Postfix) with ESMTP id ADA6B8FC0C for ; Wed, 17 Mar 2010 12:36:25 +0000 (UTC) Received: by iwn15 with SMTP id 15so881079iwn.7 for ; Wed, 17 Mar 2010 05:36:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:cc :in-reply-to:references:content-type:date:message-id:mime-version :x-mailer:content-transfer-encoding; bh=cwmwpViTO8N667o22+Gv+LIBs/FXNG+w26o8sX9ueTA=; b=C6IT96D7PvhRPoJbrRRnjs+8BK+weZNe73HD/X6LZjgTbbV0DBWUu8TacE3zTWlBCM Abv0IWJCUimuCt6BFCO0aHi61xKJN8FJISirI3AsADpwnbmBawbZifQHCz5qIMd3Xx6G McJ3J6juaRPivuZUI9DtjoCi5WppG1pu6RhIY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:cc:in-reply-to:references:content-type:date :message-id:mime-version:x-mailer:content-transfer-encoding; b=WY6vJI9IggmBIJs8wtVO7+YDnM7O2xkyMNnjD3OThcUFKq7ZUUsM0YFtfwRFmXZnVp 8O8oafQ8QMOimem56LjioGP2TIUoN/ebE/TZQM0uvxLHAnUblv1IU+2E7wKTBMLdehAn hN6i63onMzT9QPhzslHqLDctBSG+mEc/P/iow= Received: by 10.231.157.68 with SMTP id a4mr195484ibx.78.1268829383134; Wed, 17 Mar 2010 05:36:23 -0700 (PDT) Received: from [10.0.3.231] (pool-74-105-210-169.nwrknj.fios.verizon.net [74.105.210.169]) by mx.google.com with ESMTPS id a1sm358727ibs.18.2010.03.17.05.36.22 (version=SSLv3 cipher=RC4-MD5); Wed, 17 Mar 2010 05:36:22 -0700 (PDT) From: "Alexandre \"Sunny\" Kovalenko" To: Joerg Wunsch In-Reply-To: <20100317074549.GC52442@uriah.heep.sax.de> References: <20100315062028.GC52442@uriah.heep.sax.de> <20100317070428.GA2924@server.vk2pj.dyndns.org> <20100317074549.GC52442@uriah.heep.sax.de> Content-Type: text/plain; charset="UTF-8" Date: Wed, 17 Mar 2010 08:36:03 -0400 Message-ID: <1268829363.6171.13.camel@RabbitsDen> Mime-Version: 1.0 X-Mailer: Evolution 2.28.2 FreeBSD GNOME Team Port Content-Transfer-Encoding: 8bit Cc: freebsd-acpi@freebsd.org Subject: Re: Funny battery values (nx6325) 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: Wed, 17 Mar 2010 12:36:26 -0000 On Wed, 2010-03-17 at 08:45 +0100, Joerg Wunsch wrote: > As Peter Jeremy wrote: > > > >Design capacity: 279 mAh > > >Last full capacity: 279 mAh > > > Is this consistent or does it vary from boot to boot or if you > > disconnect and reconnect the battery? > > Currently, my wife is on a business trip with that machine. > Hopefully, I'll also get a statement about how long it lasts on > battery once she is back ;-), and I'll re-check those values then. > > > >The battery is declared as 55 Wh, which would correspond to 5.1 Ah > > >(probably 3 x 2 x 18650 cells). > > > > But is also over 3 years old. Almost everything you do to LiION > > batteries makes their capacity drop. > > That's right, but it wouldn't be supposed to affect the "Design > capacity", would it? ;) > > Can anybody tell where these values actually come from? I could > perhaps even build a small microcontroller gadget, in order to query > the battery for its values offline (using I²C aka SMbus) in order to > see where the mistake might be. > You can dump your ASL (see Handbook for instructions) and search for something like: Method (_BIF, 0, NotSerialized) { If (\_SB.PCI0.SBRG.ECD.BTIN) { Noop Return (BIFF) } Else { Acquire (ECMX, 0xFFFF) // *** This is power unit (0 - mWh/mW, 1 - mAh/mA) Store (\_SB.PCI0.SBRG.ECD.BIF0 (), Index (BIFF, 0x00)) // *** This is the design capacity in units above Store (\_SB.PCI0.SBRG.ECD.BIF2 (), Index (BIFF, 0x01)) Store (\_SB.PCI0.SBRG.ECD.BIF2 (), Index (BIFF, 0x02)) Store (\_SB.PCI0.SBRG.ECD.BIF3 (), Index (BIFF, 0x03)) Store (\_SB.PCI0.SBRG.ECD.BIF4 (), Index (BIFF, 0x04)) Store (\_SB.PCI0.SBRG.ECD.BIF5 (), Index (BIFF, 0x05)) Store (\_SB.PCI0.SBRG.ECD.BIF6 (), Index (BIFF, 0x06)) Store (\_SB.PCI0.SBRG.ECD.BIF7 (), Index (BIFF, 0x07)) Store (\_SB.PCI0.SBRG.ECD.BIF8 (), Index (BIFF, 0x08)) Release (ECMX) Return (BIFF) } } and try to track down where the actual values came from. Chapter 10 of the ACPI specification (http://www.acpi.info/spec.htm) should provide you with more information on the subject. The contents of the method above came from some ASL I had laying around -- yours will likely be different. The important part is the returned package that contains values in the specific sequence. HTH, -- Alexandre Kovalenko (Олександр Коваленко)