diff options
author | Randall Spangler <rspangler@chromium.org> | 2013-02-12 16:48:00 -0800 |
---|---|---|
committer | ChromeBot <chrome-bot@google.com> | 2013-02-12 18:10:14 -0800 |
commit | 695289cfe6724ad349a96d1f36ddf036b3df5daa (patch) | |
tree | 9605d1914efab5ee292b329ff5cbb6c696bbd4fd /include/version.h | |
parent | 9fde14da9b2e8d8944e66c5b8f4798e0c40be72e (diff) | |
download | chrome-ec-stabilize-3701.81.B.tar.gz |
Add console command to fake battery state of chargetoolchain-3701.42.Bstabilize-3701.81.Bstabilize-3701.46.Bstabilize-3701.30.0bstabilize-3701.30.0release-R26-3701.B
The new 'battfake' command is really handy for testing low-battery
shutdown logic.
BUG=chrome-os-partner:17124
BRANCH=link
TEST=from EC console:
reboot
battfake -> using real battery level
power on system -> lightbar should be blue
battfake 5
lightbar turns red after a few seconds
UI shows battery is very low
(shows <5% due to different kernel math)
'ectool battery' from root shell shows present capacity ~5% of
design capacity
remove AC power
battfake 4
UI shows low-battery screen and shuts down (may take a minute)
battfake 50
power on system
UI shows battery at 45-55%
battfake 2 -> system shuts down immediately
battfake -1
power on system
UI shows actual battery level
Change-Id: I3180e321241c0f586f3baad2150fb6a2b2d2e242
Signed-off-by: Randall Spangler <rspangler@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/43151
Reviewed-by: Bill Richardson <wfrichar@chromium.org>
Diffstat (limited to 'include/version.h')
0 files changed, 0 insertions, 0 deletions