ACPI & battery issues
Andriy Gapon
avg at icyb.net.ua
Sat Oct 9 07:59:20 UTC 2010
on 08/10/2010 22:12 Buganini said the following:
> On Sat, Oct 9, 2010 at 3:03 AM, Andriy Gapon <avg at 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
More information about the freebsd-acpi
mailing list