summaryrefslogtreecommitdiff
path: root/common/lightbar.c
diff options
context:
space:
mode:
authorBill Richardson <wfrichar@chromium.org>2012-12-19 11:38:41 -0800
committerGerrit <chrome-bot@google.com>2012-12-20 10:01:18 -0800
commit3eb6f58d3e18647797ad4e3f16203c419ed4c791 (patch)
treea08bec4eed9d03fec0aadbde2b3426a96f097177 /common/lightbar.c
parent20e3ac6c9a4b47f639ee372f768b2bc9627045d8 (diff)
downloadchrome-ec-3eb6f58d3e18647797ad4e3f16203c419ed4c791.tar.gz
Add AP userspace scripts to tweak lightbar colors
We have yet another tweak for the lightbar, but we don't want to update the EC. This CL adds an init script that runs on the AP at every boot and pokes the EC to modify the lightbar settings. We have to run it at every boot because the EC will hibernate after the AP has been off (not suspended) for an hour on battery power and will lose its settings. There's a corresponding CL for the ec-utils ebuild that installs the userspace scripts into the rootfs. BUG=chrome-os-partner:16827 BRANCH=link TEST=manual Build the image for Link, install, reboot. Run "ectool lightbar params". The output should match what's in /usr/share/ec/lightbar_params.txt Change-Id: If50ac2ef2432f7d60cdaf4c222b68dbdee80b2ec Signed-off-by: Bill Richardson <wfrichar@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/39979 Reviewed-by: Randall Spangler <rspangler@chromium.org> Reviewed-by: Richard Barnette <jrbarnette@chromium.org>
Diffstat (limited to 'common/lightbar.c')
-rw-r--r--common/lightbar.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/common/lightbar.c b/common/lightbar.c
index 4fe6179837..5359bc6e4f 100644
--- a/common/lightbar.c
+++ b/common/lightbar.c
@@ -193,9 +193,9 @@ static const struct lightbar_params default_params = {
.osc_max = { 0xd0, 0xd0 }, /* battery, AC */
.w_ofs = {24, 24}, /* phase offset, 256 == 2*PI */
- .bright_bl_off_fixed = {0x80, 0xc0}, /* backlight off: battery, AC */
- .bright_bl_on_min = {0x80, 0xc0}, /* backlight on: battery, AC */
- .bright_bl_on_max = {0x80, 0xc0}, /* backlight on: battery, AC */
+ .bright_bl_off_fixed = {0xcc, 0xff}, /* backlight off: battery, AC */
+ .bright_bl_on_min = {0xcc, 0xff}, /* backlight on: battery, AC */
+ .bright_bl_on_max = {0xcc, 0xff}, /* backlight on: battery, AC */
.battery_threshold = { 10, 40, 99 }, /* percent, lowest to highest */
.s0_idx = {