sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target
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
Restart sudo systemctl restart systemd-logind.service or just restart your laptop
Check status
systemctl status sleep.target suspend.target hibernate.target hybrid-sleep.target all must be in (dead stage)
re-enable
sudo systemctl unmask sleep.target suspend.target hibernate.target hybrid-sleep.target
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.
Restart sudo systemctl restart systemd-logind.service or just restart your laptop
Even lid down don't want to go suspend mode
sudo nano /etc/systemd/logind.conf
[Login] HandleLidSwitch=ignore
No comments:
Post a Comment