Laptops are also not really designed to be always on. I've used some like this in the past, but there are things to watch for:
- batteries might not like being constantly charged. You might kill them, hopefully they don't swell. It might be interesting to remove the battery if you can, but then you indeed lose the feature they provide to survive power cuts.
- the disk drives are constantly parking their heads, make sure that the parking policy is ok (won't wear them to fast). Maybe less of an issue with many laptops coming with SSDs.
- some laptops just heat too much and power off too often, especially in summer.
- their hardware might end up dying quite fast.
I think I would still use an old laptop as a home server if I had suitable one, especially since it helps making such a machine useful for a longer time even when they are not quite usable for the web of today anymore (I like the reuse spirit it has), but I've found my rockpro64 (a nice single board computer) way more reliable in this role.
I guess YMMV depending on the laptop models. I can definitely imagine that a solid laptop with its battery removed can work well as a server.
If I'm to believe this bug report [1], KDE actually offers throttling charge, but I suspect the Linux kernel lacks support for this kind of stuff for many laptops, maybe also because sometimes the laptop itself does not support this.
Apparently, one should be able to see these files on a supported laptop:
I don't have them on the HP EliteBook G6 laptop I'm currently using.
But thanks for reminding me this. I was considering using an original PinePhone as a Bluetooth receiver. Unfortunately, Wifi and Bluetooth require a battery to be present in this phone and I was a bit concerned leaving it plugged in at all times. I'll need to check if the kernel the hardware and support this. Still a bit concerned that the battery will be wearing out fast, I'm afraid Bluetooth will be using the battery power even if the phone is plugged, which is a bummer.
You can hack that on any system that lets you read the battery status. All you need is a smart plug. You power the laptop from the smart plug. You switch off the plug when the battery is at 80% and you switch it on again when it's at 20%.
This is my second laptop running as a headless server. I had a shitty consumer i3 2nd gen latop running things just fine. Haven't had any battery hazards. And I live near the equator too.
I've used several laptops as file servers in hot apartments without AC and haven't had issues. The trick is to make sure you're not running a bunch of bloat you don't need (which is the root cause of 99% of "my old computer became slow") Slap something like debian on the laptop and don't even bother installing a desktop environment. The load of an NFS server sitting there idle most of the time and a few other system services doing basically nothing is negligible, any laptop should be able to handle it in 40 C weather. If not then you probably have some dust issues, so blow it out and see if the issue resolves itself. Keep the screen partially open (you can turn it off though) to help with ventilation.
I've never had any laptop die while operating like this. I only replace them when I replace my primary use laptop with something new, demoting my last primary use laptop to the server role.
- batteries might not like being constantly charged. You might kill them, hopefully they don't swell. It might be interesting to remove the battery if you can, but then you indeed lose the feature they provide to survive power cuts.
- the disk drives are constantly parking their heads, make sure that the parking policy is ok (won't wear them to fast). Maybe less of an issue with many laptops coming with SSDs.
- some laptops just heat too much and power off too often, especially in summer.
- their hardware might end up dying quite fast.
I think I would still use an old laptop as a home server if I had suitable one, especially since it helps making such a machine useful for a longer time even when they are not quite usable for the web of today anymore (I like the reuse spirit it has), but I've found my rockpro64 (a nice single board computer) way more reliable in this role.
I guess YMMV depending on the laptop models. I can definitely imagine that a solid laptop with its battery removed can work well as a server.