I'm using an HP ProBook 640 G3 with Ubuntu and I'm considering running it as a server continuously. Is it safe to keep the battery installed while the power cord is plugged in at all times? I've heard mixed opinions about whether I should remove the battery. The last time I took it out, the laptop shut off unexpectedly and wouldn't turn back on. What are the best practices for this setup?
3 Answers
It's generally fine to leave your laptop plugged in all the time. Laptops typically have their own battery management systems, so they won't overcharge. It also acts like a backup power source in case of outages! Just make sure to keep the vents clean to avoid overheating.
I once read that prolonged heat can harm laptop screens, especially for gaming laptops that get pretty warm. I keep mine open but with the screen off to let it breathe. Not sure how much truth there is to that, but it seems okay to leave it open. Just a thought!
If you're worried about battery lifespan, you might want to check if your BIOS has options to limit the charging to 80-85%. It's a feature available in many modern devices and can help prolong battery health while still using it as a server.

Does this battery limit setting apply to all devices, or just laptops?