Talk: GNOME suspends after 15 minutes of user inactivity, even on AC power

@kparal

TwoThree requests, regarding the original common-issues posting: Could you please…

  1. Separate the input from the output, in the first sudo command line, so that users can copy/paste the command text with a simple click/tap?
  2. Remove the shell prompt ($) at the front of the command, for the same reason?
  3. (Optional) wrap the long command lines with backslash continuations.

e.g., something like:


Adjusting the login screen

If you want to modify the login screen behavior, you can display the current login screen settings with a command like this one:

sudo -u gdm dbus-run-session gsettings list-recursively \
org.gnome.settings-daemon.plugins.power | grep sleep

Which will output a listing like this:

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'

The sleep-inactive-ac-timeout is the Plugged in option and sleep-inactive-battery-timeout is the On Battery Power option. The number is the delay in seconds. You can configure the values like this:

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

Thanks!