How to turn off laptop display in linux ?

Today, one of my friends gave me this tip, so sharing with my friends…

To turn off laptop display you can execute below command

 [root@node] sleep 1; xset dpms force off

Above would turn off the laptop display so that you can save power and keep jobs running in the bg.

Any key press or mouse events can bring back the display

Also  query ‘xset’ options via

[terminal]
[root@node]$ xset -q
Keyboard Control:
auto repeat:  on    key click percent:  0    LED mask:  00000000
XKB indicators:
00: Caps Lock:   off    01: Num Lock:    off    02: Scroll Lock: off
03: Compose:     off    04: Kana:        off    05: Sleep:       off
06: Suspend:     off    07: Mute:        off    08: Misc:        off
09: Mail:        off    10: Charging:    off    11: Shift Lock:  off
12: Group 2:     off    13: Mouse Keys:  off
auto repeat delay:  500    repeat rate:  33
auto repeating keys:  00ffffffdffffbbf
fadfffefffedffff
9fffffffffffffff
fff7ffffffffffff
bell percent:  50    bell pitch:  400    bell duration:  100
Pointer Control:
acceleration:  2/1    threshold:  4
Screen Saver:
prefer blanking:  yes    allow exposures:  yes
timeout:  0    cycle:  0
Colors:
default colormap:  0x20    BlackPixel:  0x0    WhitePixel:  0xffffff
Font Path:
catalogue:/etc/X11/fontpath.d,built-ins
DPMS (Energy Star):
Standby: 0    Suspend: 0    Off: 0
DPMS is Enabled
Monitor is On

[/terminal]

Digiprove sealCopyright secured by Digiprove © 2020 Humble Chirammal