How to to prevent the screen from turning off when locked with gnome-shell on Ubuntu 18.04

This annoys me a lot, as whenever I lock the screen, my big screen turns off and it is an old slow screen that takes a few seconds to turn on again.

To disable this behavior, do the following:

  1. Download this extension:
  2. Extract the file and edit the metadata.json file, adding “3.28” to the list of supported shell-version
  3. Place the folder inside ~/.local/share/gnome-shell/extensions/
  4. Open gnome-tweaks (install it first by apt install gnome-tweaks if you don’t have it already)
  5. Go to Extensions and turn “No screen blank” extension on.
  6. Enjoy!

Note: I have uploaded the modified version to support Gnome 3.28 here.

Tested on Ubuntu 18.04 with Gnome 3.28.

Thanks go to the anonymous developer here, who did quite a good job!

About SoCRaT

Systems Engineer, OSS & Linux Geek
This entry was posted in Linux and tagged , , , , , , . Bookmark the permalink.

5 Responses to How to to prevent the screen from turning off when locked with gnome-shell on Ubuntu 18.04

  1. Rusti says:

    Thank you! I’ve used Linux for many years and still I don’t understand why they made it so difficult for such an obvious option!


  2. augus1990 says:

    If someone don’t see the “no screen blank” just restart Gnome pressing the keys Alt + F2, type “r” (without quotes) and press Enter.


  3. TheFlipside says:

    thank you so much for this, this was the only site out of 20 which described the problem and solution of what i was looking for.
    also thanks so much to augus1990 for that hint, i was stuck on that.


  4. Nile CIt says:

    Worked like a charm, you are the funcking one! Congratz!


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s