To prevent Proxmox on a laptop from suspending when the lid is closed, edit the /etc/systemd/logind.conf file to set HandleLidSwitch=ignoreHandleLidSwitchExternalPower=ignore, and HandleLidSwitchDocked=ignore. Uncomment these lines by removing the ‘#’ symbol, then save the file and restart the systemd-logind service with systemctl restart systemd-logind or reboot the system for the changes to take effect. 

Step-by-step Guide:

  1. Open the configuration file: Open the logind.conf file using a text editor such as nano or vim:bashsudo nano /etc/systemd/logind.conf
  2. Modify the settings: Find the following lines. If they are commented out (start with a ‘#’), remove the ‘#’ to uncomment them.
    • #HandleLidSwitch=suspend becomes HandleLidSwitch=ignore
    • #HandleLidSwitchExternalPower=suspend becomes HandleLidSwitchExternalPower=ignore
    • #HandleLidSwitchDocked=suspend becomes HandleLidSwitchDocked=ignore
  3. Save and exit: Save the changes to the file and exit the editor.
  4. Apply the changes: Restart the systemd-logind service for the new settings to become active:bashsudo systemctl restart systemd-logind Alternatively, you can reboot the Proxmox system. 

After these steps, closing the laptop lid will no longer cause the system to suspend, allowing Proxmox to remain accessible. 

By admin

WordPress Appliance - Powered by TurnKey Linux