Systemctl suspend no longer works

This no longer suspends my system.

systemctl suspend

Failed to set wall message, ignoring: Access denied
Failed to suspend system via logind: Access denied
Failed to start suspend.target: Access denied
See system logs and 'systemctl status suspend.target' for details.

suspend

same issue if you use the button (from top right power menu)?

I use it in a script. And the sleep button does not work either.

The other day, my suspend function stopped working for no apparent reason. Woke it up from suspend and when I was done the suspend function didn't work -(I have the function programmed into the power button, though the suspend button from the power off menu didn't work either!) I rebooted and its working again. Weird!

I ran this and it started working.

Re-enable computer to be able to suspend

echo pw | sudo -S systemctl unmask sleep.target suspend.target hibernate.target hybrid-sleep.target

1 Like

This is related so I did not start a new thread.
This shows inactive yet my system can suspend?

# Check status of suspend process
#----------------------------------------------------------------------------
Downloads_Dir="/home/andy/Downloads/"

# Check if the changes have been really applied:
systemctl status suspend.target > $Downloads_Dir/suspend_status.txt

 #suspend.target - Suspend
   #Loaded: loaded (/lib/systemd/system/suspend.target; static; vendor preset: enabled)
   #Active: inactive (dead)
     #Docs: man:systemd.special(7)

#Sep 29 08:38:01 7 systemd[1]: Stopped target Suspend.
#Sep 29 10:50:39 7 systemd[1]: Reached target Suspend.
#Sep 29 10:50:39 7 systemd[1]: suspend.target: Unit not needed anymore. Stopping.
#Sep 29 10:50:39 7 systemd[1]: Stopped target Suspend.
#Sep 29 11:26:35 7 systemd[1]: Reached target Suspend.
#Sep 29 11:26:35 7 systemd[1]: suspend.target: Unit not needed anymore. Stopping.
#Sep 29 11:26:35 7 systemd[1]: Stopped target Suspend.
#Sep 29 11:32:39 7 systemd[1]: Reached target Suspend.
#Sep 29 11:32:39 7 systemd[1]: suspend.target: Unit not needed anymore. Stopping.
#Sep 29 11:32:39 7 systemd[1]: Stopped target Suspend.