Comment empêcher Ubuntu de dormir lors de la fermeture d'un ordinateur portable
sudo systemctl restart systemd-logind
Filthy Flamingo
sudo systemctl restart systemd-logind
sudo nano /etc/systemd/logind.conf
HandleLidSwitch=ignore
#HandleLidSwitch=suspend