NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

acpibat0 issue



Hello,
I'm runnning NetBSD-10.0/amd64 on an old Toshiba Satelite laptop
and am having trouble obtaining the current battery charge under
the following conditions:

- system is booted with AC disconnected (battery only)

For the above condition the "last full cap" in envstat(8) output
reads "N/A" and the "charge" is grossly low:

--
$ envstat -d acpibat0
                  Current  CritMax  WarnMax  WarnMin  CritMin  Unit
                present:      TRUE
 design voltage:       N/A
                voltage:    15.000                                         V
         design cap:       N/A
  last full cap:       N/A
                 charge:     4.000                                        Wh
        charge rate:       N/A
 discharge rate:    22.582                                         W
           charging:     FALSE
   charge state:    NORMAL
--

After the AC is connected -- momentarilly -- the envstat(8) output
is correct and I can divide "charge" by "last full cap" to get the
current charge:

--
$ envstat -d acpibat0
       present:      TRUE
design voltage:    10.800                                         V
       voltage:    10.800                                         V
    design cap:    47.520                                        Wh
 last full cap:    26.373                                        Wh
        charge:    26.110                                        Wh (99.00%)
   charge rate:     6.058                                         W
discharge rate:       N/A
      charging:      TRUE
  charge state:    NORMAL
--

Here's is the battery-related info from dmesg(8) _before_ toggling
the AC adapter:

--
$ dmesg | grep bat
[     1.029262] acpibat0 at acpi0 (BAT0, PNP0C0A-1): ACPI Battery
[     1.950617] acpibat0: autoconfiguration error: failed to evaluate _STA: AE_NO_MEMORY
--

Unfortunately I don't know how to interpret this autoconfig error.

Once AC adapter is toggled I see this:
                ..
                [    32.489257] acpibat0: normal capacity on 'charge state'

I also noticed that there is no "bat0" entries for 'sysctl hw.acpi.'
though I don't know if there ought to be.

I'm wondering if there's anything I might try to correct this issue
and/or possible work-arounds if not actualyl fixable?

Thanks,
B


Home | Main Index | Thread Index | Old Index