Commit b268257f authored by Roman Stratiienko's avatar Roman Stratiienko
Browse files

drm_hwcomposer: Restore DPMS setting for legacy platforms



Signed-off-by: default avatarRoman Stratiienko <roman.o.stratiienko@globallogic.com>
parent cef5c77e
Pipeline #471828 passed with stages
in 6 minutes and 14 seconds
......@@ -119,6 +119,13 @@ auto DrmDisplayCompositor::CommitFrame(AtomicCommitArgs &args) -> int {
DrmModeUserPropertyBlobUnique mode_blob;
if (args.active) {
if (connector->dpms_property()) {
drmModeConnectorSetProperty(drm->fd(), connector->id(),
connector->dpms_property(),
*args.active ? DRM_MODE_DPMS_ON
: DRM_MODE_DPMS_OFF);
}
if (!crtc->active_property().AtomicSet(*pset, *args.active) ||
!connector->crtc_id_property().AtomicSet(*pset, crtc->id())) {
return -EINVAL;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment