ChromeOS going into sleep when kept idle for more than 20 minutes

78 views
Skip to first unread message

opensource_freak

unread,
Jan 11, 2015, 12:20:39 PM1/11/15
to chromiu...@chromium.org
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 ?

Bartosz Fabianowski

unread,
Jan 12, 2015, 4:46:33 AM1/12/15
to opensource_freak, chromiu...@chromium.org
The code you quoted just picks the action to perform. The action is then
actually run a few lines further down in the code. This should
definitely work. If you are having problems with suspend on idle, please
file a bug at crbug.com/new with as many details as possible.

Daniel Erat

unread,
Jan 12, 2015, 10:38:26 AM1/12/15
to Chromium OS dev, opensource_freak
Please see the documentation at https://www.chromium.org/chromium-os/packages/power_managerhttps://www.chromium.org/chromium-os/packages/power_manager/inactivity-delays may also be helpful.

My guess would be that something is holding an audio stream open.

--
--
Chromium OS Developers mailing list: chromiu...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-os-dev?hl=en


opensource_freak

unread,
Jan 15, 2015, 2:48:03 PM1/15/15
to chromiu...@chromium.org, hara.a...@gmail.com
Hi,
Thanks for the response.
There is nothing running in the system. not even the chrome browser. 
I just logged in to the system and kept it idle for hrs.

I tried the same both in normal mode and development mode. But system never goes to sleep. System display tuns off after 8-10 minutes and remains on.

I also checked the behavior by forcing the system to sleep. And noticed that, state_controller.cc never calls suspender.cc unless and until lid-close action or calling dbus_suspend is performed. In idle case scenario the suspender.cc is never called.

Please confirm, and help solve hte problem of system idle not going to suspend/sleep mode.

Regards

Daniel Erat

unread,
Jan 15, 2015, 5:20:48 PM1/15/15
to opensource_freak, Chromium OS dev
Look at file:///var/log/power_manager/powerd.LATEST; it should tell you what's going on. Please file a bug report with logs attached if you still think something is broken.
Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages