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

Issue 6715014: Display off is done by a callback into backlight controller (Closed)

Created:
9 years, 9 months ago by Simon Que
Modified:
9 years, 7 months ago
Reviewers:
Benson Leung
CC:
chromium-os-reviews_chromium.org, davidjames, Sameer Nanda
Visibility:
Public.

Description

Display off is done by a callback into backlight controller Previously, backlight controller turned off the display after backlight was turned off by using a polling event to wait for the backlight to turn off. But the polling loop caused problems. This patch replaces the polling loop with a callback. When the timeout event that finally sets backlight to zero is triggered, it will invoke the callback to determine whether the display should be turned off, based on the power state. BUG=chromium-os:13327 TEST=In /var/lib/power_manager, set [un]plugged_dim_ms to 30000 and [un]plugged_off_ms to 60000. Restart powerd. Wait for 60 seconds. The display should turn off. Change-Id: Ica4a1cc5708f28320607515e891f8aeee6831922 Signed-off-by: Simon Que <sque@chromium.org>; Committed: http://chrome-svn/viewvc/chromeos?view=rev&revision=5ae2cf3

Patch Set 1 #

Total comments: 8

Patch Set 2 : Deleted unused lines, 2010->2011 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+49 lines, -15 lines) Patch
M backlight.h View 1 3 chunks +6 lines, -1 line 0 comments Download
M backlight.cc View 1 3 chunks +15 lines, -0 lines 0 comments Download
M backlight_controller.h View 1 chunk +3 lines, -2 lines 0 comments Download
M backlight_controller.cc View 3 chunks +4 lines, -11 lines 0 comments Download
M backlight_interface.h View 2 chunks +7 lines, -0 lines 0 comments Download
M mock_backlight.h View 1 2 chunks +3 lines, -1 line 1 comment Download
M powerd_unittest.cc View 1 chunk +1 line, -0 lines 0 comments Download
M signal_callback.h View 1 chunk +10 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Simon Que
9 years, 9 months ago (2011-03-21 23:17:18 UTC) #1
Benson Leung
http://codereview.chromium.org/6715014/diff/1/backlight.cc File backlight.cc (right): http://codereview.chromium.org/6715014/diff/1/backlight.cc#newcode6 backlight.cc:6: #include "power_manager/backlight_controller.h" Do you need backlight_controller.h? http://codereview.chromium.org/6715014/diff/1/backlight.cc#newcode9 backlight.cc:9: #include ...
9 years, 9 months ago (2011-03-21 23:45:16 UTC) #2
Simon Que
PTAL http://codereview.chromium.org/6715014/diff/1/backlight.cc File backlight.cc (right): http://codereview.chromium.org/6715014/diff/1/backlight.cc#newcode6 backlight.cc:6: #include "power_manager/backlight_controller.h" On 2011/03/21 23:45:16, Benson Leung wrote: ...
9 years, 9 months ago (2011-03-22 22:08:27 UTC) #3
Benson Leung
9 years, 9 months ago (2011-03-23 03:04:54 UTC) #4
Looks good to me.

Powered by Google App Engine
This is Rietveld 408576698