Debian 9+ - Laptop suspends on boot and shutdown if lid is closed, laptop suspends if lid closed on login screen
I encountered a very irritating problem on a Acer Aspire E1-571 using Debian 9. Starting it or shutting it down with the lid caused the system to suspend instead and wait with an orange blinking light. I found a workaround: Edit /etc/systemd/logind.conf Uncomment and edit the following lines so they end in ignore: HandleSuspendKey=ignore HandleLidSwitch=ignore More details and the source of the solution: https://bbs.archlinux.org/viewtopic.php?id=178047
Update for Debian 11+
A similar problem and solution for Debian 11, the laptop suspends if the lid is closed on the login screen (LightDM). Edit /etc/systemd/logind.conf Uncomment and edit the following lines so they end in ignore: HandleLidSwitch=ignore HandleLidSwitchDocked=ignore Source: https://wiki.debian.org/Suspend#Disable_suspend_and_hibernation
This is a personal note. Last updated: 2022-02-10 13:27:55.