Arch Linux – Computer Suspends When Not Logged In

arch linuxgdmgnome3

Since the latest update of Gnome / GDM my computer seems to be put into suspend mode when I am idle on the logon screen for about 20 minutes.

This was not the case before the update.
Current Version of gnome-session & gdm 3.28.0. I'm running Arch Linux.

The system log, centered around Mar 29 17:21:17 oliver-desktop kernel: PM: suspend exit +/- 200 lines. If you need more, let me know.

I have looked through a lot of the gsettings, none of the ones I tried were able to make gdm behave otherise.
Also, the configuration documentation does not hint to any option related to auto-suspend.

Best Answer

You'll find https://wiki.archlinux.org/index.php/GDM#GDM_auto-suspend_.28GNOME_3.28.29 useful.

GDM auto-suspend (GNOME 3.28)

GDM uses a separate dconf database to control power management. You can make GDM behave the same way as user sessions by copying the user settings to GDM's dconf database.

$ IFS=$'\n'; for x in $(sudo -u YOUR_USER gsettings list-recursively org.gnome.settings-daemon.plugins.power); do eval "sudo -u gdm dbus-launch gsettings set $x"; done; unset IFS

Related Question