Bug 1088612 - GDM auto suspends machine after 20 minutes when nobody logs in
GDM auto suspends machine after 20 minutes when nobody logs in
Classification: openSUSE
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: GNOME
Other Other
: P5 - None : Normal (vote)
: ---
Assigned To: E-mail List
E-mail List
Depends on:
  Show dependency treegraph
Reported: 2018-04-09 08:50 UTC by Tomáš Chvátal
Modified: 2020-06-26 09:53 UTC (History)
5 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Tomáš Chvátal 2018-04-09 08:50:30 UTC
The gnome 2.28 has feature with poversaving that autosuspends machine after certain amount of time to match up EU regulations.

This works fine but it is also enabled for GDM where it can be used as login screen on servers. When your server suddenly suspends it is bit shocker, as such I would recommend us to disable this behaviour for GDM and keep it only for logged user sessions.

Workaround (not sure which of the two settings are used, i think the first):

su - gdm -s /bin/bash
export $(dbus-launch)
GSETTINGS_BACKEND=dconf gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-ac-type 'nothing'
GSETTINGS_BACKEND=dconf gsettings set org.gnome.desktop.session idle-delay 0
Comment 1 Neil Rickert 2018-04-09 13:59:46 UTC
This seems related.

When I logout (from either Plasma5 or Gnome), and get back to the GDM login screen, I see something like:
  "System will suspend shortly due to inactivity"

That's not the exact wording.

I am only seeing this on a KVM virtual machine.  It does not seem to happen on real hardware.  The system has not been inactive at all, though the GDM session has presumably been inactive.  I have not had it actually suspend.

Personally, I don't want my system to ever suspend.  And I certainly don't want GDM to suspend the system.
Comment 2 Dominique Leuenberger 2020-06-26 09:53:18 UTC
IMHO, trying to be power-saving is a good thing. on SLE/Leap, this is default disabled.

>## Energy Star compliant configuration is disabled for SLE and Leap from vendor level
>## The recommended way to enable this is via GNOME Control Center, dconf-editor or gsettings
>@@IF_SLE@@sleep-inactive-ac-timeout = 0
>@@IF_SLE@@sleep-inactive-battery-timeout = 0
>@@IF_LEAP@@sleep-inactive-ac-timeout = 0
>@@IF_LEAP@@sleep-inactive-battery-timeout = 0

For TW it is enabled by default