From a65ef8ea860e70183d0e0b44d650f0e9d2a9bf0e Mon Sep 17 00:00:00 2001 From: Markus Ongyerth Date: Mon, 26 Feb 2018 18:12:51 +0100 Subject: restore dpms state on drm resume If there is no current mode, set outputs to dpms off in drm resume. Sets current mode to null on disable to ensure this can be checked. --- backend/drm/backend.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'backend/drm/backend.c') diff --git a/backend/drm/backend.c b/backend/drm/backend.c index 47dff227..fec14da9 100644 --- a/backend/drm/backend.c +++ b/backend/drm/backend.c @@ -83,6 +83,8 @@ static void session_signal(struct wl_listener *listener, void *data) { wl_list_for_each(conn, &drm->outputs, link){ if (conn->output.current_mode) { wlr_output_set_mode(&conn->output, conn->output.current_mode); + } else { + wlr_drm_connector_enable(&conn->output, false); } if (!conn->crtc) { -- cgit v1.2.3