What's new
EZ Linux Forums

Register a free account today to become a ezLinux member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Turn off your monitors for privacy and reduced power useage LMDE/Debian

Michael

Administrator
Staff member
To black out your monitors for privacy,

press:

Code:
Ctrl+Alt+F8 = turn off

Code:
Ctrl+Alt+F7= turn back on
 
Last edited:
The above commands will blank your monitors, but they will not turn them off completely. Many users wish to listen to music on their computers/laptops and conserve power. Or just get up for a coffee and not have someone mess with your workstation.

To turn off the monitors completely, create the following script in your editor of choice.

Code:
!/usr/bin/env bash

xset s blank ; sleep 1 ; xset s activate
cinnamon-screensaver-command -l

Save, name sleeplock.sh or whatever you choose.

You will need to give the script permission to run as an executable and bind it to a key. I use Cntrl + M, you can use whichever you wish.

Notes:
Modify cinnamon-screensaver-command -l to gnome-screensaver-command -l for gnome desktop.
mate-screensaver-command -l for MATE desktop, xfce-screensaver-command -l for XFCE desktop.
 
Last edited:
Keyboard shortcuts in Cinnamon:

Navigate: Menu > System Settings > Keyboard > Shortcuts tab > Custom Shortcuts.

Add a custom shortcut.

1717629896587.png

1717629710035.png
 

Attachments

  • 1717629848668.png
    1717629848668.png
    10.2 KB · Views: 1
Top