drm_hwcomposer: Do not invoke ActivateDisplayUsingDPMS when power off
When set power mode to off, should not invoke ActivateDisplayUsingDPMS,
but invoke ExecuteAtomicCommit to commit crtc ACTIVE property change.
Signed-off-by: Jia Ren <jiaren@asrmicro.com>
diff --git a/hwc2_device/HwcDisplay.cpp b/hwc2_device/HwcDisplay.cpp
index cecdbe5..333857e 100644
--- a/hwc2_device/HwcDisplay.cpp
+++ b/hwc2_device/HwcDisplay.cpp
@@ -702,7 +702,7 @@
return HWC2::Error::None;
}
- if (a_args.active) {
+ if (a_args.active && *a_args.active) {
/*
* Setting the display to active before we have a composition
* can break some drivers, so skip setting a_args.active to