ec icon indicating copy to clipboard operation
ec copied to clipboard

Don't power on if battery SOC is ≤5%

Open crawfxrd opened this issue 1 year ago • 1 comments

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

crawfxrd avatar Jun 27 '24 19:06 crawfxrd

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.

crawfxrd avatar Aug 18 '25 15:08 crawfxrd