Current-Users archive

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

envstat issue with -current amd64 lenovo laptop



On Lenovo v145[1], I was trying out -current (9th May daily snapshot). 9.1
didn't work on this device.

I am getting incorrect envstat output when checking battery status.
Basically looking to extract % charged state using envstat.

envstat output:

                      Current  CritMax  WarnMax  WarnMin  CritMin  Unit
[acpiacad0]
         connected:      TRUE
[acpibat0]
           present:      TRUE
    design voltage:     0.000                                         V
           voltage:     8.517                                         V
        design cap:     0.000                                        Wh
     last full cap:     0.000                                        Wh
            charge:     2.703                                        Wh
       charge rate:       N/A
    discharge rate:       N/A
          charging:     FALSE
      charge state:    NORMAL
[amdzentemp0]
  cpu0 temperature:    47.750                                      degC

dmesg | grep acpibat0.

[     1.052113] acpibat0 at acpi0 (BAT1, PNP0C0A-0): ACPI Battery
[     1.052113] acpibat0: ACPI 4.0 functionality present
[     1.281460] acpibat0: autoconfiguration error: failed to evaluate _BIF: AE_ERROR
... <last message repeats>


Probably some BIOS issue. But on the same laptop, on Linux, I am getting
required information from acpi, although there are error messages as
follows in dmesg:

[On Linux]

$ dmesg | grep acpi
[    0.023673] ACPI: LAPIC_NMI (acpi_id[0x00] high edge lint[0x1])
[    0.023674] ACPI: LAPIC_NMI (acpi_id[0x01] high edge lint[0x1])
[    0.023675] ACPI: LAPIC_NMI (acpi_id[0x02] high edge lint[0x1])
[    0.023677] ACPI: LAPIC_NMI (acpi_id[0x03] high edge lint[0x1])
[    0.228258] acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
[    0.257849] acpi PNP0A08:00: _OSC: OS supports [ExtendedConfig ASPM
ClockPM Segments MSI HPX-Type3]
[    0.257858] acpi PNP0A08:00: _OSC failed (AE_NOT_FOUND); disabling ASPM
[    0.257877] acpi PNP0A08:00: [Firmware Info]: MMCONFIG for domain 0000
[bus 00-3f] only partially covers this bridge
[    0.299855] clocksource: acpi_pm: mask: 0xffffff max_cycles: 0xffffff,
max_idle_ns: 2085701024 ns
[    0.911415] acpi_cpufreq: overriding BIOS provided _PSD data
[    1.045526] acpi device:00: registered as cooling_device2

$ acpi -V
Battery 0: Unknown, 99%
Battery 0: design capacity 3517 mAh, last full capacity 3171 mAh = 90%
Adapter 0: on-line
Cooling 0: Processor 0 of 10
Cooling 1: Processor 0 of 10


Please advise any further investigation.

-- 
Mayuresh

[1]
https://www.lenovo.com/in/en/laptops/lenovo/v-series/Lenovo-V145-15AST/p/88LG80V1181



Home | Main Index | Thread Index | Old Index