I recently converted an old dell laptop to a server by installing Ubuntu server and casa os on it as I wanted to have some info of how it works but since then I have grown a liking towards the sheer amount of things I can host on it. I want to host pihole/adguard on it but i don’t know if it is safe to keep it running overnight as it’s a laptop. Currently I shut it down at night but for adguard I’ll need it running all the time. I’m just worried abut the battery or maybe the hardware will malfunction as its a laptop.
Maybe go ahead and take out the battery for now. If you want to keep it in as a built in ups(one of the main benefits of using a laptop), one route is to run Home Assistant and put the laptop power cord on a smart plug. Figure out how to get the laptop battery % into Home Assistant and turn the plug on if the laptop goes below about 35% and back off when it goes above 85%. This is the strategy used by many people to prevent spicy pillows in wall mounted tablets, but same idea would apply here.
Nice idea might try that, for time being will remove the battery.