Files
OpenCellular/include
Randall Spangler 695289cfe6 Add console command to fake battery state of charge
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>
2013-02-12 18:10:14 -08:00
..
2012-10-30 10:45:07 -07:00
2012-10-24 10:09:20 -07:00
2012-10-30 12:42:47 -07:00
2012-10-30 14:50:03 -07:00
2011-12-07 19:10:02 +00:00
2012-10-26 09:49:38 -07:00
2012-10-25 11:24:04 -07:00
2012-10-30 12:42:46 -07:00
2012-10-30 15:33:25 -07:00
2012-06-29 10:46:22 -07:00
2012-10-23 17:32:01 -07:00
2012-10-30 12:42:46 -07:00
2012-10-23 17:32:02 -07:00
2012-06-07 09:59:55 -07:00
2013-02-05 09:45:44 -08:00
2012-11-04 20:27:57 -08:00
2011-12-07 19:10:02 +00:00
2012-10-25 14:12:11 -07:00
2012-10-29 10:36:05 -07:00
2013-02-05 20:16:17 -08:00
2012-10-25 14:12:11 -07:00
2011-12-07 19:10:02 +00:00
2012-10-25 14:12:10 -07:00
2012-10-25 17:03:44 -07:00
2012-10-25 17:03:44 -07:00
2012-08-09 17:40:37 -07:00
2012-10-30 14:50:03 -07:00
2012-10-25 17:03:43 -07:00
2012-09-09 11:00:34 -07:00
2012-10-26 13:10:57 -07:00
2012-10-29 16:52:49 -07:00
2013-02-07 22:06:05 -08:00
2012-10-30 12:42:43 -07:00
2012-10-26 09:49:37 -07:00