Skip to content

Comments

Only take drm master if needed#269

Merged
kdj0c merged 3 commits intokmscon:mainfrom
kdj0c:drm_master
Feb 2, 2026
Merged

Only take drm master if needed#269
kdj0c merged 3 commits intokmscon:mainfrom
kdj0c:drm_master

Conversation

@kdj0c
Copy link
Contributor

@kdj0c kdj0c commented Feb 2, 2026

If there are no display connected on a device, don't take drm master.

Also check dpms value, and set it only if it needed.

Jocelyn Falempe added 3 commits February 2, 2026 14:02
libdrm doesn't provide a unique name, so use the card path.

Signed-off-by: Jocelyn Falempe <[email protected]>
Read the initial value, and set it only if it needs to be changed.
This prepare the rework for drm_master, as drm_master is needed to
change DPMS, and currently it sets unconditionnaly DPMS ON too
early.

Signed-off-by: Jocelyn Falempe <[email protected]>
Signed-off-by: Jocelyn Falempe <[email protected]>
@kdj0c kdj0c merged commit fa70bce into kmscon:main Feb 2, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant