From 8dfb6477bef580383bb57ea3555cf32147062979 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Wed, 8 Nov 2017 23:30:02 +0000 Subject: [PATCH] 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, I guess one day we will have to fix that and undo this hack). 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 eadc3cda..ea2f148d 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;