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

Issue 1861593002: chromeos: Turn off displays on suspend (Closed)

Created:
4 years, 8 months ago by dbasehore
Modified:
4 years, 8 months ago
CC:
chromium-reviews, oshima+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

chromeos: Turn off displays on suspend To handle lucid sleep (where we need to silently resume the system), turn off the displays on suspend. This also removes the delay for restoring the display state added in "On resume perform a delayed call to SetDisplayPower()" According to the bug for that change, it didn't seem to help with the issue anyways. BUG=535021 TEST=suspend/resume of various cros platforms with/without external monitor connected Committed: https://crrev.com/fee6ba82e703d68c296730aa38ea1d4f77854631 Cr-Commit-Position: refs/heads/master@{#389875}

Patch Set 1 #

Total comments: 13

Patch Set 2 : chromeos: Turn off displays on suspend #

Total comments: 5

Patch Set 3 : chromeos: Turn off displays on suspend #

Total comments: 12

Patch Set 4 : chromeos: Turn off displays on suspend #

Patch Set 5 : chromeos: Turn off displays on suspend #

Total comments: 8

Patch Set 6 : chromeos: Turn off displays on suspend #

Patch Set 7 : chromeos: Turn off displays on suspend #

Total comments: 1

Patch Set 8 : chromeos: Turn off displays on suspend #

Patch Set 9 : chromeos: Turn off displays on suspend #

Total comments: 2

Patch Set 10 : chromeos: Turn off displays on suspend #

Patch Set 11 : chromeos: Turn off displays on suspend #

Patch Set 12 : chromeos: Add functions for configuring cached displays #

