I seem to have fixed this, but I’m not exactly sure what happened. I suspect regressions in packaging or something.
A few days ago, probably after some updates, my desktop PC (Fedora 43, Gnome, Wayland, AMD 6700 XT graphics) , stopped doing suspend when pressing the power button (pressing the button did nothing). It has worked fine since upgrading to Fedora 43 when it was released. I then checked in Gnome power settings and all suspend options were gone (i.e. the powerbutton setting and the suspend option). Googling and asking LLM hinted that the issue was with PAM. There has indeed been some pam updates this week. I then reinstalled pam and authselect-libs and did a reboot, but it didn’t help. Then I executed “sudo authselect select local --force --backup=pre-authselect”. This seemed to have fixed the issue after a reboot. The suspend options are now available again in system settings, and the PC suspends correctly from the power button.
But I’m not sure what broke suspend and why the authselect command seem to have fixed the issue.
So this is speculation, but possibly something in the PAM stack that got updated (module order, config defaults?), prevented pam_systemd.so from running in my session. So logind never got a proper session and Gnome disabled the suspend options, because it didn’t detect an authorized session. Restoring with “authselect select local” fixed the session, because the local profile includes pam_systemd.so.
I’ve rebooted multiple times. I’m sure something is broken. Can only hope a fix is coming. The weird thing I can’t find any bug reports with similar symptoms.
No, this works fine. As I’d explained above, it works fine to do a manual suspend.
dec 25 22:07:33 myhostname systemd-logind[1264]: The system will suspend now!
dec 25 22:07:33 myhostname NetworkManager[1597]: [1766693253.8582] manager: sleep: sleep requested (sleeping: no enabled: yes)
dec 25 22:07:33 myhostname coolercontrold[1629]: Received message that system is going to sleep.
dec 25 22:07:33 myhostname ModemManager[1522]: [sleep-monitor-systemd] system is about to suspend
dec 25 22:07:33 myhostname NetworkManager[1597]: [1766693253.8586] device (wlp8s0): state change: unavailable → unmanaged (reason ‘unmanaged-nm-disabled’, managed-type: ‘full’)
dec 25 22:07:33 myhostname ModemManager[1522]: [sleep-monitor-systemd] ready to sleep; dropping inhibitor
Except for the odd symptom with the black login background afterwards.
I tried disabling all gnome extensions. Suspending, and then resuming. The gdm login screen background was no longer black. I might be on to something.
And now with disabled gnome-extensions, automatic suspend also works (I set it for 15 minutes). Now to figure out which extension causes it, or maybe all.
This is really erratic. I enabled gnome extensions again, did a reboot, and now automatic suspend still works. So I think the extensions was a red herring.
One symptom remains. The login screen background is still black after suspend, and after locking the screen (it’s not black when logging in after a reboot).
So now I’m unable to repeat the no automatic suspend issue. I haven’t changed any system settings. Maybe it’s some user space program that occasionally does some activity or something. There is at least one in the inhibitor list:
$ systemd-inhibit --list
WHO UID USER PID COMM WHAT WHY MODE
ModemManager 0 root 1420 ModemManager sleep ModemManager needs to reset devices delay
NetworkManager 0 root 1518 NetworkManager sleep NetworkManager needs to turn off networks delay
UPower 0 root 1278 upowerd sleep Pause device polling delay
GNOME Shell 1000 user 18869 gnome-shell sleep GNOME needs to lock the screen delay
GNOME Shell 1000 user 18869 gnome-shell sleep GNOME needs to save screen time data delay
user 1000 user 19103 gsd-media-keys handle-power-key:handle-suspend-key:handle-hibernate-key GNOME handling keypresses block
user 1000 user 19103 gsd-media-keys sleep GNOME handling keypresses delay
user 1000 user 19113 gsd-power sleep GNOME needs to lock the screen delay
pcloud 1000 user 19139 pcloud sleep Application cleanup before suspend delay
Hi everyone, I upgraded from Fedora 42 Workstation to 43 and I’m having the same issue.
Also the button to suspend the PC from the lockscreen is missing…
sudo authselect select local --force --backup=pre-authselect
Then reboot. It didn’t fix all issues, but at least it’s possible to suspend manually.
Automatic suspend has mostly worked for me now. It failed once yesterday, but after a reboot it worked again. The lock screen background is still black.