more questions about the MacBook Pro, Core i5, 2.8 GHz (I5-4308U), model A1502 (EMC 2875), a model where I cannot disconnect the battery, because the whole case is closed, a model Im going to use to experiment with mac and create a partition to install a linux distro alongside the mac os.
My favorite notebook is a one that lets me take the battery off if I don’t need it. This way I’ve been able to need just one battery in the last 8 years. Regarding the mac, I’m going to need a new battery (it lasts 5 hours the most) and don’t want to waste charging cycles.
My question is twofold:
-
Is there any linux program that lets me manage the battery so I can choose to rely solely on outlet power, even if I cannot physically remove the battery?
-
the same question for mac.
I’m a MacBook user and I’ve been very happy with AlDente. It took some reading to understand all the features but I really believe it’s made a difference in the health of my battery.
Thanks for sharing. Now I know why my battery never charges over 80% unless I force it
For devices where the kernel directly supports controlling the charging limits, you may be able to do that with the controls in
/sys/class/power_supply/{probably BAT0}/
. Specifically you should be looking for thecharge_start_threshold
andcharge_stop_threshold
files, but I remember as if sometimes there would be some variance in the names.
If you have kernel support, you should be able to use TLP to make better use of this functionality, and in theory KDE’s xbattery and brightness" widget should also show controls related to it, but I couldn’t see it in action myself.For devices that use the EC (Embedded Controller) of chromebooks (I think such are the Framework laptops too) you can use the
ectool
command utility made for those. Framework makes available a precompiled version, that should work for chromebooks too when running Linux.
Possibly it still depends on your specific device whether it will work, but theectool chargecontrol idle
command should make it stop using the battery while it is plugged in to a sufficiently powerful charger, andectool chargecontrol normal
should be able to restore it.
I recommend checking out the other commands of both the ectool command and the chargecontrol subcommand if you see anything interesting (though do be cautios!), for instance with chargecontrol you can also set an interval of a charging boundaries, or read the current state.
It’s worth to note though that I remember reading somewhere (maybe in the chrome ec docs?) that this does not work with all chargers, but it should be ok with the original one you got with the device.When connected to the outlet it will be running solely on outlet power just by default, you don’t need to do anything specific.
Edit: Now that I re-read this OP, it sounds more like you want to stop the battery from charging when connected to AC.
deleted by creator
Framework laptops have it as a BIOS setting. I keep mine at 60%, and before a trip I bump it back to 100%.
It’s also going to charge the battery.
Correct, but the laptop will be running off AC.
But the concern is about the battery, so that’s kinda moot.
deleted by creator
For anyone else commenting about taking our the battery, that is not really the solution. The goal here is not to do this temporarily once in a blue moon, but to do this regularly, at home, at work, everywhere we charge, to try to save the battery condition.
Fortunately this is an existing thing… just not on all laptops.
If you use Gnome, this is what I use: https://maniacx.github.io/Battery-Health-Charging/ You find it also in the extensions. It is really great.
Check this out
The bottom is quite easy to take off, just some screws around the perimeter and you’re in. You can unplug the battery pretty easily but it’s harder to remove as it’s glued down. Also I’m pretty sure MacBooks severely underclock the processor if there’s no battery so your performance may suffer. Been through the same thing with my 2013 MacBook Pro. It’s a Linux mint server now.
I’m not 100% sure but which power source you are using, and whether or not the battery seems more like a BIOS or SMC thing, so I’m not sure if even Linux would be able to access it. I could also be totally wrong
The usual way is to disconnect the battery, hold the power button down and plug the adapter in before you release it. On the older ones the fans spin up really loud.
That battery isn’t going to get you a bunch of charging cycles, but especially for something made in the last decade, lithium ion batteries will do fine when you leave em plugged in. The computers charge controller is pretty decent and won’t let you overcharge or otherwise damage the battery.