How to Adjust Screen Blanking and Automatic Screen Lock Timeout in Ubuntu

Setting up a new Ubuntu workstation or laptop often brings an immediate annoyance during long reading sessions, software compilations, or video presentations: the display suddenly goes black and shuts off after just five minutes of keyboard inactivity. Worse, nudging the mouse frequently requires typing your system password to unlock the desktop, disrupting your train of thought.

While power-saving screen blanking and automatic locking are valuable security measures in public offices, they can prove counter-productive on secure home workstations, dedicated media PCs, or monitoring dashboards. Ubuntu’s GNOME desktop environment allows you to adjust both the idle screen blanking delay and the subsequent password lock timeout independently. This guide walks you through configuring both settings.

Understanding Screen Blanking vs Screen Lock

In Ubuntu GNOME architecture, screen sleep involves two distinct operational phases:

  • Screen Blanking: Powers down the display backlight to conserve energy after a designated period of inactivity. This is managed under Power settings.
  • Automatic Screen Lock: Enforces a password challenge when waking up from blanking. This is managed under Privacy settings.

Adjusting Screen Blanking Timeout in Ubuntu Settings

To extend or eliminate the delay before your display turns off:

  1. Click the System Menu in the top-right corner of your desktop (the volume/battery cluster) and open Settings.
  2. In the left-hand navigation sidebar, click on Power.
  3. In the Power Saving Options section, locate Screen Blank.
  4. Click the dropdown menu currently set to “5 minutes”.
  5. Choose an extended interval—such as 15 minutes, 30 minutes, or select Never if you want your monitor to stay illuminated indefinitely.

Configuring Automatic Screen Lock and Password Delay

Once you have configured screen blanking, adjust the security locking behavior:

  1. In the left sidebar of the Settings application, click on Privacy (or Privacy & Security > Screen Lock).
  2. Click on Screen Lock.
  3. Review the two key settings:
    • Automatic Screen Lock: Toggle this switch to Off if you never want Ubuntu to lock when idle.
    • Automatic Screen Lock Delay: If you keep locking enabled for security, adjust the dropdown (e.g. Screen turns off after 5 minutes, locks after 30 minutes), providing a generous grace period to resume work without typing passwords.
  4. Close the Settings window.

Configuring Screen Blanking via Terminal Commands

For system administrators managing remote workstations or headless test benches, you can configure GNOME power timeouts directly via gsettings:

  1. Open the Terminal (Ctrl + Alt + T).
  2. To set the screen blanking timeout to 15 minutes (900 seconds):
    gsettings set org.gnome.desktop.session idle-delay 900
  3. To disable screen blanking entirely (Never):
    gsettings set org.gnome.desktop.session idle-delay 0
  4. To disable the automatic password lock:
    gsettings set org.gnome.desktop.screensaver lock-enabled false

The changes register immediately without requiring a desktop logout or reboot.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.