Skip to contentSkip to conversation

drm/atomic-helper: Also update legacy dpms state

PATCH Applied Daniel Vetter 3 participants 3 messages Jul 15, 2015 – Jul 16, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/atomic-helper: Also update legacy dpms state

Avoids legacy userspace/code getting confused when dpms doesn't reflect reality of what's going on.

---
 drivers/gpu/drm/drm_atomic_helper.c | 5 +++++
 1 file changed, 5 insertions(+)
drivers/gpu/drm/drm_atomic_helper.c +5 -0
index 91ad6bd13734..2a5f2907ca3a 100644
@@ -661,6 +661,11 @@ drm_atomic_helper_update_legacy_modeset_state(struct drm_device *dev,
 
 		connector->encoder = connector->state->best_encoder;
 		connector->encoder->crtc = connector->state->crtc;
+
+		if (connector->state->crtc->state->active)
+			connector->dpms = DRM_MODE_DPMS_ON;
+		else
+			connector->dpms = DRM_MODE_DPMS_OFF;
 	}
 
 	/* set legacy state in the crtc structure */
Signature · 6 lines
2.1.4

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
#2 lore raw
Quoted 7 lines · Daniel Stone
Quoted 4 lines · Daniel Vetter

Avoids legacy userspace/code getting confused when dpms doesn't reflect reality of what's going on.

Applied to drm-misc, thanks for the review.
-Daniel

Signature · 7 lines
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx