Fedora 38 Silverblue suspends even though Power settings disallow it

In GNOME Settings > Power, I have Automatic Suspend set to When on Battery Power.

I’m on AC power:

$ cat /sys/class/power_supply/AC/online 
1

But it suspends nevertheless:

Sep 01 07:58:11 moloch systemd-sleep[4948]: Entering sleep state 'suspend'...

Sep 01 07:58:11 moloch kernel: PM: suspend entry (deep)
Sep 01 08:40:42 moloch kernel: printk: Suspending console(s) (use no_console_suspend to debug)
Sep 01 08:40:42 moloch kernel: PM: suspend devices took 3.171 seconds
Sep 01 08:40:42 moloch kernel: PM: suspend exit
Sep 01 08:40:42 moloch systemd[1]: systemd-suspend.service: Deactivated successfully.
Sep 01 08:40:42 moloch systemd[1]: Finished systemd-suspend.service - System Suspend.
Sep 01 08:40:42 moloch audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=systemd-suspend comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Sep 01 08:40:42 moloch audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=systemd-suspend comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Sep 01 08:40:42 moloch systemd[1]: Reached target suspend.target - Suspend.
Sep 01 08:40:42 moloch systemd[1]: Stopped target suspend.target - Suspend.

Am I misunderstanding the GNOME Setting?

Screenshot from 2023-09-01 08-50-52

power

You can turn off suspend in gnome settings under the power tab as displayed.

Fedora 38 enabled automatic suspend on all versions, and there have been several threads on that topic, with fixes listed. A quick search should show these.

The automatic suspend only seems to look at keyboard and mouse activity to remain active. If those are idle then the system tends to suspend regardless of what else may be happening or active.

After posting I noticed that GNOME is respecting my Settings as long as I’m logged into the GUI.
However, the power settings are user-specific, so the login screen essentially has no setting, at least not that can be configured from the desktop.

This sets the timeout to 0 (meaning off, in this context) for gdm (the login screen):

$ sudo -u gdm dbus-run-session gsettings \
set org.gnome.settings-daemon.plugins.power \
sleep-inactive-ac-timeout 0

This issue is documented here:

1 Like