ec
ec copied to clipboard
Don't power on if battery SOC is ≤5%
Prevent battery depletion and power-on-failure by not allowing the system to power on when:
- System is not connected to AC power
- Battery relative state of charge (RSOC) is ≤5%
Maybe we can blink the LED as an indication that it won't power on due to battery charge.
Check:
- 5% is arbitrary; is there any specific minimum charge that should be used?
Related:
- Should charging thresholds have a minimum allowed value?
- https://github.com/system76/firmware-open/issues/62
Related: coreboot (really, ChromeOS) got some support for this with PLATFORM_HAS_EARLY_LOW_BATTERY_INDICATOR. It uses FSP uGOP to display a low battery image on the screen before it runs FSP-M.