on 08/10/2010 22:12 Buganini said the following:
> On Sat, Oct 9, 2010 at 3:03 AM, Andriy Gapon <a...@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
_______________________________________________
freebsd-acpi@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-acpi
To unsubscribe, send any mail to "freebsd-acpi-unsubscr...@freebsd.org"

Reply via email to