From ec10cef592b7a3d1dc3c4949778e72e8cd156245 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Tue, 12 Aug 2014 10:52:12 +0100 Subject: [PATCH] sna: Only apply a DPMS change for an enabled CRTC Mostly paranoia, but we need to validate that the stored mode is valid before applying the modeset. Signed-off-by: Chris Wilson --- src/sna/sna_display.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/sna/sna_display.c b/src/sna/sna_display.c index f723481e..04e9a414 100644 --- a/src/sna/sna_display.c +++ b/src/sna/sna_display.c @@ -2157,6 +2157,7 @@ sna_crtc_dpms(xf86CrtcPtr crtc, int mode) priv->dpms_mode = mode; if (mode == DPMSModeOn && + crtc->enabled && priv->bo == NULL && !__sna_crtc_set_mode(crtc)) mode = DPMSModeOff;