Skip to content

Report combined battery percentage from UPower DisplayDevice - #10392

Open
calledtoconstruct wants to merge 11 commits into
omacom:quattrofrom
calledtoconstruct:fix/dual-battery-displaydevice
Open

calledtoconstruct wants to merge 11 commits into
omacom:quattrofrom
calledtoconstruct:fix/dual-battery-displaydevice

Conversation

@calledtoconstruct

@calledtoconstruct calledtoconstruct commented Sep 5, 2026 •

Copy link
Copy Markdown

omarchy-battery-status always read the first BAT* pack. Dual-battery laptops then showed the idle internal pack instead of the combined percentage.

Use UPower's DisplayDevice only when more than one pack is enumerated. A single pack stays on that BAT* device so the live sysfs wattage path still runs. DisplayDevice's native-path is not a sysfs battery node.

Fixes #10244

Fixes #6885

Fixes #14798

@ujo4eva

ujo4eva commented Sep 20, 2026

Copy link
Copy Markdown

@bjarneo @calledtoconstruct @geirolafs — mapping the overlap here so nothing gets lost in the untangle, since several PRs were closed in favour of #6845 which is now closed itself:

#10392 (this PR) fixes the base case: dual-battery machines showing only the first BAT* instead of the combined DisplayDevice percentage/state (#10244, and the #8504 / #8521 / #9776 class). That's real progress and should land.

What it doesn't cover, and where it relates:

Suggested way forward: land this PR + #12649 (both small, independent), then a stacked follow-up on top of this PR for the #7916 liveness rebuild + cycles/scope pieces. Happy to draft that if that's the split you want — or go another way if you prefer. What's the call?

@calledtoconstruct

Copy link
Copy Markdown
Author

@ujo4eva that split is the one I would make.

