Merge "display: Add xml file support for new panels"
diff --git a/sdm/libs/hwc2/hwc_display_builtin.cpp b/sdm/libs/hwc2/hwc_display_builtin.cpp
index a96f326..bbec3f7 100644
--- a/sdm/libs/hwc2/hwc_display_builtin.cpp
+++ b/sdm/libs/hwc2/hwc_display_builtin.cpp
@@ -330,6 +330,11 @@
display_intf_->GetConfig(&fixed_info);
bool command_mode = fixed_info.is_cmdmode;
+ auto status = HWCDisplay::SetPowerMode(mode, teardown);
+ if (status != HWC2::Error::None) {
+ return status;
+ }
+
display_intf_->GetConfig(&fixed_info);
is_cmd_mode_ = fixed_info.is_cmdmode;
if (is_cmd_mode_ != command_mode) {