Files
OpenCellular/include
Randall Spangler 6971fd7a7f After shutting down AP, hibernate EC if battery is low
This preserves more battery for the real-time clock.  It also gets rid
of one battery level/state, since the EC will now shut down at the
same level (2%) as the AP.

Having the EC hibernate at the same level as the AP shuts down also
prevents the following weird scenario:

- EC powers on at 2% battery.
- EC won't power on the AP to do software sync because battery is low.
- But the charge state machine won't actually hibernate the EC until 1%.
- Between 2% and 1%, AC is inserted and system starts charging.
- But EC-RO is what's doing the charging; we should go through software sync
  before charging.

BUG=chrome-os-partner:17124
BRANCH=link
TEST=manual

On battery power,
1) With system on, battfake 2 -> system shuts down and EC hibernates
2) With system off, battfake 2 -> EC hibernates

Change-Id: I87d17f70d60673f3e3f1c6eb88f3f00a8c9ed4e7
Signed-off-by: Randall Spangler <rspangler@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/44314
2013-03-05 10:26:21 -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
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
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
2012-10-30 12:42:43 -07:00
2012-10-26 09:49:37 -07:00