power: Read panel backlight's maximum nits from VPD.
Make powerd's Upstart script read the panel backlight's
luminance from the VPD cache file and copy it to a pref, and
update powerd to use that pref to interpret the
internal_backlight_no_als_ac_brightness and
internal_backlight_no_als_battery_brightness prefs.
BUG=chrome-os-partner:28715
TEST=updated a test; also manually verified by running
"vpd -s panel_backlight_max_nits=200" and checking that
the prefs are interpreted correctly
CQ-DEPEND=I211959703cdeba4e4c8a8de8dbf7e3f3eed04712
Change-Id: I59a1679d4335e25979de6862d205700b45352ee4
Reviewed-on: https://chromium-review.googlesource.com/205438
Tested-by: Daniel Erat <derat@chromium.org>
Reviewed-by: Chris Masone <cmasone@chromium.org>
Reviewed-by: Bernie Thompson <bhthompson@chromium.org>
Commit-Queue: Daniel Erat <derat@chromium.org>
5 files changed