From 821e41dbaad93d6ba25ae458eb35d3025f7ee2cc Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Wed, 8 Nov 2017 23:30:02 +0000 Subject: [PATCH xf86-video-intel] sna: Disable DPMS-deferred modesetting when run as a secondary screen When being run as a secondary screen, we do not receive DPMS events (xf86DPMS() only operates on the primary screen). As such we cannot defer the modesets until the final DPMS as it will never be sent. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=103618 Signed-off-by: Chris Wilson --- src/sna/sna_display.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sna/sna_display.c b/src/sna/sna_display.c index eadc3cd..ea2f148 100644 --- a/src/sna/sna_display.c +++ b/src/sna/sna_display.c @@ -7524,7 +7524,7 @@ bool sna_mode_pre_init(ScrnInfoPtr scrn, struct sna *sna) } probe_capabilities(sna); - sna->mode.hidden = 1; + sna->mode.hidden = !isGPU(scrn); /* No DPMS passthrough */ if (!xf86GetOptValInteger(sna->Options, OPTION_VIRTUAL, &num_fake)) num_fake = 1; -- 2.7.4