aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJia Ren <jiaren@asrmicro.com>2022-11-17 17:26:00 +0800
committerJia Ren <jiaren@asrmicro.com>2022-11-17 22:21:50 +0800
commit80566fe554f3d53675adaf32427650fe2c675750 (patch)
tree318fa829205823d4242f04821d1c9b2539088d38
parent4dfa62d8257bdd3f0568373bbb77f6d99ae94baa (diff)
downloaddrm_hwcomposer-80566fe554f3d53675adaf32427650fe2c675750.tar.gz
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>
-rw-r--r--hwc2_device/HwcDisplay.cpp2
1 files changed, 1 insertions, 1 deletions
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 @@ HWC2::Error HwcDisplay::SetPowerMode(int32_t mode_in) {
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