Bonjour,
Tu peux essayer ces commandes éventuellement :
sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target
Tu devrais obtenir un truc dans ce genre
Created symlink /etc/systemd/system/sleep.target → /dev/null.
Created symlink /etc/systemd/system/suspend.target → /dev/null.
Created symlink /etc/systemd/system/hibernate.target → /dev/null.
Created symlink /etc/systemd/system/hybrid-sleep.target → /dev/null.
Ensuite tu redémarres le service
sudo systemctl restart systemd-logind.service
Ou alternativement redémarres l'ordi.
Ensuite tu vérifies (si) la prise en compte avec la commande
systemctl status sleep.target suspend.target hibernate.target hybrid-sleep.target
Tu devrais obtenir ceci près
sleep.target
Loaded: masked (/dev/null; bad)
Active: inactive (dead)
suspend.target
Loaded: masked (/dev/null; bad)
Active: inactive (dead)
hibernate.target
Loaded: masked (/dev/null; bad)
Active: inactive (dead)
hybrid-sleep.target
Loaded: masked (/dev/null; bad)
Active: inactive (dead)
Pour redémarrer les services cette commande
sudo systemctl unmask sleep.target suspend.target hibernate.target hybrid-sleep.target
Tu devrais obtenir
Removed /etc/systemd/system/sleep.target.
Removed /etc/systemd/system/suspend.target.
Removed /etc/systemd/system/hibernate.target.
Removed /etc/systemd/system/hybrid-sleep.target.