From b0bd86285f0a74d9fbb32d46113fd93f1740896b Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Sat, 21 Oct 2023 18:45:27 +0200 Subject: [PATCH] backend/drm: leave CRTCs on when shutting down This avoids a black screen during multiple seconds on shutdown. To fully allow for flicker-free transitions between DRM masters, we will also need [1]. [1]: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4394 Closes: https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/3497 --- backend/drm/backend.c | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/drm/backend.c b/backend/drm/backend.c index 4ee79773..26cd78e2 100644 --- a/backend/drm/backend.c +++ b/backend/drm/backend.c @@ -35,6 +35,7 @@ static void backend_destroy(struct wlr_backend *backend) { struct wlr_drm_connector *conn, *next; wl_list_for_each_safe(conn, next, &drm->connectors, link) { + conn->crtc = NULL; // leave CRTCs on when shutting down destroy_drm_connector(conn); }