diff options
author | Bill Richardson <wfrichar@chromium.org> | 2012-12-19 11:38:41 -0800 |
---|---|---|
committer | Gerrit <chrome-bot@google.com> | 2012-12-20 10:01:18 -0800 |
commit | 3eb6f58d3e18647797ad4e3f16203c419ed4c791 (patch) | |
tree | a08bec4eed9d03fec0aadbde2b3426a96f097177 /board/link/userspace/usr/share/ec/lightbar_params.txt | |
parent | 20e3ac6c9a4b47f639ee372f768b2bc9627045d8 (diff) | |
download | chrome-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 'board/link/userspace/usr/share/ec/lightbar_params.txt')
-rw-r--r-- | board/link/userspace/usr/share/ec/lightbar_params.txt | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/board/link/userspace/usr/share/ec/lightbar_params.txt b/board/link/userspace/usr/share/ec/lightbar_params.txt new file mode 100644 index 0000000000..5561ede29c --- /dev/null +++ b/board/link/userspace/usr/share/ec/lightbar_params.txt @@ -0,0 +1,31 @@ +2500 # .google_ramp_up +10000 # .google_ramp_down +2000 # .s3s0_ramp_up +45000 # .s0_tick_delay (battery) +30000 # .s0_tick_delay (AC) +5000 # .s0a_tick_delay (battery) +3000 # .s0a_tick_delay (AC) +2000 # .s0s3_ramp_down +5000000 # .s3_sleep_for +2500 # .s3_ramp_up +10000 # .s3_ramp_down +1 # .new_s0 +0x60 0x60 # .osc_min (battery, AC) +0xd0 0xd0 # .osc_max (battery, AC) +24 24 # .w_ofs (battery, AC) +0xcc 0xff # .bright_bl_off_fixed (battery, AC) +0xcc 0xff # .bright_bl_on_min (battery, AC) +0xcc 0xff # .bright_bl_on_max (battery, AC) +10 40 99 # .battery_threshold +5 4 4 4 # .s0_idx[] (battery) +4 4 4 4 # .s0_idx[] (AC) +5 255 255 255 # .s3_idx[] (battery) +255 255 255 255 # .s3_idx[] (AC) +0x33 0x69 0xe8 # color[0] +0xd5 0x0f 0x25 # color[1] +0xee 0xb2 0x11 # color[2] +0x00 0x99 0x25 # color[3] +0x00 0x00 0xff # color[4] +0xff 0x00 0x00 # color[5] +0xff 0xff 0x00 # color[6] +0x00 0xff 0x00 # color[7] |