Skip to content

Instantly share code, notes, and snippets.

@sirhopcount
Last active May 15, 2025 20:26
Show Gist options
  • Save sirhopcount/66b2d1555817eca73e65a5bf42c7431d to your computer and use it in GitHub Desktop.
Save sirhopcount/66b2d1555817eca73e65a5bf42c7431d to your computer and use it in GitHub Desktop.
Promox on a laptop: disable screen + suspend

Proxmox on a laptop

This is how you disable the screen and susped (on lid action)

Disable screen

Disable the console after 60 second. Edit the grub config:

vi "/etc/default/grub

Update GRUB_CMDLINE_LINUX like so:

GRUB_CMDLINE_LINUX="consoleblank=60"

Save, exit and update the grub config

update-grub

Disable suspend (on lid)

Edit /etc/systemd/logind.conf

Add the following:

HandleLidSwitch=ignore
HandleLidSwitchExternalPower=ignore
HandleLidSwitchDocked=ignore
LidSwitchIgnoreInhibited=yes

And restart systemd-logind

systemctl restart systemd-logind

References

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment