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 <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2017-11-08 23:30:02 +00:00
parent 91822571ba
commit 8dfb6477be
1 changed files with 1 additions and 1 deletions

View File

@ -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;