Merge "composer: do not fail control IPC due to no active displays."
diff --git a/composer/hwc_session_services.cpp b/composer/hwc_session_services.cpp
index a069d81..b61c3b5 100644
--- a/composer/hwc_session_services.cpp
+++ b/composer/hwc_session_services.cpp
@@ -570,8 +570,8 @@
int HWCSession::ControlIdlePowerCollapse(bool enable, bool synchronous) {
hwc2_display_t active_builtin_disp_id = GetActiveBuiltinDisplay();
if (active_builtin_disp_id >= HWCCallbacks::kNumDisplays) {
- DLOGE("No active displays");
- return -EINVAL;
+ DLOGW("No active displays");
+ return 0;
}
bool needs_refresh = false;
{