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

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

Created:
7 years, 11 months ago by marcheu
Modified:
7 years, 11 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/ 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. Change-Id: I610995c12ed08624eb0bc91057d7c9bfa8002fbf Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=178195

Patch Set 1 #

Total comments: 36

Patch Set 2 : Patch set 2. #

Total comments: 1

Patch Set 3 : Patch set 3 #

Patch Set 4 : Patch set 4 #

Patch Set 5 : Removed suspend delay unregister from the destructor. #

Total comments: 2
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 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 1 chunk +4 lines, -0 lines 0 comments Download
M chromeos/dbus/power_manager_client.cc View 1 2 3 4 5 chunks +101 lines, -0 lines 2 comments Download
M chromeos/display/output_configurator.h View 1 1 chunk +5 lines, -0 lines 0 comments Download
M chromeos/display/output_configurator.cc View 1 2 2 chunks +13 lines, -2 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
marcheu
7 years, 11 months ago (2013-01-08 00:19:24 UTC) #1
Daniel Erat
just some nits https://codereview.chromium.org/11783020/diff/1/chrome/browser/chromeos/power/suspend_observer.h File chrome/browser/chromeos/power/suspend_observer.h (right): https://codereview.chromium.org/11783020/diff/1/chrome/browser/chromeos/power/suspend_observer.h#newcode15 chrome/browser/chromeos/power/suspend_observer.h:15: // A class to observe suspend ...
7 years, 11 months ago (2013-01-08 00:51:35 UTC) #2
marcheu
https://codereview.chromium.org/11783020/diff/1/chrome/browser/chromeos/power/suspend_observer.h File chrome/browser/chromeos/power/suspend_observer.h (right): https://codereview.chromium.org/11783020/diff/1/chrome/browser/chromeos/power/suspend_observer.h#newcode15 chrome/browser/chromeos/power/suspend_observer.h:15: // A class to observe suspend events On 2013/01/08 ...
7 years, 11 months ago (2013-01-10 01:03:49 UTC) #3
Daniel Erat
lgtm https://codereview.chromium.org/11783020/diff/7001/chromeos/display/output_configurator.cc File chromeos/display/output_configurator.cc (right): https://codereview.chromium.org/11783020/diff/7001/chromeos/display/output_configurator.cc#newcode139 chromeos/display/output_configurator.cc:139: << ", mode " << config->mode nit: change ...
7 years, 11 months ago (2013-01-10 01:47:59 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/marcheu@chromium.org/11783020/15001
7 years, 11 months ago (2013-01-17 01:07:39 UTC) #5
commit-bot: I haz the power
Presubmit check for 11783020-15001 failed and returned exit status 1. Running presubmit commit checks ...
7 years, 11 months ago (2013-01-17 01:07:43 UTC) #6
marcheu
sky, can you please look ack the gypi change?
7 years, 11 months ago (2013-01-17 01:11:29 UTC) #7
sky
LGTM
7 years, 11 months ago (2013-01-17 01:54:38 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/marcheu@chromium.org/11783020/15001
7 years, 11 months ago (2013-01-17 02:16:39 UTC) #9
commit-bot: I haz the power
Retried try job too often on linux_chromeos for step(s) aura_unittests, base_unittests, browser_tests, cacheinvalidation_unittests, check_deps, chromeos_unittests, ...
7 years, 11 months ago (2013-01-17 03:07:50 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/marcheu@chromium.org/11783020/36001
7 years, 11 months ago (2013-01-22 22:27:59 UTC) #11
commit-bot: I haz the power
Change committed as 178195
7 years, 11 months ago (2013-01-23 01:47:11 UTC) #12
Daniel Erat
7 years, 11 months ago (2013-01-24 22:17:38 UTC) #13
Message was sent while issue was closed.
LGTM

Thanks!

https://codereview.chromium.org/11783020/diff/45002/chromeos/dbus/power_manag...
File chromeos/dbus/power_manager_client.cc (right):

https://codereview.chromium.org/11783020/diff/45002/chromeos/dbus/power_manag...
chromeos/dbus/power_manager_client.cc:140: // - The lifetime of the
PowerManagerClientImpl can extent past that of
nit: s/extent/extend/

https://codereview.chromium.org/11783020/diff/45002/chromeos/dbus/power_manag...
chromeos/dbus/power_manager_client.cc:143: //   unregister our suspend
notifications.
nit: s/notifications/delay/

Powered by Google App Engine
This is Rietveld 408576698