sudo systemctl restart systemd-logind
sudo nano /etc/systemd/logind.conf
#HandleLidSwitch=suspend
HandleLidSwitch=ignore