Debian 9+ - Laptop suspends on boot and shutdown if lid is closed

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:


More details and the source of the solution:

This is a personal note. Last updated: 2018-04-28 22:56:08.


Don't forget to pay my friend a visit too. Joakim