ENXIOing non-present battery
Dan Lukes
dan at obluda.cz
Tue Dec 9 09:42:44 UTC 2014
On 12/09/14 06:33, Ian Smith:
> Normally with 2 batteries catered for and only one fitted you'd expect to see
> battery1: <ACPI Control Method Battery> on acpi0
> battery1: battery initialization start
> battery1: battery initialization failed, giving up
Just for the completeness ...
... it is expected behavior for non-present battery. Relevant part of
code (sys/dev/acpica/acpi_cmbat.c):
> ACPI_VPRINT(dev, acpi_device_get_parent_softc(dev),
> "battery initialization start\n");
...
> for (retry = 0; retry < ACPI_CMBAT_RETRY_MAX; retry++, AcpiOsSleep(10000)) {
...
> if (!acpi_BatteryIsPresent(dev))
> continue;
...
> }
>
> if (retry == ACPI_CMBAT_RETRY_MAX) {
> ACPI_VPRINT(dev, acpi_device_get_parent_softc(dev),
> "battery initialization failed, giving up\n");
Dan
More information about the freebsd-acpi
mailing list