How to Stop Your Ubuntu Screen Dimming and Locking After Five Minutes

Reading a long PDF or following an online tutorial on your Ubuntu desktop without touching the mouse for a couple of minutes – only to watch your laptop screen dim dramatically and snap straight to the password lock screen – interrupts focus constantly. Ubuntu splits display dimming, black screen timeout, and password lock timers across two separate Settings panels, so changing only one often leaves your screen going dark anyway.

Fix 1: Adjust Screen Blank and Dim Screen Under Ubuntu Power Settings

Ubuntu’s built-in Power Saving timers dim brightness aggressively and turn off your display after 5 minutes (or even faster on battery power).

  1. Open Ubuntu Settings from the top-right system menu.
  2. Click Power in the left sidebar.
  3. Look under Power Saving (or Power Saving Options).
  4. Switch Dim Screen to Off if you do not want brightness dropping suddenly every 30-60 seconds when idle.
  5. Click the Screen Blank dropdown and change it from 5 minutes to 15 minutes, 30 minutes, or Never (keep at least 15-30 minutes on laptops when away from a charger to protect OLED/battery life).

Fix 2: Increase or Disable “Automatic Screen Lock” Delay Under Privacy Settings

Even if Screen Blank is set to 15 minutes, Ubuntu’s Privacy panel sets how soon the password lock kicks in after the screen dims or blanks.

  1. Inside Ubuntu Settings, click Privacy & Security (labelled Privacy on earlier releases) in the left sidebar.
  2. Select Screen Lock.
  3. Look at Blank Screen Delay (mirrored from Power settings) and directly beneath it: Automatic Screen Lock Delay.
  4. If Automatic Screen Lock is switched On and its delay reads Screen Turns Off (0 seconds), set the delay to 5 minutes or 30 minutes – or toggle Automatic Screen Lock completely Off on secure private home desktops (see also managing automatic screen lock settings in Ubuntu).

Fix 3: Set Exact Custom Timers (Such as 45 Minutes) via Terminal gsettings

Because the graphical Settings dropdown only lets you choose preset values up to 15 minutes before jumping to Never, Terminal lets you pick any exact minute count (in seconds) effortlessly:

  1. Open Terminal (Ctrl + Alt + T).
  2. Set Screen Blank idle delay to 45 minutes (2700 seconds):
    gsettings set org.gnome.desktop.session idle-delay 2700
  3. Turn off automatic screen dimming cleanly if desired:
    gsettings set org.gnome.settings-daemon.plugins.power idle-dim false
  4. Wait two seconds – the changes apply immediately without logging out or rebooting.

Tip: Use the Caffeine GNOME Extension When Watching Presentations or Videos

If you normally like tight 5-minute lock security yet want your screen guaranteed awake during occasional two-hour webinars or downloads, install GNOME’s Caffeine indicator (sudo apt install -y gnome-shell-extension-caffeine) so one click on the coffee-cup icon in your top bar pauses screen blanking and auto-lock temporarily.

Get the best tech tips delivered straight to your inbox.

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