Repository navigation
fix(idle): restore the screens before re-arming the idle watches - #48
Merged
mirkobrombin merged 1 commit intoNov 24, 2026
Merged
Conversation
rearm() drops every idle watch, including the resume event that undoes a dim or blank. If a setting changes while the screens are dimmed, they stay dimmed. Undo the dim and blank first. Assisted-by: claude-code:claude-sonnet-5-5 AI-Scope: Diagnosed the stuck dim from logs and wrote the small fix; the author reproduced and reviewed it on hardware.
perlowja
force-pushed
the
fix-idle-restore-before-rearm
branch
from
November 18, 2026 21:52
eb4ca1b to
66c26c1
Compare
Contributor
Author
|
@mirkobrombin this merges cleanly into main and CI is green. Ready for your review. |
Member
|
Right fix. I dropped the comment, we keep code free of comments. Merging, follow-up on main. |
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.
Summary
IdleManager.rearm()drops every idle watch but does not undo a dim or blank already in progress. If a setting changes (or the charger is plugged in) while the screen is dimmed, it stays dimmed.rearm()now undoes both first.Testing
On a laptop, dim the screen, then change
screen-blank-ac. Before: the backlight stays at the dim level and the display stays off. After: both come back.Generative AI assistance
AI assistance: disclosed