Disable Lid Suspend

From Bibliotheca Anonoma
Revision as of 14:35, 30 January 2018 by Antonizoon (talk | contribs) (Created page with "Most laptops suspend when the lid is down and in order to solve this problem for a laptop server, it's better to fix this problem on the <code>systemd</code> level. Edit <cod...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Most laptops suspend when the lid is down and in order to solve this problem for a laptop server, it's better to fix this problem on the systemd level.

Edit /etc/systemd/logind.conf

sudo nano /etc/systemd/logind.conf

Set HandleLidSwitch=ignore

Restart systemd-logind :

sudo systemctl restart systemd-logind

xfce4-power-manager (Crunchbang)

Sometimes, due to the intervention of graphical utilities, you will need to do a second step: open Power Manager and modify the settings.