CentOS 7 without GUI - disable suspend on laptop lid close

Published on Author admin

CentOS 7 without GUI - disable suspend on laptop lid close

Inside /etc/systemd/logind.conf configuration file set following option:

HandleLidSwitch=ignore

You can find more info in manual:

man logind.conf