Repository navigation
Don't call a battery draining on AC at 100% fully charged - #16278
Conversation
A load bigger than the adapter drains the battery while it still reads 100%, and the AC-at-100% fallback then said "Fully charged" and hid the live draw and the time left. The fallback now holds only when the battery is not discharging, or its draw is idle. Co-Authored-By: Codex Medium <noreply@openai.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
[Low impact] The change appears safe to merge. SummaryThe change stops
Reviews (1) · Last reviewed commit: "Don't call a battery draining on AC at 1..." · Reviewed by Greptile |
|
Reviewed at 1c49d3e, and nothing needs changing. The bug reproduces on a worker built from the Omarchy ISO. With the fix reverted, Second opinion: Codex Medium found no defects, which is agreement, and independence is not guaranteed. muse-spark-1.3-contributor (via pi, thinking high) suggested also treating No open pull request competes with this one. #16265 fixes the shell's on-battery detection for a related symptom, and #15710 refactors the same script's parsing, but neither touches this condition. Waiting on the maintainer. |
A load bigger than the adapter drains the battery while it still reads 100%, and the AC-at-100% fallback then said "Fully charged" and hid the live draw and the time left. The fallback now holds only when the battery is not discharging, or its draw is idle. Co-authored-by: Omarchybot <317366263+omarchybot@users.noreply.github.com> Co-authored-by: Codex Medium <noreply@openai.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit f53e0b2)
#16272 has the battery notification say
Fully chargedwhen UPower reportsfully-charged, or when AC is online and the battery reads 100%. That second case also caught a battery that is draining while plugged in: a load bigger than the adapter pulls from a battery that still reads 100%, and the notification saidBattery 100% · Fully charged · 53Wh, hiding both the live draw and the time left.The AC-at-100% fallback now counts as full only when UPower does not report
discharging, or the draw is idle (0.2W or less, the samecharge_idlethe rest of the script uses). A draining battery readsBattery 100% · 5h 19m left · ↓10W / 53Wh;fully-charged,charging,pending-chargeand an idledischargingat 100% on AC are unchanged.battery-status-test.shcovers the draining case.Found reviewing #16272 with Codex Medium and muse-spark-1.3-contributor (thinking high), both of which reviewed this change and found nothing further.