From 7583aff275ccbe0c4d6bb37ec9343773d119e18a Mon Sep 17 00:00:00 2001 From: Ander Conselvan de Oliveira Date: Tue, 4 Jun 2013 16:24:05 +0300 Subject: [PATCH] compositor-drm: Force DPMS state to ON after drmModeSetCrtc() The kernel is supposed to set this when drmModeSetCrtc() is called but at least the i915 driver wouldn't do that in all cases. A fix for this should be released with kernel 3.10, but we work around the issue in older kernels by always forcing DPMS to ON when doing a mode set. https://bugs.freedesktop.org/show_bug.cgi?id=64873 --- src/compositor-drm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/compositor-drm.c b/src/compositor-drm.c index bc68a6b16..b3cf9a97e 100644 --- a/src/compositor-drm.c +++ b/src/compositor-drm.c @@ -568,6 +568,7 @@ drm_output_repaint(struct weston_output *output_base, weston_log("set mode failed: %m\n"); return; } + output_base->set_dpms(output_base, WESTON_DPMS_ON); } if (drmModePageFlip(compositor->drm.fd, output->crtc_id,