AppHouseKitchen / AlDente-Charge-Limiter

macOS menubar tool to set Charge Limits and prolong battery lifespan
https://apphousekitchen.com/
Other
7.63k stars 286 forks source link

Use System-Level/Firmware 80% Limit #1105

Closed sieren closed 7 months ago

sieren commented 7 months ago

Describe the solution you'd like Use a mixed strategy of firmware-level/daemon level charging limit.

Additional context As pointed out in https://github.com/actuallymentor/battery/pull/163 there is a hidden SMC Key inside of the newer Apple Silicon Macbooks that can limit the charging level to 80%. As pointed out in the article, this could increase the reliability of surpassing 80% in case the daemon fails or isn't loaded:

This branch uses a new SMC key (CHWA) to set a firmware-based limit of 80% without any userspace daemon running therefore this limits works while the mac is sleep or shutdown down. This requires an updated firmware so if you cannot see CHWA key (sudo smc -r -k CHWA) please update your MacOs before reporting an issue.

If the user picks a limit below 80% a mixed strategy is applied: the daemon and the firmware-limit will be enabled.

Maybe this is worth considering for AlDente Pro as an additional failsafe/feature?

sieren commented 7 months ago

Closing as it's a dupe of https://github.com/AppHouseKitchen/AlDente-Charge-Limiter/issues/966