mirror of
https://github.com/AppHouseKitchen/AlDente-Battery_Care_and_Monitoring.git
synced 2026-03-24 18:31:47 +01:00
Al Dente 2.2 + Apple's Optimised battery charging together may be better? M1 2020 Air #209
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Peter376 on GitHub (Jun 24, 2021).
Attention: in my follow up post I found that for my two M1 MBA units, charging stops at the desired percentage set in Al Dente, even with the lid closed. So the below may not be relevant anymore, pending the findings in that other post.
Hey all,
I read the FAQ, it tells me to disable Apple's Optimised battery charging as to prevent any interference with Al Dente. I understand that. However, with lid closed Al Dente cannot be activated and charging will proceed to 100%.
I discovered the following:
On one of the kids M1 units I installed Al Dente (non Pro) and forgot to uncheck Apple's Optimised battery charging. Weeks before, I wrote a script that writes all battery charge/release cycles to a log file and when reviewing those logs I noticed that that machine hardly ever reached 100%. The script keeps track of battery load percentage, charger status (connected or disconnected), and time. As it runs every 10 minutes, prolonged intervals indicate when the lid was closed. This script also sends notifications to the user to urge them to stop or start charging when required.
So this is what I was thinking:
Solution (or at least improvement):
Scenario 1: charging with lid open :
Scenario 2: charging with lid closed:
So by enabling Apple's Optimised battery charging feature, we can prevent numerous 100% charge cycles, given our use case.
Please advise if the interaction between Al Dente and Apple's Optimised battery charging can lead to serious mishap and should be avoided at all cost.
Thanks,
Peter
@dalisoft commented on GitHub (Sep 1, 2021):
I using this as this way
Works fine. Every week (Sunday) i calibrate battery to return back battery capacity and check via CoconutBattery.
@asher-gh commented on GitHub (Nov 30, 2021):
could you share the script? Would love to have a notification to remind me to charge at set percentage
@Peter376 commented on GitHub (Nov 30, 2021):
Certainly. It's been a while so I'll need to dig up the source code. Also, I may need to clean up some test code and maybe add some explanation of how it all works. Very busy working weeks until xmas so I don't know when I will be able to do it. But I will be back here 100%.
@Peter376 commented on GitHub (Dec 7, 2021):
Hi Asher,
It turns out I created several scripts. The original one sends notifications and creates a log file. MacOS only. Then I have two more that only log battery levels at the extreme ends.
The original script grew quite big, very extensive now with lots of user variables and multiple levels of alerts (alerts at 35%, 30%, 25%, 20%, 10% and 5%, also at 70%, 75% and 80%). This may discourage you a bit.
I could slim down the original script so it will only give you one alert at each end.
Are you comfortable running scripts and creating plist for automated execution?
Pete
@asher-gh commented on GitHub (Dec 7, 2021):
Oh wow, I guess I would be able to do it. But would appreciate some pointers. Thanks for your time and effort
@Peter376 commented on GitHub (Dec 10, 2021):
I cleaned up my script. See attached file. I used another script from github user Jessica Moloney: https://github.com/jmmoloney/batteryscript. If you find mine too extensive, you may want to have a look at the original.
Please read the comment sections carefully. You may want to read Jessica's instructions as a starting point, but beware that simply exporting the script from script editor "as script" won't work on M1 Macs. Please use the manual walkthrough in Terminal as explained in the comments.
If you have any questions, please ask.
Pete
batteryScript 2_0 kopie.zip
@Peter376 commented on GitHub (Dec 10, 2021):
FYI: This is the source I used for the manual workflow in Terminal.
@Peter376 commented on GitHub (Dec 11, 2021):
Just another FYI I am currently doing a complete overhaul. Your interest in the script sparked a total cleanup but it is still too comprehensive for the average user. I don't want to create different forks so I am trying to make the script more basic by default and move the multiple alert options to a sub routine. I have also created a config file so we don't need to compile everything again after changing message limits.
@Peter376 commented on GitHub (Dec 19, 2021):
@asher-gh Have you been put off much by my previous batteryScript version or are you in for a new release?
@asher-gh commented on GitHub (Dec 19, 2021):
Thank you so much. Honestly I’m pretty satisfied with the stripped down version to just have a reminder to charge and I usually set a timer and remove the charge after 15-20mins.
@Peter376 commented on GitHub (Jan 24, 2022):
If it's only the charge reminder you need then you can check out coconutbattery.
Also: how much charge does your charger add to your battery in just 15-20 mins? Our macbooks M1 go up 1% a minute.
@StevenCurran commented on GitHub (Feb 2, 2022):
Using al dente free -> along with optimized charging I am not seeing any battery discharge / recharge when my m1 air is closed, and with the charging cable plugged in. Essentially al dente is just avoiding the overcharging past 70% for me. Is there something that has been added for m1 macs with the built in optimized charging at the os level that is doing this?