Disable Suspend

Useful for systems that encounter suspended (sleep) troubles or where this function is not necessary. Note: While disabled, the "Suspend" function will disappear from the taskbar power menu along with the suspend options in Settings > Power.

For systems which should never attempt any type of suspension, these targets can be disabled at the systemd level with the following:

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

To re-enable hibernate and suspend use the following command:

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

For more information, visit https://wiki.debian.org/Suspend