tmichett / Fedora_Remix

Fedora Linux Remix
2 stars 0 forks source link

Kill off auto-suspend (per Rob) #24

Closed tmichett closed 10 months ago

tmichett commented 10 months ago

You might want to kill off the standard "suspend after 15 minutes of inactivity".

tmichett commented 10 months ago

Since Fedora 38, systems with the GNOME desktop environment suspend after 15 minutes of user inactivity, even when plugged in to the AC outlet. This affects new installs and some upgraded systems (depending whether you touched that setting in the past). This is due to an intentional change

tmichett commented 10 months ago

https://discussion.fedoraproject.org/t/gnome-suspends-after-15-minutes-of-user-inactivity-even-on-ac-power/79801

tmichett commented 10 months ago

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

tmichett commented 10 months ago

Note: Fedora Server ships a configuration override, which defaults to not suspending on AC power by default. In all other Fedora editions, the described configuration change should apply, as long as you have GNOME environment running.

tmichett commented 10 months ago
[org/gnome/settings-daemon/plugins/power]
sleep-inactive-ac-timeout=0
sleep-inactive-battery-timeout=0
tmichett commented 10 months ago

$ sudo -u gdm dbus-launch gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-ac-type 'nothing'

tmichett commented 10 months ago

Tested various options but still not moving the slider ...?

tmichett commented 10 months ago

[travis@fedora38-remix ~]$ sudo -u gdm dbus-run-session gsettings list-recursively org.gnome.settings-daemon.plugins.power org.gnome.settings-daemon.plugins.power ambient-enabled true org.gnome.settings-daemon.plugins.power idle-brightness 30 org.gnome.settings-daemon.plugins.power idle-dim true org.gnome.settings-daemon.plugins.power power-button-action 'suspend' org.gnome.settings-daemon.plugins.power power-saver-profile-on-low-battery true org.gnome.settings-daemon.plugins.power sleep-inactive-ac-timeout 0 org.gnome.settings-daemon.plugins.power sleep-inactive-ac-type 'nothing' org.gnome.settings-daemon.plugins.power sleep-inactive-battery-timeout 900 org.gnome.settings-daemon.plugins.power sleep-inactive-battery-type 'suspend'

tmichett commented 10 months ago

Screenshot 2023-08-17 at 6 20 29 PM

tmichett commented 10 months ago

/etc/dconf/db/gdm.d/00-disable-suspend

[org/gnome/settings-daemon/plugins/power]
sleep-inactive-ac-type='nothing'
sleep-inactive-battery-type='nothing'
sleep-inactive-ac-timeout=0
sleep-inactive-battery-timeout=0
user-db:user
file-db:/gnu/store/g9dlqhm1xrfw1bz09rgg70h2ns3m05ld-gdm-42.0/share/gdm/greeter-dconf-defaults
system-db:gdm

https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/22

tmichett commented 10 months ago

[travis@fedora Desktop]$ dconf dump /org/gnome/settings-daemon/plugins/power/ [/] power-saver-profile-on-low-battery=true sleep-inactive-ac-type='nothing' sleep-inactive-battery-type='suspend'

tmichett commented 10 months ago

[travis@fedora Desktop]$ dconf dump /org/gnome/settings-daemon/plugins/power/ [/] power-saver-profile-on-low-battery=true sleep-inactive-ac-type='nothing' sleep-inactive-battery-type='nothing'

tmichett commented 10 months ago

[travis@fedora Desktop]$ dconf dump /org/gnome/settings-daemon/plugins/power/ [/] power-saver-profile-on-low-battery=true sleep-inactive-ac-type='suspend' sleep-inactive-battery-type='suspend'

tmichett commented 10 months ago

[travis@fedora Desktop]$ gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-ac-type 'nothing' [travis@fedora Desktop]$ gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-battery-type 'nothing'

Actually turns off on a per-user basis

tmichett commented 10 months ago

So if we do at the beginning before users login ...

/etc/dconf/db/local.d

[root@fedora local.d]# cat 01-disable-power-save [org/gnome/settings-daemon/plugins/power] sleep-inactive-ac-type='nothing' sleep-inactive-battery-type='nothing'

it will make change for all system users.

Need to create ....

/etc/dconf/db/local.d/01-disable-power-save

[org/gnome/settings-daemon/plugins/power] sleep-inactive-ac-type='nothing' sleep-inactive-battery-type='nothing'

and do a DCONF UPDATE as part of the PXEBoot process

tmichett commented 10 months ago

Update FedoraRemix Customize just in case!!!

tmichett commented 10 months ago

Tested and confirmed fixed