Changing lid close action on GNU/Linux (systemd) This note was created on 4/22/2020 This note was last edited on 1/31/2023 All changes will be performed in "/etc/systemd/logind.conf" configuration file. 1. Open configuration file in preferred editor: > sudo 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.