diff options
author | Ander Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com> | 2013-06-04 16:24:05 +0300 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2013-06-05 00:01:35 -0400 |
commit | 722a2d523c90c2315121ddff6a001de2fe6965e6 (patch) | |
tree | bd00b13689137c44cfccd1ef260ad68a8e09ab1a | |
parent | a0a433a223be3e3b526485475cf43b4f9e9ca548 (diff) |
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
-rw-r--r-- | src/compositor-drm.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/compositor-drm.c b/src/compositor-drm.c index 27d4d020..45aa61fb 100644 --- a/src/compositor-drm.c +++ b/src/compositor-drm.c @@ -588,6 +588,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, |