Problems Reading Battery Values

Bug #2052865 reported by mechanyx
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
upower (Ubuntu)
New
Undecided
Unassigned

Bug Description

I'm experiencing a variety of problems that appear related to communicating with the battery in my HP Dragonfly Elite AMD Ryzen 7736U laptop.

In Gnome, the battery indicator will change values sharply like from 99% to 0% or the battery icon will disappear. If I'm connected to the power adapter, sometimes it will return back to the previous state/value after some time. If I'm not connected to the power adapter, it might say that it is about to hibernate or shutdown and then may hibernate or shutdown.

acpitool -B has at times failed to show any battery present. It normally presents output like:

  Battery #1 : present
    Remaining capacity : 58490 mWh, 100.0%
    Design capacity : 65000 mWh
    Last full capacity : 58490 mWh, 89.98% of design capacity
    Capacity loss : 10.02%
    Present rate : 0 mW
    Charging state : Full
    Battery type : Li-ion
    Model number : PABAS0241231
    Serial number : 41167

At least once, none of the processor cores would clock above 400MHz according to /proc/cpuinfo while in this state.

I don't know if this is (just) a hardware problem (the HP Diagnostic hasn't provided me with an error code but the BIOS has at times failed to detect the battery) but there are log messages in /var/log/syslog which say "please report!" (hence this report).

Ubuntu 23.10
upower 1.90.2-4

2024-02-06T10:26:23.347171-05:00 dragonfly upowerd[1918]: no valid voltage value found for device /sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:47/PNP0C0A:00/power_supply/BAT1, assuming 10V
2024-02-06T10:26:23.347783-05:00 dragonfly upowerd[1918]: Battery unit type changed, assuming the old unit is still valid. This is likely a firmware or driver issue, please report!
2024-02-06T10:26:23.347836-05:00 dragonfly upowerd[1918]: value "-nan" of type 'gdouble' is invalid or out of range for property 'percentage' of type 'gdouble'
2024-02-06T10:27:10.768330-05:00 dragonfly upowerd[1918]: message repeated 9 times: [ value "-nan" of type 'gdouble' is invalid or out of range for property 'percentage' of type 'gdouble']

Please let me know if there is any additional info I can provide.

description: updated
Revision history for this message
mechanyx (rich-richhorner) wrote :

Here is the output of acpitool -B while Gnome reports 0% battery:

  Battery #1 : present
    Remaining capacity : 58490 mWh, 100.0%
, -1.000% of design capacity
    Capacity loss : 101.0%
    Present rate : 0 mW
    Charging state : Full
    Battery type : Li-ion
    Model number : PABAS0241231
    Serial number : 41167

Despite being plugged in (and fully charged), some processes think there is low battery:

2024-02-10T17:32:01.406945-05:00 dragonfly tracker-miner-f[3211]: Running on LOW Battery, pausing
2024-02-10T17:32:02.406736-05:00 dragonfly upowerd[1950]: value "-nan" of type 'gdouble' is invalid or out of range for property 'percentage' of type 'gdouble'

Revision history for this message
mechanyx (rich-richhorner) wrote :

Here's what I believe are the relevant sections from dmidecode:

Handle 0x002F, DMI type 22, 26 bytes
Portable Battery
 Location: Primary
 Manufacturer: 313-AC-12-A
 Manufacture Date: ManufDate
 Serial Number: DummySerialNumber
 Name: GR04065
 Design Capacity: 64994 mWh
 Design Voltage: 7720 mV
 SBDS Version: 1
 Maximum Error: 0%
 SBDS Chemistry: LION
 OEM-specific Information: 0x0009050D

Handle 0x0030, DMI type 26, 22 bytes
Voltage Probe
 Description: Voltage Probe Description
 Location: Unknown
 Status: Unknown
 Maximum Value: Unknown
 Minimum Value: Unknown
 Resolution: Unknown
 Tolerance: Unknown
 Accuracy: Unknown
 OEM-specific Information: 0x00000000
 Nominal Value: Unknown

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.