How to Blank the Screen on a Linux Desktop
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
Related
- Move Files If They Exist Using Bash and Cron
- How to Create a Command Alias in Linux
- Find Command in Linux
- Linux Groups
- Linux Users
- Displaying Network Statistics in Linux
- Linux IP Essentials
- Linux Routing Essentials
- Simple Public Linux File Share Samba
- Enable IP Forwarding in Linux
- Compress and Extract Files Using the tar Command on Linux
- LUKS: Linux Unified Key Setup Essentials
- Linux Command Line Text Editors Essentials
- How to Blank the Screen on a Linux Desktop