Skip to content

Comments

drm: Fix black screen when switching back to kmscon#266

Merged
kdj0c merged 1 commit intokmscon:mainfrom
kdj0c:fix_vt_switch_drm3d
Jan 31, 2026
Merged

drm: Fix black screen when switching back to kmscon#266
kdj0c merged 1 commit intokmscon:mainfrom
kdj0c:fix_vt_switch_drm3d

Conversation

@kdj0c
Copy link
Contributor

@kdj0c kdj0c commented Jan 29, 2026

When switching back to a kmscon console, the screen is black until an input event occurs (keyboard or mouse). This is particularly visible with drm3d (hwaccel), even if the fix applies also to drm2d.

When switching back to a kmscon console, the screen is black until
an input event occurs (keyboard or mouse). This is particularly
visible with drm3d (hwaccel), even if the fix applies also to drm2d.

Signed-off-by: Jocelyn Falempe <[email protected]>
@jtollet
Copy link
Contributor

jtollet commented Jan 30, 2026

When switching back to a kmscon console, the screen is black until an input event occurs (keyboard or mouse). This is particularly visible with drm3d (hwaccel), even if the fix applies also to drm2d.

Have you turned dpms-timeout on or off ?

@kdj0c
Copy link
Contributor Author

kdj0c commented Jan 30, 2026

In my testing I didn't enable DPMS timeout.

The bug is that when you switch VT, the first frame is black, and kmscon will redraw only if something changes (so either mouse or keyboard event).

@kdj0c kdj0c merged commit 396ae6c into kmscon:main Jan 31, 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.

2 participants