Fix DPMS timer not resetting when display activates#233
Merged
kdj0c merged 1 commit intokmscon:mainfrom Jan 18, 2026
Merged
Conversation
When kmscon starts with the display off/disconnected, the DPMS timer starts counting immediately. When the display later becomes active (via activate_display()), the screen is turned on but the timer is never reset. This causes the timer to expire based on time since kmscon startup rather than time since display activation, leading to unexpected screen blanking shortly after the display becomes active. Fix by calling seat_dpms_reset_timer() in activate_display() after setting DPMS to ON, ensuring the timer starts fresh when a display becomes active. Signed-off-by: Jerome Tollet <[email protected]>
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.
When kmscon starts with the display off/disconnected, the DPMS timer starts counting immediately. When the display later becomes active (via activate_display()), the screen is turned on but the timer is never reset.
This causes the timer to expire based on time since kmscon startup rather than time since display activation, leading to unexpected screen blanking shortly after the display becomes active.
This PR fixes the issue by calling seat_dpms_reset_timer() in activate_display() after setting DPMS to ON, ensuring the timer starts fresh when a display becomes active.
Changes:
Testing:
Tested on Intel Alder Lake-N with i915 driver. The fix ensures the DPMS timeout is correctly reset when the display becomes active, regardless of whether the display was on or off when kmscon started.