Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 09 Oct 2010 10:59:15 +0300
From:      Andriy Gapon <avg@icyb.net.ua>
To:        Buganini <buganini@gmail.com>
Cc:        freebsd-acpi@FreeBSD.org
Subject:   Re: ACPI & battery issues
Message-ID:  <4CB020D3.2050201@icyb.net.ua>
In-Reply-To: <AANLkTinQXs6rXC%2B=yyh-NZYm=bRsRPFTmuOsJPT3gnte@mail.gmail.com>
References:  <20101003094814.2B50B106575D@hub.freebsd.org>	<20101004004508.R62022@sola.nimnet.asn.au>	<AANLkTim_3L9UmTas-YZ=4WxgPAt%2BHe%2BWaQqSi9Y58Uu7@mail.gmail.com>	<AANLkTin8yZCz%2BRS8iSAyuJtp0_h_hy70ZgRmQg6a7Rxv@mail.gmail.com>	<4CAF4313.4080800@icyb.net.ua>	<AANLkTi=nBgdbsi=z6pvyQHj6w7dTF8Xuf8UpcxXJAJpH@mail.gmail.com>	<4CAF6B04.5010605@icyb.net.ua> <AANLkTinQXs6rXC%2B=yyh-NZYm=bRsRPFTmuOsJPT3gnte@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
on 08/10/2010 22:12 Buganini said the following:
> On Sat, Oct 9, 2010 at 3:03 AM, Andriy Gapon <avg@icyb.net.ua> wrote:
>> And when you query battery state?
> 
> //boot with power cable plugged
> 
> # sysctl hw.acpi.battery
> hw.acpi.battery.life: -1
> hw.acpi.battery.time: -1
> hw.acpi.battery.state: 7
> hw.acpi.battery.units: 1
> hw.acpi.battery.info_expire: 5
> 
> # dmesg
> battery0: battery initialization failed, giving up

If you don't see any error messages from EC, then this is probably not an EC
issue.  The problem might be in one of the battery drivers (acpi_smbat,
acpi_cmbat) or entirely somewhere else.

> //unplug
> 
> # sysctl hw.acpi.battery
> hw.acpi.battery.life: 98
> hw.acpi.battery.time: 220
> hw.acpi.battery.state: 1
> hw.acpi.battery.units: 1
> hw.acpi.battery.info_expire: 5
> 
> # dmesg
> system power profile changed to 'economy'
> acpi_acad0: Off Line
> 
> //plug
> 
> # sysctl hw.acpi.battery
> hw.acpi.battery.life: -1
> hw.acpi.battery.time: -1
> hw.acpi.battery.state: 7
> hw.acpi.battery.units: 1
> hw.acpi.battery.info_expire: 5
> 
> # dmesg
> system power profile changed to 'performance'
> acpi_acad0: On Line
> 
> (no "battery0: battery initialization failed, giving up" this time)
> 
> 
> BTW, acpi_ibm is not suitable for lenovo G450, so some function key is
> not working.
> 
> --
> Buganini


-- 
Andriy Gapon



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4CB020D3.2050201>