Remove DPMS-on when going offscreen
authorDaniel Stone <daniels@collabora.com>
Tue, 8 Nov 2016 15:47:09 +0000 (15:47 +0000)
committerDaniel Stone <daniels@collabora.com>
Mon, 12 Dec 2016 20:49:12 +0000 (20:49 +0000)
commit893b936f9a189e0e6564634c7edad78ac959986c
tree606f16ea43a6951190f4241a26a71800ff994123
parentf33e104865c85d8c3d7b24e90bc724e0b7d1e84e
Remove DPMS-on when going offscreen

Forcing DPMS on when we lose our session may force an expensive modeset
operation, which is pointless if the next consumer (another compositor,
or the console) is going to do a modeset. These should force DPMS on
regardless.

This actively causes problems for the DRM backend, in that it may
actually require a repaint to set coherent state for DPMS off -> DPMS on
transitions, which is very much not what we want when going offscreen.

As DRM is the only backend which actually implements DPMS, just remove
this call.

Differential Revision: https://phabricator.freedesktop.org/D1483

Signed-off-by: Daniel Stone <daniels@collabora.com>
Reviewed-by: Quentin Glidic <sardemff7+git@sardemff7.net>
libweston/compositor.c