Changing lid close action on GNU/Linux (systemd) This note was created on 2020-04-22 This note was last edited on 2023-01-31 All changes will be performed in "/etc/systemd/logind.conf" configuration file. 1. Open configuration file in preferred editor: # nano /etc/systemd/logind.conf 2. Uncomment and change "HandleLidSwitch*" actions according your needs: - "HandleLidSwitch=poweroff" - shutdown when lid is closed. - "HandleLidSwitch=hibernate" - hibernate when lid is closed. - "HandleLidSwitch=ignore" - do nothing. - "HandleLidSwitch=suspend" - suspend when lid is closed.