Skip to content

Instantly share code, notes, and snippets.

@AndrewGMorgan
Created February 17, 2024 22:01
Show Gist options
  • Save AndrewGMorgan/5b365c1c92a086dd391d828e218c4a4e to your computer and use it in GitHub Desktop.
Save AndrewGMorgan/5b365c1c92a086dd391d828e218c4a4e to your computer and use it in GitHub Desktop.
Stopping my upgraded Fedora box from suspending after 15 minutes
# After upgrading to Fedora 38, my desktop started to suspend after 15 minutes. This made ssh-ing from my laptop annoying.
# Here is how I addressed it:
$ sudo -u gdm dbus-run-session gsettings list-recursively org.gnome.settings-daemon.plugins.power | grep sleep
org.gnome.settings-daemon.plugins.power sleep-inactive-ac-timeout 900
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'
$ sudo -u gdm dbus-run-session gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-ac-timeout 0
$ sudo -u gdm dbus-run-session gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-ac-type nothing
$ sudo -u gdm dbus-run-session gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-battery-timeout 0
$ sudo -u gdm dbus-run-session gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-battery-type nothing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment