Skip to content

1.15 Disable Sleeping Processes (Suspending)

Tomato6966 edited this page Nov 7, 2021 · 3 revisions

Stop the Sleeping Processes

sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target

If you want to re-enable it, type this DON'T TYPE IT FOR DISABLING

sudo systemctl unmask sleep.target suspend.target hibernate.target hybrid-sleep.target

Edit this file:

sudo nano /etc/systemd/logind.conf

Uncomment the following lines:

[Login]
HandleLidSwitch=ignore
HandleLidSwitchDocked=ignore

Then save (CTRL+S) and exit (CTRL+X)

Restart the Service

systemctl restart systemd-logind.service

Edit this File:

sudo nano /etc/systemd/sleep.conf

Uncomment and enable the following Lines:

AllowSuspend=no
AllowHibernation=no

Then save (CTRL+S) and exit (CTRL+X)

Reboot your machine for saving all settings:

sudo reboot
Clone this wiki locally