Make Gnome screen lock after 1 hour, not 15 minutes?

33

13

I am using Fedora 20 with Gnome. The screen Power Savings blanks the screen after 15 minutes and then the screen gets automatically locked. I'd like to have the screen blanked and locked after an hour, but the pop-up only goes up to 15 minutes. Is there any way to make it an hour?

vy32

Posted 2014-03-10T15:00:24.447

Reputation: 2 715

Answers

48

You can put the desired values directly in GSettings, either via the dconf-editor app (i.e. "GNOME regedit") or command line:

  • Timeout for blanking the screen (seconds; 0 = never):

    gsettings set org.gnome.desktop.session idle-delay 3600
    
  • Timeout for locking the screen after blanking (seconds; 0 = instant):

    gsettings set org.gnome.desktop.screensaver lock-delay 0
    

user1686

Posted 2014-03-10T15:00:24.447

Reputation: 283 655

And you can also get the current settings via: gsettings get org.gnome.desktop.screensaver lock-delay – codezombie – 2015-11-06T20:10:45.127

3Just for the sake of completion, there is also org.gnome.desktop.screensaver lock-enabled for just enabling/disabling the locking. If you set this to false, the lock-delay will be ignored. – Prahlad Yeri – 2016-01-25T06:38:37.683

If you run the above commands from an SSH session and gets a warning about spawning dbus you need to either launch dbus or use terminal in the local session. – Mark Edington – 2017-06-04T19:10:15.003

1That is great. Is there anyplace where all of this is documented? – vy32 – 2014-03-11T00:16:21.037

2Probably not. But the schemas and keys themselves do have descriptions, visible in dconf-editor. – user1686 – 2014-03-15T09:26:57.563

4

This can also be accessed by using:

  • Settings -> Privacy

    screenshot

Jason Edwards

Posted 2014-03-10T15:00:24.447

Reputation: 59

I only see the lock-delay option, worded as "Lock screen after blank for", and not the idle-delay option, which is what most people probably want to control. – kbolino – 2017-08-06T15:08:59.107

This suggestion indeed presents the pull-down for idle duration before lock screen starts. However, the OP wanted to know how to set it for 1 hour; the pull-down stops at 15 minutes. – kronenpj – 2018-01-13T21:05:48.700

In Ubuntu 17.10 (which uses the GNOME Shell interface), it goes up to 1 hour... – Peter Mortensen – 2018-01-30T18:23:22.467