AppHouseKitchen / AlDente-Charge-Limiter

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

Make option/feature to revolve time metrics around desired charge limit #1200

Open AndrewFarley opened 6 months ago

AndrewFarley commented 6 months ago

When charging it says a "time to charge" but that time to charge is (as far as I can tell) to charge the computer to 100%, not to the desired maximum (eg: 80%). Basically...

EXAMPLE: If my battery was currently on 50%, and my desired maximum battery limit was 75%, if I plug in my computer the "Time to charge" currently might show 2 hours, which is the time to get from 50% to 100%. But, because of AlDente, it will never go to 100%, so that number of 2 hours was not useful for me, it was in fact the opposite of useful. Instead of showing 2 hours, it should show 1 hour since (simplistically) 75% is halfway between current battery (50%) and the maximum battery (100%). Telling me "1 hour to charge" in this scenario would greatly help me know how much time I need to remain plugged into my battery/desk and when I can schedule to get up and work from somewhere else / remotely / etc.

Now, I do know that even with the above I believe that batteries don't charge linearly, especially towards the end of the charge they start to trickle charge if they're anything like normal LiPo batteries. So, even though the simplistic math/logic above might work, it might be inaccurate due to various different environmental things (like batter age, temperature, etc). Unless there's a consistent way to model the charge of a laptop battery I would guess that a simplistic model proposed above would be a "best guess" and not over-engineer or overthink it.

What do we think?

MatthiasKerbl commented 6 months ago

Hi @AndrewFarley,

That's a great idea. We were already thinking about doing something in this direction in one of the upcoming updates. For now, we are just displaying the time to full that macOS is reporting.

Best, Matthias