debcrafters-packages team mailing list archive
-
debcrafters-packages team
-
Mailing list archive
-
Message #01514
[Bug 2112342] Re: UPower default PercentageAction=2.0 is too aggressive for degraded batteries — suggest changing to 5.0%
Thank you very much for your kind reply — and I really appreciate you
taking the time to read my report carefully.
Also, I must apologize: I misunderstood your initial message and
translated it incorrectly on my end. English is not my native language,
and I'm still learning how to navigate the Launchpad bug tracker. The
reporting environment can be a little confusing for new users, but I’ll
do my best to improve and become more familiar with the process.
I’m very glad to know that the report was considered clear, and I'm
grateful that you’ve acknowledged the suggestion. I agree entirely that
balancing defaults across different hardware scenarios is complex, and I
understand the hesitation to shift thresholds for all users — but I’m
happy the idea has been added to consideration.
Thanks again for your time and attention!
--
You received this bug notification because you are a member of
Debcrafters packages, which is subscribed to upower in Ubuntu.
https://bugs.launchpad.net/bugs/2112342
Title:
UPower default PercentageAction=2.0 is too aggressive for degraded
batteries — suggest changing to 5.0%
Status in upower package in Ubuntu:
Triaged
Bug description:
Affected system:
Laptop: Lenovo ThinkPad T490
Ubuntu versions tested: Ubuntu 24.04 LTS and Ubuntu 25.04
Battery condition: Moderate degradation (~36% capacity loss)
upower:
Installed: 1.90.7-1build1
energy-full: 32.35 Wh
energy-full-design: 50.5 Wh
capacity: 64.06%
On this system, when the battery level dropped to ~2%, the system
attempted to perform a shutdown as configured by UPower default:
PercentageAction=2.0
However, due to the degraded state of the battery, the voltage dropped
too rapidly at that level for the system to complete the shutdown
properly. This resulted in a system freeze with a blinking Caps Lock
LED, indicative of a kernel panic caused by power failure during a
critical system operation.
This issue occurred reliably and repeatedly on both Ubuntu 24.04 and
25.04.
Diagnosis:
1. The battery has significantly reduced capacity (~64% of design).
2. At 2% reported charge, there was insufficient residual energy to allow the shutdown process to complete.
3. Increasing the threshold for the shutdown action to 5% resolved the issue completely.
Solution:
I edited the file /etc/UPower/UPower.conf and changed the following lines:
PercentageLow=20.0
PercentageCritical=10.0
PercentageAction=5.0
I also restarted the service:
sudo systemctl restart upower
After this change, the system reliably enters CriticalPowerAction when the battery reaches 5%, with no further freezes or panics.
Suggested change to default UPower configuration:
PercentageAction=5.0
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/upower/+bug/2112342/+subscriptions
References