Ubuntu, we could set “Do not do anything when Laptop Lid” in the Power Setting. But in
Debian there is not any option in the Power Setting. We could only modify the configuration file of
Login Manager to achieve this goal.
sudo gedit /etc/systemd/logind.conf` #HandleLidSwitch=suspend -> HandleLidSwitch=ignore reboot