Unified diffs Side-by-side diffs Delta from patch set Stats (+111 lines, -21 lines) Patch
M ui/display/chromeos/display_configurator.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +3 lines, -0 lines 0 comments Download
M ui/display/chromeos/display_configurator.cc View 1 2 3 4 5 6 7 8 9 10 11 8 chunks +13 lines, -7 lines 0 comments Download
M ui/display/chromeos/display_configurator_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +10 lines, -0 lines 0 comments Download
M ui/display/chromeos/test/test_native_display_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M ui/display/chromeos/test/test_native_display_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +5 lines, -0 lines 0 comments Download
M ui/display/chromeos/update_display_configuration_task.h View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +4 lines, -0 lines 0 comments Download
M ui/display/chromeos/update_display_configuration_task.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +32 lines, -0 lines 0 comments Download
M ui/display/chromeos/update_display_configuration_task_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 chunks +13 lines, -13 lines 0 comments Download
M ui/display/chromeos/x11/native_display_delegate_x11.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M ui/display/chromeos/x11/native_display_delegate_x11.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +5 lines, -0 lines 0 comments Download
M ui/display/types/native_display_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +5 lines, -0 lines 0 comments Download
M ui/ozone/common/native_display_delegate_ozone.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M ui/ozone/common/native_display_delegate_ozone.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +6 lines, -1 line 0 comments Download
M ui/ozone/platform/drm/host/drm_display_host_manager.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M ui/ozone/platform/drm/host/drm_display_host_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +5 lines, -0 lines 0 comments Download
M ui/ozone/platform/drm/host/drm_native_display_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M ui/ozone/platform/drm/host/drm_native_display_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 50 (12 generated)
dbasehore
display unittests now pass.
4 years, 8 months ago (2016-04-05 05:01:55 UTC) #3
Daniel Erat
https://codereview.chromium.org/1861593002/diff/1/ui/display/chromeos/display_configurator.cc File ui/display/chromeos/display_configurator.cc (right): https://codereview.chromium.org/1861593002/diff/1/ui/display/chromeos/display_configurator.cc#newcode952 ui/display/chromeos/display_configurator.cc:952: saved_power_state_ = chromeos::DISPLAY_POWER_ALL_OFF; what's the reason for resetting this ...
4 years, 8 months ago (2016-04-05 14:40:04 UTC) #4
dnicoara
https://codereview.chromium.org/1861593002/diff/1/ui/display/chromeos/display_configurator.cc File ui/display/chromeos/display_configurator.cc (right): https://codereview.chromium.org/1861593002/diff/1/ui/display/chromeos/display_configurator.cc#newcode955 ui/display/chromeos/display_configurator.cc:955: kSetDisplayPowerOnlyIfSingleInternalDisplay, I think you still want kSetDisplayPowerForceProbe regardless of ...
4 years, 8 months ago (2016-04-05 16:56:57 UTC) #5
Eric Caruso
https://codereview.chromium.org/1861593002/diff/1/ui/display/chromeos/display_configurator.cc File ui/display/chromeos/display_configurator.cc (right): https://codereview.chromium.org/1861593002/diff/1/ui/display/chromeos/display_configurator.cc#newcode940 ui/display/chromeos/display_configurator.cc:940: // completes before we return, because otherwise the X ...
4 years, 8 months ago (2016-04-05 17:33:36 UTC) #6
dbasehore
https://codereview.chromium.org/1861593002/diff/1/ui/display/chromeos/display_configurator.cc File ui/display/chromeos/display_configurator.cc (right): https://codereview.chromium.org/1861593002/diff/1/ui/display/chromeos/display_configurator.cc#newcode940 ui/display/chromeos/display_configurator.cc:940: // completes before we return, because otherwise the X ...
4 years, 8 months ago (2016-04-06 04:40:40 UTC) #7
Daniel Erat
https://codereview.chromium.org/1861593002/diff/1/ui/display/chromeos/display_configurator.cc File ui/display/chromeos/display_configurator.cc (right): https://codereview.chromium.org/1861593002/diff/1/ui/display/chromeos/display_configurator.cc#newcode954 ui/display/chromeos/display_configurator.cc:954: SetDisplayPower(chromeos::DISPLAY_POWER_ALL_ON, On 2016/04/06 04:40:40, dbasehore wrote: > On 2016/04/05 ...
4 years, 8 months ago (2016-04-06 15:04:19 UTC) #8
marcheu1
On 2016/04/06 15:04:19, Daniel Erat wrote: > https://codereview.chromium.org/1861593002/diff/1/ui/display/chromeos/display_configurator.cc > File ui/display/chromeos/display_configurator.cc (right): > > https://codereview.chromium.org/1861593002/diff/1/ui/display/chromeos/display_configurator.cc#newcode954 ...
4 years, 8 months ago (2016-04-06 20:21:39 UTC) #9
marcheu1
https://codereview.chromium.org/1861593002/diff/20001/ui/display/chromeos/display_configurator.cc File ui/display/chromeos/display_configurator.cc (left): https://codereview.chromium.org/1861593002/diff/20001/ui/display/chromeos/display_configurator.cc#oldcode962 ui/display/chromeos/display_configurator.cc:962: base::Unretained(this))); I think this is still needed. The kernel ...
4 years, 8 months ago (2016-04-06 20:21:50 UTC) #11
dbasehore
https://codereview.chromium.org/1861593002/diff/1/ui/display/chromeos/display_configurator.cc File ui/display/chromeos/display_configurator.cc (right): https://codereview.chromium.org/1861593002/diff/1/ui/display/chromeos/display_configurator.cc#newcode954 ui/display/chromeos/display_configurator.cc:954: SetDisplayPower(chromeos::DISPLAY_POWER_ALL_ON, On 2016/04/06 15:04:19, Daniel Erat wrote: > On ...
4 years, 8 months ago (2016-04-06 20:44:45 UTC) #12
dbasehore
https://codereview.chromium.org/1861593002/diff/1/ui/display/chromeos/display_configurator.cc File ui/display/chromeos/display_configurator.cc (right): https://codereview.chromium.org/1861593002/diff/1/ui/display/chromeos/display_configurator.cc#newcode954 ui/display/chromeos/display_configurator.cc:954: SetDisplayPower(chromeos::DISPLAY_POWER_ALL_ON, On 2016/04/06 15:04:19, Daniel Erat wrote: > On ...
4 years, 8 months ago (2016-04-06 20:44:45 UTC) #13
dbasehore
https://codereview.chromium.org/1861593002/diff/20001/ui/display/chromeos/display_configurator.cc File ui/display/chromeos/display_configurator.cc (left): https://codereview.chromium.org/1861593002/diff/20001/ui/display/chromeos/display_configurator.cc#oldcode962 ui/display/chromeos/display_configurator.cc:962: base::Unretained(this))); On 2016/04/06 20:21:50, marcheu1 wrote: > I think ...
4 years, 8 months ago (2016-04-06 20:48:41 UTC) #14
dbasehore
https://codereview.chromium.org/1861593002/diff/1/ui/display/chromeos/display_configurator.cc File ui/display/chromeos/display_configurator.cc (right): https://codereview.chromium.org/1861593002/diff/1/ui/display/chromeos/display_configurator.cc#newcode954 ui/display/chromeos/display_configurator.cc:954: SetDisplayPower(chromeos::DISPLAY_POWER_ALL_ON, On 2016/04/06 20:44:45, dbasehore wrote: > On 2016/04/06 ...
4 years, 8 months ago (2016-04-06 20:53:26 UTC) #15
dbasehore
Anyone have any additional concerns? This patch is needed to have correct panel timings on ...
4 years, 8 months ago (2016-04-08 20:15:36 UTC) #16
Daniel Erat
https://codereview.chromium.org/1861593002/diff/20001/ui/display/chromeos/display_configurator.h File ui/display/chromeos/display_configurator.h (right): https://codereview.chromium.org/1861593002/diff/20001/ui/display/chromeos/display_configurator.h#newcode400 ui/display/chromeos/display_configurator.h:400: chromeos::DisplayPowerState saved_power_state_; here's a possibly-naive question: why is this ...
4 years, 8 months ago (2016-04-08 20:26:51 UTC) #17
dbasehore
https://codereview.chromium.org/1861593002/diff/20001/ui/display/chromeos/display_configurator.h File ui/display/chromeos/display_configurator.h (right): https://codereview.chromium.org/1861593002/diff/20001/ui/display/chromeos/display_configurator.h#newcode400 ui/display/chromeos/display_configurator.h:400: chromeos::DisplayPowerState saved_power_state_; On 2016/04/08 20:26:51, Daniel Erat wrote: > ...
4 years, 8 months ago (2016-04-08 20:38:11 UTC) #18
Daniel Erat
https://codereview.chromium.org/1861593002/diff/20001/ui/display/chromeos/display_configurator.h File ui/display/chromeos/display_configurator.h (right): https://codereview.chromium.org/1861593002/diff/20001/ui/display/chromeos/display_configurator.h#newcode400 ui/display/chromeos/display_configurator.h:400: chromeos::DisplayPowerState saved_power_state_; On 2016/04/08 20:38:11, dbasehore wrote: > On ...
4 years, 8 months ago (2016-04-08 20:42:11 UTC) #19
dbasehore
Okay, to do that, I'll have to break apart the RunPendingConfiguration task since that just ...
4 years, 8 months ago (2016-04-12 03:44:42 UTC) #20
Daniel Erat
On 2016/04/12 03:44:42, dbasehore wrote: > Okay, to do that, I'll have to break apart ...
4 years, 8 months ago (2016-04-12 14:06:12 UTC) #21
dbasehore
On 2016/04/12 14:06:12, Daniel Erat wrote: > On 2016/04/12 03:44:42, dbasehore wrote: > > Okay, ...
4 years, 8 months ago (2016-04-21 21:53:51 UTC) #22
Daniel Erat
sorry, i still have some questions about this. https://codereview.chromium.org/1861593002/diff/40001/ui/display/chromeos/display_configurator.cc File ui/display/chromeos/display_configurator.cc (right): https://codereview.chromium.org/1861593002/diff/40001/ui/display/chromeos/display_configurator.cc#newcode960 ui/display/chromeos/display_configurator.cc:960: if ...
4 years, 8 months ago (2016-04-21 22:16:42 UTC) #23
dbasehore
https://codereview.chromium.org/1861593002/diff/40001/ui/display/chromeos/display_configurator.cc File ui/display/chromeos/display_configurator.cc (right): https://codereview.chromium.org/1861593002/diff/40001/ui/display/chromeos/display_configurator.cc#newcode960 ui/display/chromeos/display_configurator.cc:960: if (requested_power_state_ != chromeos::DISPLAY_POWER_ALL_OFF) { On 2016/04/21 22:16:41, Daniel ...
4 years, 8 months ago (2016-04-21 22:35:10 UTC) #24
Daniel Erat
thanks! lgtm with some nits https://codereview.chromium.org/1861593002/diff/80001/ui/display/chromeos/display_configurator.h File ui/display/chromeos/display_configurator.h (right): https://codereview.chromium.org/1861593002/diff/80001/ui/display/chromeos/display_configurator.h#newcode303 ui/display/chromeos/display_configurator.h:303: void SetDisplayPowerInternal(chromeos::DisplayPowerState power_state, add ...
4 years, 8 months ago (2016-04-22 21:37:33 UTC) #25
dbasehore
https://codereview.chromium.org/1861593002/diff/80001/ui/display/chromeos/display_configurator.h File ui/display/chromeos/display_configurator.h (right): https://codereview.chromium.org/1861593002/diff/80001/ui/display/chromeos/display_configurator.h#newcode303 ui/display/chromeos/display_configurator.h:303: void SetDisplayPowerInternal(chromeos::DisplayPowerState power_state, On 2016/04/22 21:37:33, Daniel Erat wrote: ...
4 years, 8 months ago (2016-04-22 22:18:57 UTC) #26
Daniel Erat
thanks, still lgtm https://codereview.chromium.org/1861593002/diff/120001/ui/display/chromeos/display_configurator.h File ui/display/chromeos/display_configurator.h (right): https://codereview.chromium.org/1861593002/diff/120001/ui/display/chromeos/display_configurator.h#newcode304 ui/display/chromeos/display_configurator.h:304: // invoke (perhaps synchronously) on completion. ...
4 years, 8 months ago (2016-04-22 22:27:50 UTC) #27
Daniel Erat
https://codereview.chromium.org/1861593002/diff/160001/ui/display/chromeos/display_configurator_unittest.cc File ui/display/chromeos/display_configurator_unittest.cc (right): https://codereview.chromium.org/1861593002/diff/160001/ui/display/chromeos/display_configurator_unittest.cc#newcode920 ui/display/chromeos/display_configurator_unittest.cc:920: // suspended. this comment is a bit off, right? ...
4 years, 8 months ago (2016-04-25 21:10:00 UTC) #28
dbasehore
https://codereview.chromium.org/1861593002/diff/160001/ui/display/chromeos/display_configurator_unittest.cc File ui/display/chromeos/display_configurator_unittest.cc (right): https://codereview.chromium.org/1861593002/diff/160001/ui/display/chromeos/display_configurator_unittest.cc#newcode920 ui/display/chromeos/display_configurator_unittest.cc:920: // suspended. On 2016/04/25 21:10:00, Daniel Erat wrote: > ...
4 years, 8 months ago (2016-04-25 21:13:23 UTC) #29
Daniel Erat
lgtm
4 years, 8 months ago (2016-04-25 21:19:22 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1861593002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1861593002/180001
4 years, 8 months ago (2016-04-25 21:20:47 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/160197)
4 years, 8 months ago (2016-04-25 22:22:03 UTC) #34
dbasehore
On 2016/04/25 22:22:03, commit-bot: I haz the power wrote: > Try jobs failed on following ...
4 years, 8 months ago (2016-04-26 00:41:51 UTC) #35
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1861593002/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1861593002/200001
4 years, 8 months ago (2016-04-26 00:55:47 UTC) #37
dbasehore
On 2016/04/26 00:55:47, commit-bot: I haz the power wrote: > Dry run: CQ is trying ...
4 years, 8 months ago (2016-04-26 01:23:18 UTC) #38
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-26 01:50:08 UTC) #40
Daniel Erat
lgtm
4 years, 8 months ago (2016-04-26 15:14:25 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1861593002/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1861593002/200001
4 years, 8 months ago (2016-04-26 20:40:22 UTC) #43
commit-bot: I haz the power
Committed patchset #11 (id:200001)
4 years, 8 months ago (2016-04-26 20:44:55 UTC) #45
commit-bot: I haz the power
Patchset 11 (id:??) landed as https://crrev.com/fee6ba82e703d68c296730aa38ea1d4f77854631 Cr-Commit-Position: refs/heads/master@{#389875}
4 years, 8 months ago (2016-04-26 20:46:27 UTC) #47
Daniel Kurtz
4 years, 7 months ago (2016-05-05 10:44:57 UTC) #50
Message was sent while issue was closed.
A revert of this CL (patchset #12 id:220001) has been created in
https://codereview.chromium.org/1949753004/ by djkurtz@chromium.org.

The reason for reverting is: With this patch, the internal display (on oak, at
least) stays black on resume from suspend.

Perhaps "the delay for restoring the display state" really is important after
all.  Next time, I recommend including just one logical change per patch.

BUG=chrome-os-partner:52916

.

Powered by Google App Engine
This is Rietveld 408576698