How to Blank the Screen on a Linux Desktop

Linux Logo

How to Blank the Screen on a Linux Desktop

Linux Logo

Related
Links

Had the need to blank the screen on a Linux laptop overnight to reduce power consumption.

sudo apt-install gnome-screensaver

Now the screen can be blanked with the following command line command.

gnome-screensaver-command -a

Create Launcher Shortcut

For times when the screen needs to be blanked by somebody not technical

sudo apt install alacarte

This installs an application called Main Mnue.
Open it and click on New Item

Name: Blank Screen
Command: gnome-screensaver-command -a
Comment: gnome-screensaver-command -a

Click ok

Now you will be able to search for it via the launcher. Right Click and Add to Favourites.

Tested and confirmed to work with Ubuntu 20.04 LTS