44

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
  • 3,263
  • 11
  • 42
  • 46
  • I'm actually quite baffled by how the designers thought when they designed that box. I'm fairly sure that there are a lot of users who want more than 15 minutes. – klutt Aug 23 '23 at 06:03

2 Answers2

64

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
    
u1686_grawity
  • 426,297
  • 64
  • 894
  • 966
  • 1
    That is great. Is there anyplace where all of this is documented? – vy32 Mar 11 '14 at 00:16
  • 2
    Probably not. But the schemas and keys themselves do have descriptions, visible in `dconf-editor`. – u1686_grawity Mar 15 '14 at 09:26
  • And you can also get the current settings via: `gsettings get org.gnome.desktop.screensaver lock-delay` – Mehdi Haghgoo Nov 06 '15 at 20:10
  • 5
    Just 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 Jan 25 '16 at 06:38
  • 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 Jun 04 '17 at 19:10
8

This can also be accessed by using:

  • Settings -> Privacy

    screenshot

Pablo A
  • 1,470
  • 13
  • 21
Jason Edwards
  • 99
  • 1
  • 1
  • 1
    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 Aug 06 '17 at 15:08
  • 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 Jan 13 '18 at 21:05
  • In Ubuntu 17.10 (which uses the GNOME Shell interface), it goes up to 1 hour... – Peter Mortensen Jan 30 '18 at 18:23