Skip to content
This repository has been archived by the owner on Nov 1, 2021. It is now read-only.

Commit

Permalink
Merge pull request #1713 from Emantor/fix/legacy_null_modeset
Browse files Browse the repository at this point in the history
drm: legacy: issue a NULL modeset on disable
  • Loading branch information
ascent12 authored Jun 2, 2019
2 parents 6dfe238 + 96e9c0f commit abddd7b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions backend/drm/legacy.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit abddd7b

Please sign in to comment.