How to change the login screen power options

Gnome 50 wayland
tumbleweed 20260618
linux v7.0.12-1-default x86_64

A recent update (in the last month or so) has changed not only the appearance of the login screen (looks good), it has changed the power settings as well.

Previously the computer remained powered forever. Since there is rarely a situation where it matters, I had no problem with it.

Now, the computer is put to sleep. It powers up normally, I can login, it crashes. Every time. When I restart the computer, I log in and continue normally.

So, I would like to disable the sleep timer to bypass the wakeup crash. There are no options in Gnome settings that affect the login screen. There are no options to do so in the login screen itself.

How do I change the power settings?

Super Menu / windows key, type settings - select power & you can turn off sleep etc. there.

Although I see you were talking about in the log in screen & apparently The GNOME login screen (GDM greeter) uses its own settings, separate from your user account. Changing Settings → Power after logging in does not affect the login screen. Apparently GNOME login screen is managed by GDM, and its power settings are configured through GDM’s dconf database.

So if you want to change it’s behaviour I think you would have to create or change that if there is one on your system, but I’m not sure how to do that exactly. So maybe someone more experienced in these matters or an admin can advise on how to do that or you can search for it.

A simpler alternative might be to enable auto log in to avoid the log in screen altogether & then changing your user settings as in my first reply, but if you are unwilling or unable to do that then you’ll probably need to explore the above dconf thing.

Hope this helps.

@jimbobrae I noticed that too yesterday when one of my systems was at the login screen, perhaps @iznogood can help clarify(?)

And how do I find that?

I have searched the dconf editor. There is nothing there related to GDM; there are a number of power options after login, none for before.

For now I have adopted that method. Don’t like it, though.
There was a time, long ago, where power options were available to the login screen. Apparently that was bad idea.

You may not like it, but that is probably the easiest option for now. I think you would have to add your own stuff in in dconf but I’m not expert so sorry I can’t help with that, but other more expert users / admins might be able to.

Also could be related to something like graphics cards & drivers & the latest Kernel etc. as I know from personal experience & have seen a lot on here about Nvidia drivers causing issues with sleep / suspend etc. - especially as it doesn’t happen on reboot, Maybe checking error logs / crash reports might shed some light on it - but again you’d need others to help with suggestions on that. Sorry I can’t be of more assistance.

I work with KDE Laptop and had a similar problem.
For Laptop see logind.conf “HandleLidSwitch” Options:

[Login]
HandleLidSwitch=ignore
HandleLidSwitchExternalPower=ignore
HandleLidSwitchDocked=ignore

I don’t know if GDM needs to be configured as well. SDDM need only the logind Options.

For Desktop-PC see Gnome powersave Options:

$ 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'

Setting the timeout to 0 disables the timeout. Disable suspend while on AC power:

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

source: https://www.bushart.org/resource/fedora-gnome-automatic-suspend-no-login/

1 Like

Those settings can be modified by using the dconf-editor:

dconf-editor /org/gnome/settings-daemon/plugins/power/

The first two in the list affect the power settings of the login screen.

sleep-display-ac  1800
sleep-display-battery 1800

1800 (seconds) is the default. I changed sleep-display-ac to 0.