Software & AppsOperating SystemLinux

How To Keep Screen On When Locking Ubuntu 18.04

Ubuntu 21

In this article, we will discuss various methods on how to keep the screen on when locking Ubuntu 18.04. This can be particularly useful if you want to lock your computer without the screen going blank immediately.

Quick Answer

To keep the screen on when locking Ubuntu 18.04, you can use a Gnome extension called "Unblank", manually lock the screen by holding the Super+L keys longer, adjust Gnome settings related to screen blanking and idle activation, or install the lightdm login manager. Each solution may work differently depending on your system configurations, so it’s recommended to try them one by one to find the best option for you.

Using a Gnome Extension

The first method involves using a Gnome extension called “Unblank”. This extension is designed to prevent the screen from blanking immediately after locking.

To install this extension, visit the Gnome Extensions website. Once installed, the extension should start working immediately. This solution has proven to be effective for many users.

Manual Locking: Hold Super+L Longer

Another method is to manually lock the screen using the Super+L key combination. However, instead of pressing and releasing the keys immediately, try holding them a bit longer. This prevents the screen from blanking immediately.

The screen will blank after the time interval set in “Settings > Power > Blank Screen”. This solution seems to work for some users, especially when running on battery.

Adjust Gnome Settings

You can also adjust the Gnome settings related to screen blanking and idle activation. To do this, you will need to use the terminal.

First, check the current setting for idle activation using the following command:

gsettings get org.gnome.desktop.screensaver idle-activation-enabled

If the result is “true”, it means that the screen is set to blank when idle. You can turn this off using the following command:

gsettings set org.gnome.desktop.screensaver idle-activation-enabled false

Another option to try is to disable the idle dimming feature. This can be done using the following command:

gsettings set org.gnome.settings-daemon.plugins.power idle-dim false

These commands modify the Gnome settings related to screen blanking and idle activation, giving you more control over when and how your screen blanks.

Install lightdm Login Manager

If none of the above solutions work, you can try installing the lightdm login manager. The default Ubuntu login screen is called lightdm.

To install it, run the following command in the terminal:

sudo apt-get install lightdm

Then, reconfigure lightdm as the default login manager by running the following command:

sudo dpkg-reconfigure lightdm

Follow the prompts in the wizard to select lightdm as the default. This solution has been reported to solve the issue for some users.

Conclusion

Keeping the screen on when locking Ubuntu 18.04 can be achieved in several ways. You can use a Gnome extension, adjust the way you manually lock the screen, modify Gnome settings, or install the lightdm login manager.

Each of these solutions may work differently depending on your system configurations. Therefore, it is recommended to try them one by one and see which one works best for you.

Can I keep the screen on when locking Ubuntu 18.04 without using any extensions or modifying settings?

No, the default behavior of Ubuntu 18.04 is to blank the screen immediately after locking. Using extensions or modifying settings is necessary to achieve the desired result.

How do I install Gnome extensions in Ubuntu 18.04?

To install Gnome extensions, you need to have the GNOME Shell Integration browser extension installed. Once installed, you can visit the Gnome Extensions website and click on the "On/Off" switch to enable or disable an extension. The extension will start working immediately.

Can I adjust the time interval before the screen blanks when idle?

Yes, you can adjust the time interval for screen blanking when idle by going to "Settings > Power > Blank Screen". You can set the desired time interval in minutes.

Will adjusting Gnome settings affect other aspects of my Ubuntu system?

Adjusting Gnome settings related to screen blanking and idle activation will only affect those specific aspects. It should not have any significant impact on other parts of your Ubuntu system.

Can I revert back to the default Ubuntu login screen after installing lightdm?

Yes, if you want to revert back to the default Ubuntu login screen after installing lightdm, you can do so by running the following command in the terminal: sudo dpkg-reconfigure gdm3. Then, follow the prompts in the wizard to select gdm3 as the default login manager.

Leave a Comment

Your email address will not be published. Required fields are marked *