aboutsummaryrefslogtreecommitdiff
path: root/backend
diff options
context:
space:
mode:
authorScott Anderson <scott@anderso.nz>2019-06-02 08:28:47 +0000
committerGitHub <noreply@github.com>2019-06-02 08:28:47 +0000
commitabddd7b4db54a0066850e6a0deb8c3f24581639e (patch)
tree72308eddaededf2979fcf911f796133c95609a31 /backend
parent6dfe238ff1e756bc51a609143d22f0659e3e89c8 (diff)
parent96e9c0f9c8a0a6e6b215888564906475f2ba7189 (diff)
Merge pull request #1713 from Emantor/fix/legacy_null_modeset
drm: legacy: issue a NULL modeset on disable
Diffstat (limited to 'backend')
-rw-r--r--backend/drm/legacy.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/backend/drm/legacy.c b/backend/drm/legacy.c
index 182c7a95..c414f4e6 100644
--- a/backend/drm/legacy.c
+++ b/backend/drm/legacy.c
@@ -29,6 +29,12 @@ static bool legacy_conn_enable(struct wlr_drm_backend *drm,
struct wlr_drm_connector *conn, bool enable) {
int ret = drmModeConnectorSetProperty(drm->fd, conn->id, conn->props.dpms,
enable ? DRM_MODE_DPMS_ON : DRM_MODE_DPMS_OFF);
+
+ if (!enable) {
+ drmModeSetCrtc(drm->fd, conn->crtc->id, 0, 0, 0, NULL, 0,
+ NULL);
+ }
+
return ret >= 0;
}