fixit7
29 September 2022 13:15
1
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.
mickee
29 September 2022 13:22
2
same issue if you use the button (from top right power menu)?
fixit7
29 September 2022 13:30
3
I use it in a script. And the sleep button does not work either.
mickee
29 September 2022 13:50
4
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!
fixit7
29 September 2022 15:59
5
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
2 Likes
fixit7
29 September 2022 16:49
6
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.
This has worked for me on fedora v.41