Disable GDM suspend on lock screen
I’m using Arch Linux + GNOME3 on desktop, and when the system starts or the user logs out, gdm
displays the login screen for about 20 seconds and then turns off the display (although the computer is still running). Is it possible to disable this? I want the monitor to keep displaying the login screen “forever”. I couldn’t find any way to configure this.
Answers:
Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.
Method 1
That’s because of the idle-delay
setting. To change it you’ll have to alter the corresponding dconf
key (and do that as the gdm
user):
-
switch to a
VT
(e.g. Ctrl+Alt+F3), login as root and run:su - gdm -s /bin/sh
to switch user togdm
. -
then run:
export $(dbus-launch)
and set idle delay to0
(which translates to never):GSETTINGS_BACKEND=dconf gsettings set org.gnome.desktop.session idle-delay 0
runexit
or hit Ctrl+D to return to root account. -
reboot your machine or restart the display manager:
systemctl restart gdm
Method 2
Just as an expansion to don_crissti’s answer:
Step 2 didn’t work for me. I am on Gnome/gdm 3.28 and I don’t have org.gnome.desktop.session
, but this one worked for me:
GSETTINGS_BACKEND=dconf gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-ac-type 'nothing'
Method 3
Adjusting the following via the dconf-editor
might help fine-tune the sleep related settings:
sleep-inactive-ac-timeout sleep-inactive-ac-type sleep-inactive-battery-timeout sleep-inactive-battery-type
Worth a try, in my case it was the way to get the machine to stay awake during periods of inactivity.
Method 4
Ive figured it out. Search up “inactive” on dconfig and change what to do when person is inactive to turn off to nothing. Make sure you do it to both of them because there is two.
All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0