On Tue, Feb 18, 2025 at 7:07 AM Patrick Dupre via users users@lists.fedoraproject.org wrote:
Hello,
Does something change since the last update of fedora 40?
I have a laptop running applications from itself or/and from ssh.
Now it falls to sleep after a few minutes despite that I have
org.gnome.settings-daemon.plugins.power sleep-inactive-ac-timeout 0 org.gnome.settings-daemon.plugins.power sleep-inactive-ac-type 'suspend' org.gnome.settings-daemon.plugins.power sleep-inactive-battery-timeout 900 org.gnome.settings-daemon.plugins.power sleep-inactive-battery-type 'suspend'
Screen blank is set a 5 mn.
Do you have an explanaton?
As Michael said, a change to power management was made at Fedora 40. See https://pagure.io/fedora-workstation/issue/360.
Michael also provided changes for systemd-sleep.conf(5). I prefer to mask the services:
sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target
You can also change the default target to multi-user, and that disables sleep and hibernation. But it is a server setting, and the target disables the desktop stuff:
systemctl set-default multi-user.target
Jeff