Land this PR for the dual-pack DisplayDevice percentage/state/size/time case (#10244). Land #12649 on its own for the ENODEV 0W sysfs read — different machines, different predicate.

Do not fold #11750's present: yes gate into this; that extra check is not in the #10244 upower -i DisplayDevice excerpt and would silently fall back to BAT0 if the field is missing.

The rest (live sysfs watt sum across BAT*, dead-pack liveness / #7916, per-pack cycles, scope=Device exclusion) is a follow-up on top of this PR, not a reason to hold it. This branch deliberately keeps a single pack on BAT* so the native-path sysfs rate still works, and skips sysfs when DisplayDevice's native-path is not a battery node. Happy to review that stacked PR if you draft it.

@calledtoconstruct
calledtoconstruct force-pushed the fix/dual-battery-displaydevice branch from d3aa5f2 to f3c5419 Compare September 30, 2026 13:37
@greptile-apps

greptile-apps Bot commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5 · The PR appears safe to merge; no new actionable issue was established.RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no new actionable issue was established.

Summary

Reports combined battery readings through UPower’s DisplayDevice when more than one present system battery exists.

  • Battery status uses the combined reading when multiple packs are present.

The earlier unnumbered test-coverage comment is addressed: the dual-pack test explicitly requires the combined 12W rate.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart TD
  A[Read UPower devices] --> B[Count present system batteries]
  B --> C{More than one pack?}
  C -->|No| D[Use physical pack readings]
  C -->|Yes| E{DisplayDevice read succeeds?}
  E -->|Yes| F[Use combined readings]
  E -->|No| D
  D --> G[Use live sysfs power when available]
  F --> H[Keep physical-pack health, cycles, and limits]
  G --> I[Format battery status]
  H --> I
Loading

Reviews (7) · Last reviewed commit: "Guard the physical pack firmware charge-..." · Reviewed by Greptile

Comment thread test/shell.d/battery-status-test.sh Resolved
@omarchybot omarchybot added verified Omarchy Triage has verified that this issue is ready for final review ready Good to merge labels Sep 30, 2026
@omarchybot

Copy link
Copy Markdown
Collaborator

Reviewed at f3c5419 against quattro (8b4eae6). Nothing found that needs changing.

Reproduction, on a disposable Omarchy worker VM: I stubbed upower with a dual-pack ThinkPad T480 using the output from #10244 (BAT0 idle at 98%, BAT1 draining at 14%, DisplayDevice at 37.5% with native-path absent, as real DisplayDevice output has it). On quattro, omarchy-battery-status --shell reports 98% / fully-charged / 24Wh, which is the bug. On this head it reports 37% / discharging / 66Wh / 3h 12m. With only the device-selection hunk reverted, it goes back to 98%.

Tests on the worker: battery-status-test.sh, battery-test.sh, power-test.sh, power-present-test.sh and powerprofiles-set-test.sh all pass. ./test/cli passes 114 tests. Three vscode generated theme checks fail, and they fail the same way on quattro, so they are not caused by this change.

Second opinion: Codex at medium effort reviewed the diff over two rounds. It raised one possible false "Holding" state on dual-pack machines. That depends on DisplayDevice reporting charging with a near-zero rate while a pack is really charging. UPower sums the packs' rates in the same refresh that sets the state, so that combination does not occur, and Codex withdrew the finding after checking UPower's source. Nothing else is open. Independence between the two reviews is not guaranteed.

Two things this pull request deliberately leaves alone. They are not reasons to hold it:

  • On machines with more than one pack, the rate now comes from UPower's combined energy-rate rather than the live sysfs reading. The sysfs reading on quattro was from the idle pack (0W), so this is a correction, though it can lag by a UPower poll.
  • A dead pack that still advertises its old energy-full (Power panel reports dead BAT0 (0% / 0W / Holding) on dual-battery ThinkPads #7916) will still pull DisplayDevice's percentage down. The bar icon has always shown that same combined value, and the panel text now matches it.

Competing fixes: #12024 and #12445 fix the same bug by summing the packs in the script. When asked which of the three to bring forward, without being given my answer, Codex chose this one: it is the smallest, and it reads the same combined device as the bar icon. Both of the others also have problems of their own. #12445's whitespace read shifts fields when a pack reports only time to full, and it changes the single-pack percentage. #12024 mixes voltage bases when computing percentage and adds rates without regard to direction. I've linked #6885, which this fixes. #12649 (the ENODEV 0W fix) touches the same script but a different bug, and is independent.

This now waits on the maintainer.

@robvdvelden

Copy link
Copy Markdown

Tested f3c5419 on a Surface Book 2 with two batteries (tablet + keyboard base). Percentage, size and time now match UPower's DisplayDevice, where before the panel showed the tablet battery only. Works as described.

@omarchybot omarchybot added verified Omarchy Triage has verified that this issue is ready for final review ready Good to merge and removed ready Good to merge verified Omarchy Triage has verified that this issue is ready for final review labels Oct 16, 2026
@omarchybot

Copy link
Copy Markdown
Collaborator

Pushed three commits to this branch, now at 4d42c01. Claude Opus 5.5 made the changes, and Codex Medium reviewed them in two rounds. The second round found nothing left to fix.

What changed, and why:

  • Merged quattro in. No conflicts. It brings in the new time-left calculation (Work out battery time left from the draw shown beside it #15285) and the language support (Omarchy in 50 languages #15326).
  • Folded in two fixes from @Sebo1411's Prefer combined DisplayDevice in battery status for multi-battery laptops (#14798) #14861. The commit credits them as co-author.
    • upower -i now runs with LC_ALL=C. Under a decimal-comma locale, upower prints 21,6 W and 1,6 hours, and the script read those as 21 and 1. Omarchy now sets the system locale from its language picker, so this hit every non-English install, single-pack machines included.
    • On a dual-pack machine that is charging, the time to full now comes from UPower's combined estimate. The packs can each stop at a different charge limit. Working the time out against the first pack's limit gave a wrong answer, or no answer once the combined charge was past that limit.
  • UPower's time now reads correctly in every unit it uses. Codex found this one. upower prints seconds under a minute and days past a day, but only minutes were converted, so 45 seconds to full would have shown as 45h.

Checked on an Omarchy worker VM:

  • battery-status-test.sh passes 13/13 and test/cli passes.
  • The battery, power and no-battery shell tests pass.
  • quattro's script fails the dual-pack test.
  • Each of the four fixes was reverted on its own, and each revert made its test fail.
  • i18n-test.sh fails on da/menu.json, but it fails the same way on quattro, so it is not caused by this branch.

Left as it is: Codex also pointed out that on a dual-pack machine, "holding" compares the combined percentage with the first pack's charge limit. That check only fires when AC is connected and the combined draw is at most 0.2 W. In that state the machine really is not charging, and the limit it shows is that pack's real limit. Codex agreed nothing in this branch needs to change for it. Independence between the two reviews is not guaranteed.

Waiting on the maintainer.

@omarchybot omarchybot removed ready Good to merge verified Omarchy Triage has verified that this issue is ready for final review labels Oct 28, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@omarchybot omarchybot added the verified Omarchy Triage has verified that this issue is ready for final review label Nov 1, 2026
@omarchybot

Copy link
Copy Markdown
Collaborator

The branch conflicted with quattro again, so I merged quattro in and pushed it. The branch is now at f933eae. Claude Opus 5.5 made the merge, and Codex Medium and muse-wonder (via pi, thinking high) reviewed it. Neither found a defect.

What the merge brings in: quattro changed this script and its test in three places since the last merge. #16272 makes the status line show only the readings it has, including "Fully charged". #16278 stops a battery that is draining on AC at 100% from showing as fully charged. #16334 removes a test that only read source text. The script merged without conflicts. battery-status-test.sh conflicted only because both sides added tests at the end of the file, so I kept both: quattro's new cases come first, then this branch's dual-pack cases, unchanged.

How the two fit together: On a dual-pack machine, quattro's new "Fully charged" and draining-at-100% checks now read the combined state, rate and percentage from DisplayDevice. The charge limit, cycle count and native path still come from the first pack. Both reviewers walked those paths and found them consistent.

Checked on an Omarchy worker VM:

  • I reproduced a dual-pack ThinkPad with one idle pack and one draining. quattro's script reports 98%, fully charged, 24Wh. This branch reports 37%, discharging, 66Wh, 3h 13m.
  • battery-status-test.sh passes 13/13. With quattro's script swapped back in, it fails the dual-battery case.
  • battery-test.sh, battery-present-test.sh, power-test.sh, power-present-test.sh, power-no-battery-test.sh, system-power-test.sh and test/cli all pass.

Independence between the reviews is not guaranteed. This is now waiting on CI and then on the maintainer.

@igi-chris

Copy link
Copy Markdown

Tested on real dual-battery hardware: ThinkPad T480

Setup: internal BAT0 (LGC 01AV420, worn, 3.7 Wh full) + external BAT1 (01AV425, 22.4 Wh full). Omarchy 4.0.6-1, UPower 1.91.5, kernel 7.2.8. Charge thresholds 75–80% on both packs. I ran this PR's bin/omarchy-battery-status at f933eae on its own with --shell. 4.0.6 has no omarchy-i18n, so I stubbed only the duration formatting.

State Real (sysfs / DisplayDevice) Stock 4.0.6 This PR
Charging 61%, 33.6 W, 26 Wh 86%, holding, 0 W, 3 Wh 61%, charging, 33.6 W, 26 Wh
On battery 62%, discharging, ~6 W, 2.7 h 86%, pending-charge, 0 W, 3 Wh 61%, discharging, 6 W, 26 Wh, 2h 42m
Replugged +1–90 s BAT1 charging, BAT0 waiting at threshold 86%, holding 61%, charging throughout

This fixes the mismatch between the bar and the panel on this machine. Three notes:

  1. Cycles still come from the first pack (63, BAT0) while BAT1 has 2. That's already noted as out of scope.
  2. Rate lags after replug. For the first ~10–20 s the panel shows 0 W, while BAT1's power_now already reads 8.7 W. In combined mode the live sysfs read is skipped in favour of DisplayDevice's energy-rate, which lags. Summing power_now across the packs would keep it live; that's what I'm running locally as a workaround, and it read 8.7 W at +10 s.
  3. Time to full ignores the threshold in combined mode. It shows UPower's estimate to 100% (51m). With an 80% limit, BAT1 would really stop in ~20–25 min, and BAT0 (86%, above its 75% start threshold) won't charge at all. That might belong with Count the battery's time to full to the charge limit sysfs enforces #16685 rather than here.

This test and comment were done by Claude (Anthropic's AI) on my machine at my request; I reviewed it before posting. — Chris

omarchybot and others added 2 commits November 1, 2026 18:36
quattro's omacom#17265 rewrote the sysfs rate read to take a value only when it is a number. Keep that, and keep this branch's gate that skips it under DisplayDevice, whose rate already sums every pack.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
quattro's unreadable-rate case removes CMB0's power_now before the dual-pack case runs, so the assertion that DisplayDevice's rate wins would hold even without the gate. Put a live reading back so taking the first pack's would show as 7.3W.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Codex Medium <noreply@openai.com>
@omarchybot

Copy link
Copy Markdown
Collaborator

quattro changed this script again, so the branch conflicted. I merged quattro in and pushed one test fix. The branch is now at 755f801. Claude Opus 5.5 did the work, and Codex Medium and muse-wonder (via pi, thinking high) reviewed it over two rounds. Their first round found the test problem below, and their second round found nothing open.

The merge: #17265 changed the live-rate read so it only takes a sysfs value that is a number, and otherwise keeps UPower's rate. That collided with this branch's check that skips the sysfs read under DisplayDevice. The resolution keeps both. On one pack, a numeric power_now, or current_now × voltage_now, is used, and UPower's rate stands when neither reads as a number. With more than one pack, DisplayDevice's summed rate always stands.

The test fix: #17265's new test case deletes CMB0's power_now. The dual-pack case that runs after it reuses CMB0, so its "DisplayDevice rate, not the first pack's sysfs reading" assertion would still pass with the check removed. Both reviewers caught this. 755f801 writes a live 7.3 W reading back onto CMB0 in the dual-pack fixture. With the check stripped out, the test now fails and reports 7.3W. With the check in place, it passes.

Checked on an Omarchy worker VM:

  • In the stubbed dual-pack T480, quattro's script reports 98%, fully charged, 0W, 24Wh. This branch reports 37%, discharging, 7.7W, 66Wh, 3h 13m.
  • battery-status-test.sh passes 14/14. With quattro's script swapped in, the dual-battery case fails.
  • battery-test.sh, battery-present-test.sh, power-test.sh, power-present-test.sh, power-no-battery-test.sh, system-power-test.sh and test/cli all pass.

@igi-chris, thank you for the T480 run. It is the first test of this change on real dual-pack hardware. On your three notes (the reviewers agreed with this sorting, and independence between the reviews is not guaranteed):

  1. Cycles still come from the first pack, as before. Two packs have separate wear histories, so no single combined number would be meaningful.
  2. The rate lags after a replug. This comes from this change, because it uses DisplayDevice's energy-rate instead of one pack's live reading. That live reading was the wrong number on a two-pack machine, but it was live. Summing every pack's power_now would keep the rate live. Doing it correctly is a change of its own, though: it has to read every pack, handle drivers that sign the rate and drivers that don't, add the rates with their signs when one pack charges while another drains, and fall back to DisplayDevice when a pack that is active has no reading. Summing magnitudes, as the quick version does, overstates the draw in that case. I've left it out of this PR.
  3. Time to full in combined mode uses UPower's estimate to 100%. The one charge limit the script reads belongs to the first pack, and applying it to both packs' combined energy would be wrong in a different way. Getting it right needs each pack's energy and limit, so it fits better with Count the battery's time to full to the charge limit sysfs enforces #16685, as you suggest.

This is waiting on CI for the new head, and then on the maintainer.

@ujo4eva

ujo4eva commented Nov 15, 2026

Copy link
Copy Markdown

Friendly nudge: #12789 is stacked on this one and builds on it to fix the dead-pack case in #7916, where DisplayDevice still counts the dead pack's advertised capacity. This branch is mergeable, has been tested on a T480, and omarchybot's last review found nothing. Once it lands I'll rebase #12789 onto quattro right away.

A removed pack may remain in UPower enumeration with power supply: yes. Counting it switches a single present pack to DisplayDevice and takes cycle counts and charge limits from the removed slot. Skip candidates explicitly marked absent, preserving the live sysfs path and metadata for the remaining pack. This carries the absent-pack check from omacom#17639 without changing the first-pack metadata policy or dropping zero-capacity packs.

Co-Authored-By: Dean Blank <blankdean@gmail.com>
Co-Authored-By: GPT-6 in Codex (effort unspecified) <noreply@openai.com>
Co-Authored-By: Opus 5.5 High <noreply@anthropic.com>
@omarchybot omarchybot removed the verified Omarchy Triage has verified that this issue is ready for final review label Nov 22, 2026
@omarchybot

Copy link
Copy Markdown
Collaborator

Pushed 2127907, carrying the removed-pack check from @blankdean's #17639 with co-authorship credit. A pack explicitly marked present: no no longer counts toward the combined-device switch or supplies the cycle count and charge limit. With one pack remaining, its live sysfs rate is preserved.

On a disposable Omarchy worker, a separate simulated T480 reproduction reports 98% / fully charged / 24Wh on quattro, then 37% / discharging / 66Wh on this head. Reverting the combined-device selection restores the failure. The new removed-pack regression also fails when its guard is reverted. test/cli passed 129/129, and all seven focused battery/power shell test files passed, including battery-status-test.sh at 15/15.

These captures show the status command with identical simulated inputs; they establish the selection change, not a hardware result.

Before: simulated dual-pack input reports only the first pack, 98%

After: the same simulated input reports combined charge, 37%

GPT-6 in Codex (effort unspecified) performed the review and worker checks. Opus 5.5 High and muse-wonder via pi, thinking high reviewed this head and found no actionable defect. Their agreement is not independent proof.

The locale and combined-charging improvements from @Sebo1411's #14861 are already included. Separate fixes remain in #12484 for unavailable cycle counts, #12058 for percentage rounding, and #13292 for choosing a nonzero-capacity pack with a fallback. First-pack metadata remains as described in this PR; #12789 remains the follow-up for a dead pack that still advertises capacity.

This waits for hardware confirmation of the full commit above. The earlier T480 result tested a previous head, so I removed verified. Could @vcelletti or a maintainer with dual-battery hardware test this pinned status command on a current Omarchy install?

curl -fsSL https://raw.githubusercontent.com/calledtoconstruct/omarchy/2127907e21ca38b03eb9bedc8db185ed926250a6/bin/omarchy-battery-status -o /tmp/omarchy-battery-status-pr-10392
bash /tmp/omarchy-battery-status-pr-10392 --shell
upower -e
upower -i /org/freedesktop/UPower/devices/DisplayDevice

Please include upower -i output for each physical battery device listed, and whether the command's percentage, state, size and rate describe both packs. If the machine has a removable pack, also check that the remaining pack's readings are used after removal.

omarchybot and others added 2 commits November 27, 2026 22:36
The power panel now reports health and charge-limit controls. Keep those readings and the firmware threshold query on the same physical pack as the cycle count, while DisplayDevice supplies charge, state, and rate for multiple packs.

Co-Authored-By: GPT-6.2 in Codex <noreply@openai.com>
The combined display has no firmware charge controls. Exercise the case from omacom#14861 where the physical pack advertises support but leaves the enabled property out of its formatted output, so resolving the wrong D-Bus device fails.

Co-Authored-By: Sebo1411 <sebastijan.krklec11@gmail.com>
Co-Authored-By: GPT-6.2 in Codex <noreply@openai.com>
Co-Authored-By: Opus 5.5 High <noreply@anthropic.com>
@omarchybot

Copy link
Copy Markdown
Collaborator

I pushed caaf569f677a29c724d7215e82830f64681d8a45 after resolving the conflict with the battery health and charge-limit changes in #20379. On a dual-pack laptop, UPower's DisplayDevice supplies the combined charge, state, capacity and rate. Health, cycle count and firmware charge-limit settings come from the first present physical pack. The firmware regression carries forward the charge-limit work from @Sebo1411's #14861.

On a disposable Omarchy worker, the simulated T480 reported 98% and 24 Wh on quattro, 37% and 66 Wh on this head, and 98% again with the fix disabled. All 143 CLI checks and 123 focused shell checks passed. The firmware regression failed when the charge-limit query was switched back to DisplayDevice.

Before on quattro: simulated dual-pack status reports 98% from the first pack

After on this head: the same simulation reports 37% for both packs

GPT-6.2 Sol High in Codex ran the worker checks. Opus 5.5 High reviewed this head and found no actionable issues. Opus 5.5 High and muse-wonder via pi, thinking high, also compared #14861 and #17639 with this fix. The reviews agreed, and their independence is uncertain.

{CI_RESULT}

Could @vcelletti or a maintainer with a dual-battery laptop test this exact commit on a current Omarchy install? Please report whether the percentage agrees with UPower's DisplayDevice and whether the reported charge-limit state matches the active setting. If one pack is removable, please also check the readings after removing it.

curl -fsSL https://raw.githubusercontent.com/calledtoconstruct/omarchy/caaf569f677a29c724d7215e82830f64681d8a45/bin/omarchy-battery-status -o /tmp/omarchy-battery-status-pr-10392
bash /tmp/omarchy-battery-status-pr-10392 --shell
upower -i /org/freedesktop/UPower/devices/DisplayDevice

@maxwelhoener

Copy link
Copy Markdown

Tested on a ThinkPad T480 (20L6SHKY00) with two packs: internal BAT0 (LGC, 23.4 Wh, 2 cycles) and external BAT1 (SANYO, 23.0 Wh, 4 cycles). Omarchy 4.5.0-3, UPower 1.91.5, kernel 7.2.15-omarchy, charge thresholds 75-80 % on both packs.

omarchy-battery-status --shell from this PR (caaf569) against the shipped 4.5.0 script, same moment, charger plugged, both packs held at the limit:

key 4.5.0 (first pack) #10392 (DisplayDevice) reference
percentage 79% 79% DisplayDevice 79.7 %, sysfs BAT0 79 %, BAT1 81 %
size 23Wh 46Wh energy-full 46.39 Wh combined
state holding holding both packs "Not charging" at the 80 % limit
cycles 2 2 BAT0 2, BAT1 4
threshold 75-80% 75-80%

The combined capacity is the fix we were missing on dual-pack ThinkPads (#6885, #14798): bar and panel no longer describe only the idle internal pack. Cycles still come from the first pack, which seems fine for this fix; a per-pack view would be a separate enhancement. No regressions in the power panel (size, health, charge limit render as before). Happy to re-test on battery with the packs at different levels if that helps.

@calledtoconstruct

Copy link
Copy Markdown
Author

Thank you! @maxwelhoener

@omarchybot

Copy link
Copy Markdown
Collaborator

@maxwelhoener’s T480 test showed 46 Wh across both packs and preserved the 75–80% charge limit. Codex checked that result against the previous worker run, where the simulated panel reading changed from 98% to 37% and returned to 98% with the fix disabled. The CLI and focused shell checks passed on the worker, and Opus 5.5 High reviewed this commit and found no actionable issues.

Verification still needs a linked issue reporter or maintainer to confirm the full SHA. @vcelletti, could you try caaf569f677a29c724d7215e82830f64681d8a45 on your T480 and include that SHA in your reply? Please check whether the panel percentage matches UPower’s DisplayDevice on battery power when the two packs are at different levels. Tests and Check translation structure still await maintainer approval. Pinned test instructions

@maxwelhoener

Copy link
Copy Markdown

Follow-up on the T480 (20L6SHKY00), this time on battery with the packs at different levels and with the external pack removed, as asked above. Tested exact commit caaf569f677a29c724d7215e82830f64681d8a45 (script fetched from the pinned URL) against the shipped 4.5.0 omarchy-battery-status, same moment each time. The T480 drains the internal BAT0 first, so the packs drift apart on their own.

Situation sysfs #10392 (caaf569) 4.5.0 shipped DisplayDevice
On battery, packs level BAT0 77 % discharging, BAT1 78 % idle 77 %, 46 Wh, 6.9 W, 5 h 12 min 77 %, 23 Wh, 7.2 W, 2 h 30 min 77.6 %, 46.39 Wh, 6.93 W, 5.2 h
On battery, packs apart BAT0 70 % discharging, BAT1 78 % idle 74 %, 46 Wh, 6.1 W, 5 h 41 min 71 %, 23 Wh, 6.1 W, 2 h 42 min 74.4 %, 46.39 Wh, 6.06 W, 5.7 h
On battery, BAT1 removed BAT0 70 % discharging (BAT1 gone from sysfs/UPower) 70 %, 23 Wh, 6.4 W, 2 h 33 min 70 %, 23 Wh, 6.4 W, 2 h 33 min 70 %, 23.35 Wh, 6.39 W, 2.6 h
  • With two packs the percentage, size and time to empty follow DisplayDevice. 4.5.0 shows only the first pack's level and roughly half the runtime.
  • After hot-removing BAT1 the script falls back to the single pack straight away, using BAT0's live sysfs rate. On this machine the kernel drops BAT1 entirely, so the present: no path isn't exercised here.
  • The charge limit was reported as limit_state on, 75-80% in all three cases, which matches the thresholds that are set.

@omarchybot

Copy link
Copy Markdown
Collaborator

Codex checked the full-commit T480 follow-up against the earlier worker tests and the Opus 5.5 High review, which found no actionable issues. With the packs at different levels, the script read 74% and 46 Wh, matching UPower’s combined reading at the script’s precision. After BAT1 was removed it returned to 70% and 23 Wh, and the 75–80% charge limit held in all three cases. T480 test results

Omabot’s verification check requires the hardware confirmation to come from a linked issue reporter or a maintainer, so this test does not satisfy that check. Tests and Check translation structure also still await maintainer approval. Pinned test instructions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

6 participants