Hi everyone,
I’m running Fedora 44 with kernel 7.0.14-201.fc44.x86_64 on an HP laptop.
I’m facing a recurring battery issue that i’ve temporarily fixed before, but it keeps coming back after some time.
Symptoms
GNOME suddenly shows:
Battery empty. Device about to hibernate.
However, the battery is not actually empty.
upower reports:
state: charging
percentage: 0%
energy: 0 Wh
energy-full: 0 Wh
energy-full-design: 0 Wh
voltage: ~12.6 V
charge-cycles: 65
The battery is plugged in and charging, but every energy value becomes zero.
What I found
From /sys/class/power_supply/BAT0:
-
POWER_SUPPLY_ENERGY_NOWexists and contains a valid value. -
POWER_SUPPLY_VOLTAGE_NOWis also present. -
However, attributes like
POWER_SUPPLY_ENERGY_FULL,POWER_SUPPLY_ENERGY_FULL_DESIGN, andPOWER_SUPPLY_CAPACITYare missing.
Also, there is no capacity file under:
/sys/class/power_supply/BAT0/capacity
The kernel log contains:
ACPI Error: Divide by zero
ACPI Error: Aborting method \_SB.BAT0._BTP due to previous error (AE_AML_DIVIDE_BY_ZERO)
ACPI: battery: Slot [BAT0] (battery present)
Because of this, UPower reports the battery as 0%, causing GNOME to think the battery is empty and display hibernation warnings.
What I’ve already tried
-
Updated to the latest available BIOS from HP (F.38).
-
Running the latest Fedora updates.
-
Restarting UPower.
-
Rebooting (sometimes fixes it temporarily, but the issue eventually returns).
-
Verified that the battery itself is healthy (only ~65 charge cycles).
Other observations
This isn’t the only hardware-related issue I’ve experienced. Occasionally I’ve also seen:
-
audio devices disappearing,
-
other hardware state inconsistencies that sometimes disappear after reboot.
So I’m wondering if this is related to an ACPI/Embedded Controller issue rather than the battery itself.
Questions
-
Has anyone seen this on HP laptops running recent Fedora kernels?
-
Is this likely an ACPI firmware bug, an Embedded Controller issue, or a kernel regression?
-
Is there any way to reload/reset the battery or ACPI driver without rebooting?
-
Are there any kernel parameters or patches worth trying?
Any suggestions for additional debugging would also be appreciated.