Repository navigation
fix(power): reconcile refresh rate after resume - #3459
Merged
Merged
Conversation
atimofeev
force-pushed
the
fix-power-resume-reconcile
branch
from
October 6, 2026 12:10
e3e780d to
74167e5
Compare
atimofeev
marked this pull request as ready for review
October 6, 2026 12:19
Member
|
/claude review |
Contributor
Claude reviewNo issues found. |
bbedward
pushed a commit
that referenced
this pull request
Oct 7, 2026
(cherry picked from commit 8fedfae)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
lowerDisplayRefreshRateOnBatterycurrently syncs refresh-rate targets only from property-change edges. During resume or dock reconnection, AC power state can flap. If a transient battery transition succeeds but the final AC transition is missed, displays remain at the temporary 60 Hz battery mode while the system is plugged in.Schedule a short delayed reconciliation after
onSessionResumed. Retry the existing debounced refresh sync at 1s, 5s, 15s, and 30s, reading the currentBatteryService.isPluggedInstate each time. The existing power-change handler remains responsible for normal transitions; this only adds a level-based recovery path for missed edges.Type of change
Related issues
Relates to #1203 and #2428.
Screenshots / video
No visual change.
Checklist
I18n.tr()with translator context, reusing existing terms where possiblemake fmt, added/updated tests,make testpasses, andgo mod tidyis cleanmake lint-qmlwith no new warningsAdditional validation:
nix flake check --no-build --no-write-lock-file— passednix build --no-write-lock-file .#dms-shell— passedmake lint-qmlcould not run without a running Quickshell instance populating the tooling VFSAssisted-by: AI coding assistant (implementation and PR draft)