Repository navigation
Refresh power-panel battery telemetry less often - #21006
Cynnamoroll wants to merge 1 commit into
Conversation
Keep immediate reads for panel opens, power source changes and charge-limit updates. Poll the remaining battery telemetry every 30 seconds while the panel is open. Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
[Low impact] The PR appears safe to merge. SummaryThe power panel now samples battery telemetry every 30 seconds instead of every five seconds while open.
Reviews (1) · Last reviewed commit: "Refresh power-panel battery telemetry le..." · Reviewed by Greptile |
|
your commit is in #21013, on the power panel after the charger share from #20891. the slower telemetry refresh is the panel timer only. the warning service is unchanged by it. @dhh @omarchybot if 21013 lands, this can close as superseded. |
|
GPT-6 High in Codex read the power panel diff and #7582 and classified the five-second battery-helper launches as a performance bug. DeepSeek V4.1 Flash, using its default effort, classified the longer sampling interval as an enhancement. The classification is open for maintainer review. #21013 and #21226 include the polling change and are both open. |
What changes
The open power panel launches
omarchy-battery-status --shellevery five seconds. Sample battery telemetry every 30 seconds while open, without changing the chart or profile refresh cadence. Keep immediate reads on open or reopen, delivered power-source changes while open, explicit charge-limit refreshes, and completion of a charge-limit action. The closed panel still does not poll.Values without a change signal can wait up to 30 seconds for the next scheduled sample, plus normal timer scheduling and helper completion time. This addresses the remaining telemetry polling described in #7582.
Verification
power-test.shpassed 54 checks,battery-status-test.shpassed 12 with the checkout environment, andgit diff --checkpassed. The full shell suite was not run.Screenshots
No visible change: layout, styling, and animations are unchanged. Unsignaled battery values update less often by design.