AppHouseKitchen / AlDente-Charge-Limiter

Menubar Tool to set Charge Limits and Prolong Battery Lifespan
https://apphousekitchen.com/
Other
7.86k stars 290 forks source link

Charged past limit #24

Closed exiva closed 4 years ago

exiva commented 4 years ago

I installed AlDente on my MacBook Pro (Retina, 13-inch, Early 2015) Running 10.15.5, Set the max to 80%, and discharged the battery to 50%. Plugged it in, and it charged back up to 100% despite the 80% limit. Do you need to reboot or something after the change is set? Is there a way to verify the new limit got set with a command or something?

Love the idea of the app, especially since the native Apple one is disabled on machines that would actually benefit from it. Hopefully can get this working. Thanks!

Screen Shot 2020-06-19 at 2 56 11 PM Screen Shot 2020-06-19 at 2 56 19 PM
DevNulPavel commented 4 years ago

Has charge limit value been saved after your macbook reboot?

zackelia commented 4 years ago

@exiva I have the exact same MacBook as you, so it should work. I couldn't find an easy way to read the max battery charge level from the terminal so I put together some swift code that you can quickly compile and run to verify. It uses the same SMC.swift from the helper tool appended with a few lines to read the BCLM value. I posted the code in a gist here.

$ swiftc read-bclm.swift
$ ./read-bclm 
77
exiva commented 4 years ago

@zackelia Hmm. That came back as 100, and any time I change the value in aldente it stays at 100. 🤔 Let me try a reboot and see what happens.

DevNulPavel commented 4 years ago

https://github.com/sicreative/BatteryStatusShow Maybe this application will work and it will change BCLM value in SMC.

Or you can try my simple script https://github.com/DevNulPavel/osx_battery_charge_limit

All of this applications have the same logic

exiva commented 4 years ago

Ok, I rebooted and it reset back to 100 in aldente. Now changing it in aldente is being reflected in the check app @zackelia posted. I guess a reboot is required before it is able to modify the SMC params. Going to discharge my battery some and see what happens.

exiva commented 4 years ago

Rebooting after installing did the trick. Thanks again for the help.