From owner-freebsd-acpi@FreeBSD.ORG Tue Jul 3 14:28:28 2012 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 30BB2106564A for ; Tue, 3 Jul 2012 14:28:28 +0000 (UTC) (envelope-from erichfreebsdlist@ovitrap.com) Received: from alogreentechnologies.com (alogreentechnologies.com [67.212.224.110]) by mx1.freebsd.org (Postfix) with ESMTP id 05D0D8FC08 for ; Tue, 3 Jul 2012 14:28:28 +0000 (UTC) Received: from x220.ovitrap.com ([122.129.201.21]) (authenticated bits=0) by alogreentechnologies.com (8.13.1/8.13.1) with ESMTP id q63ESPui012252; Tue, 3 Jul 2012 08:28:27 -0600 From: Erich Dollansky To: Ian Smith Date: Tue, 3 Jul 2012 21:28:24 +0700 User-Agent: KMail/1.13.7 (FreeBSD/10.0-CURRENT; KDE/4.8.3; amd64; ; ) References: <20120523151357.GC97037@sigil.instinctive.eu> <201207031820.22657.erichfreebsdlist@ovitrap.com> <20120703231540.I46641@sola.nimnet.asn.au> In-Reply-To: <20120703231540.I46641@sola.nimnet.asn.au> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable Message-Id: <201207032128.24837.erichfreebsdlist@ovitrap.com> Cc: freebsd-acpi@freebsd.org, Natacha =?iso-8859-15?q?Port=E9?= Subject: Re: How can I help with thinkpad x220 issues? 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: Tue, 03 Jul 2012 14:28:28 -0000 Hi, On Tuesday, July 03, 2012 08:51:33 PM Ian Smith wrote: > On Tue, 3 Jul 2012 18:20:22 +0700, Erich Dollansky wrote: > > On Tuesday, July 03, 2012 03:34:36 PM Natacha Port=E9 wrote: > [..] > > > > How did you get this value? No battery inserted? The range should = be > > > > from 0 to 100. > > >=20 > > > Indeed, I had no battery inserted. Years ago I took the habit of > > > removing the battery of laptops used for long amount of time on AC > > > (currently for my X220, that's 9h every workday), because keeping a > > > fully charged battery on AC used to kill it. However I admit I don't > > > know whether technology improved enough to mnake it a non-issue (or = even > > > whether even by then it was actually an issue and not an urban legen= d). > > > > As an engineer I would say that Lenovo would have done a real bad job= =20 > > if this makes still a significant difference. >=20 > Nonetheless, it's worth discharging and recharging both NiMH and Li-ion=20 > batteries periodically. If you do it once a week that's only 52 cycles=20 > per year; a small fraction of its design cycles, and unless you store it= =20 > partially charged in a fridge, less usage than its 'shelf life' anyway. >=20 this is true. > Apart from not harming the battery - which is designed for daily cycling= =20 > over 2 or 3 years - running it down past exhaustion now and again will=20 > recalibrate the battery's onboard coulomb counter to reflect capacity. > At least when they were called IBMs, that was IBM's advice for Li-ion. >=20 I did not know this but wondered how they do it. > [..] > > > > > hw.acpi.battery.time: -1 > > > > > hw.acpi.battery.state: 7 > > > >=20 > > > > I have 0 here. > > >=20 > > > I have 2 when it's charging, and 1 when it's discharging. > >=20 > > Ok, now I have the same. 1 and 2. But never 7. It seems that there=20 > > are some secrets. >=20 > No secrets in FreeBSD, just stuff you have to hunt for and figure out :) >=20 > /usr/src/usr.sbin/acpi/acpiconf/acpiconf.c suggests hunting thus: >=20 > smithi on t23% find /sys/ -exec grep -H ACPI_BATT_ {} \; > [.. see usage in acpi_battery.c, acpi_{cm,sm}bat.c and acpi_machdep.c ..] > /sys/dev/acpica/acpiio.h:#define ACPI_BATT_STAT_DISCHARG 0= x0001 > /sys/dev/acpica/acpiio.h:#define ACPI_BATT_STAT_CHARGING 0= x0002 > /sys/dev/acpica/acpiio.h:#define ACPI_BATT_STAT_CRITICAL 0= x0004 > /sys/dev/acpica/acpiio.h:#define ACPI_BATT_STAT_NOT_PRESENT 0x0007 > /sys/dev/acpica/acpiio.h:#define ACPI_BATT_STAT_MAX 0x0007 > /sys/dev/acpica/acpiio.h:#define ACPI_BATT_UNKNOWN 0xffffffff /* _BS= T or _BIF value unknown. */ Interesting. I did not get the idea. I must watch for the critical once the= battery is low. > > > > > $ sysctl dev.acpi_ibm > > > >=20 > > > > I do not have anything with IBM or Lenovo. >=20 > Is this a Thinkpad model that shows no benefits from loading acpi_ibm? I just loaded it to veryfy. There is no difference between loaded and not l= oaded. At least it does not do any harm. The sysctls also do not show up af= ter being loaded. Erich