Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(160)

Issue 12036092: Implement support for monitor suspend. (Closed)

Created:
7 years, 11 months ago by marcheu
Modified:
7 years, 10 months ago
Reviewers:
Daniel Erat, sky
CC:
chromium-reviews, oshima+watch_chromium.org, stevenjb+watch_chromium.org, nkostylev+watch_chromium.org, davemoore+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src@git-svn
Visibility:
Public.

Description

Implement support for monitor suspend. This speeds up idle resume by around 2.5 seconds. Previously, we would turn the panel off before idle suspend. Then we would suspend and resume. On resume, the kernel would restore the "off" state, and the Chrome monitor code would kick in to turn the panel on. This is a huge waste of time when each panel configuration step takes more than one second. Instead, just before suspending, we turn the backlight off and the panel on. On resume the kernel sets the panel state to on right away, and power_manager turns the backlight on. The Chrome monitor code still runs, but is a noop. This change needs this power_manager change to handle the backlight part: https://gerrit.chromium.org/gerrit/#/c/40971/ This landed as r178195, but was reverted in r178288 because it crashed in the VM tests; unregistering suspenddelay from the destructor was assuming that the object proxy was still around which wasn't the case. I fixed the destructor to not unregister the suspenddelay. BUG=chrome-os-partner:13364 TEST=By hand: reduce the idle suspend timeout, let the machine idle and TEST=suspend, press a key to resume and see how long it takes. The time TEST=it takes shrinks from ~4 seconds to ~1.5 second. TBR=sky@chromium.org Change-Id: I610995c12ed08624eb0bc91057d7c9bfa8002fbf Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=178754

Patch Set 1 #

Patch Set 2 : Fixed nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+185 lines, -2 lines) Patch
M chrome/browser/chromeos/chrome_browser_main_chromeos.h View 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/chrome_browser_main_chromeos.cc View 3 chunks +3 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/power/suspend_observer.h View 1 chunk +31 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/power/suspend_observer.cc View 1 chunk +24 lines, -0 lines 0 comments Download
M chrome/chrome_browser_chromeos.gypi View 1 chunk +2 lines, -0 lines 0 comments Download
M chromeos/dbus/power_manager_client.h View 1 chunk +4 lines, -0 lines 0 comments Download
M chromeos/dbus/power_manager_client.cc View 1 5 chunks +101 lines, -0 lines 0 comments Download
M chromeos/display/output_configurator.h View 1 chunk +5 lines, -0 lines 0 comments Download
M chromeos/display/output_configurator.cc View 2 chunks +13 lines, -2 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Daniel Erat
LGTM w/nits from https://codereview.chromium.org/11783020
7 years, 11 months ago (2013-01-24 22:22:07 UTC) #1
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/marcheu@chromium.org/12036092/2001
7 years, 11 months ago (2013-01-24 22:48:41 UTC) #2
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=92710
7 years, 11 months ago (2013-01-25 02:02:23 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/marcheu@chromium.org/12036092/2001
7 years, 11 months ago (2013-01-25 02:09:10 UTC) #4
commit-bot: I haz the power
7 years, 11 months ago (2013-01-25 04:50:32 UTC) #5
Message was sent while issue was closed.
Change committed as 178754

Powered by Google App Engine
This is Rietveld 408576698