Using a Laptop as a PVE server

I’ve been using laptops for a while for my PVE setup as you can get some good cheap machines, with an energy efficient chip and as long as it has lots of RAM it will handle anything I throw at it.

A while ago I worked out how to stop it switching off/hibernating when I closed the lid, but I recently realised that the screen was still on (power hog). I’ve fixed that.

I also want to send battery status information to HomeAssistant so I can cycle the battery via a smart plug.

First the lid problem. This is controlled by the logind daemon.

Create a drop-in folder for the daemon mkdir /etc/systemd/logind.conf.d/

Create the drop-in file nano /etc/systemd/logind.conf.d/lid.conf with contents of

Sometimes you might want to replace lock with ignore

You could just restart the daemon, but it is better to reboot the machine.

Second, switching off the machine.  For this I will just refer you to the solution I found, but note I put the systemd file in the same position as the Battery Monitor daemon Monitoring a PVE Machine’s Battery Status.

The solution  – Monitoring a PVE Machine’s Battery Status

Facebooktwitterby feather
This entry was posted in Technical - General. Bookmark the permalink.

Leave a Reply