Tried keeping chromebook idle for more than 2-3 hours both in AC and DC mode.
But the system doesn't go to sleep.
Checked the /var/log/power_manager/powerd_LATEST for the activities.
The log shows display goes DIM and then OFF after 7-10 minutes.
But the system never goes to suspend .
When checked in state_controller.cc, saw the below code which doesn't seem like calling suspend when idle time is beyond expected reference suspend time.
"Action idle_action_to_perform = DO_NOTHING;
if (idle_duration >= delays_.idle) {
if (!idle_action_performed_) {
idle_action_to_perform = idle_action_;
if (!delegate_->IsOobeCompleted()) {
VLOG(1) << "Not performing idle action without OOBE completed";
idle_action_to_perform = DO_NOTHING;
}
if (idle_action_to_perform == SUSPEND &&
require_usb_input_device_to_suspend_ &&
!delegate_->IsUsbInputDeviceConnected()) {
VLOG(1) << "Not suspending for idle without USB input device";
idle_action_to_perform = DO_NOTHING;
}
if (idle_action_to_perform == SUSPEND &&
delegate_->ShouldAvoidSuspendForHeadphoneJack()) {
VLOG(1) << "Not suspending for idle due to headphone jack";
idle_action_to_perform = DO_NOTHING;
}
VLOG(1) << "Ready to perform idle action ("
<< ActionToString(idle_action_to_perform) << ") after "
<< TimeDeltaToString(idle_duration);
idle_action_performed_ = true;
}
} else {
idle_action_performed_ = false;
}
"
and when idle_action_performed_ = true;, the actions are either SHUTDOWN or lid-close action which will put system in sleep.
Is it that suspend/sleep the chromebook, when system is idle without any activity for more than expected time is REMOVED in chromeOS ?