diff options
author | Daisuke Nojiri <dnojiri@chromium.org> | 2021-06-29 11:15:55 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-06-29 19:58:51 +0000 |
commit | 9fe1acf064782eaa8ce2b0039f0ff17f3e552421 (patch) | |
tree | 9e61b59c7ef2d10c7494b5a3b66505214850085a /include/battery.h | |
parent | e1807baa12054ec4adfb4319506f960ea9046df5 (diff) | |
download | chrome-ec-9fe1acf064782eaa8ce2b0039f0ff17f3e552421.tar.gz |
battery: Set host's low battery shutdown SoC to 3%
Currently, the host's low battery shutdown SoC is 2%. This is the
same as EC's low battery shutdown threshold. The EC waits for 30 secs
before it triggers the low battery shutdown and powerd reads the SoC
every 30 secs. Thus, in most cases powerd can shut down the system
gracefully but these delays can be configured differently and the
system may be too busy to process all shutdown tasks within 30 secs.
This patch increases the host's shutdown SoC to 3%. This will further
guarantee that powerd will be given enough time to do everything for
a proper shutdown. It also avoids deeply discharging the battery,
which is bad for the battery health.
BUG=b:191837893
BRANCH=None
TEST=Altas using battfake EC command.
Change-Id: I3ab23205b400a1a326a60b8f9501611c027183b2
Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2994747
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Diffstat (limited to 'include/battery.h')
-rw-r--r-- | include/battery.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/battery.h b/include/battery.h index 666b18c091..49525e59cf 100644 --- a/include/battery.h +++ b/include/battery.h @@ -49,7 +49,8 @@ extern struct ec_response_battery_dynamic_info /* * Shut down main processor and/or hibernate EC when discharging and battery - * level < this level. + * level < this level. Setting this too low makes the battery discharge too + * deeply, which isn't good for the battery health. */ #define BATTERY_LEVEL_SHUTDOWN 3 |