{"id":9326,"date":"2021-01-04T17:29:10","date_gmt":"2021-01-04T22:29:10","guid":{"rendered":"http:\/\/local.brightwhiz\/?p=9326"},"modified":"2021-12-04T07:00:23","modified_gmt":"2021-12-04T07:00:23","slug":"turn-off-monitor-ubuntu-20-04","status":"publish","type":"post","link":"http:\/\/local.brightwhiz\/turn-off-monitor-ubuntu-20-04\/","title":{"rendered":"How to Turn Off Monitor Using Command-line in Ubuntu 20.04"},"content":{"rendered":"\n
If you do not need to stare at your computer terminal and want to turn off the monitor to save energy or whatever reason then there are a couple of commands at your disposal.<\/p>\n\n\n\n
You can use the vbetool <\/strong>utility to turn off the display as follows. First, install the utility using apt.<\/p>\n\n\n\n Run the following command to turn off the display.<\/p>\n\n\n\n To regain control of the console by pressing Enter key, use the following command:<\/p>\n\n\n\n You can use xset to turn of the display using:<\/p>\n\n\n\n or turn on the display using:<\/p>\n\n\n\n You can set a delay before the monitor goes off to allow all events to be processed by the X server before turning the display off using the following:<\/p>\n\n\n\n You can use xrandr to turn off a specific monitor seeing the other methods here act on all monitors. Run the following command to list your monitors:<\/p>\n\n\n\n Assuming your monitor is identified as CRT1 then you would run the following to turn it off.<\/p>\n\n\n\n Or the following to turn it on:<\/p>\n\n\n\n If you do not need to stare at your computer terminal and want to turn off the monitor to save energy or whatever reason then there are a couple of…<\/p>\n","protected":false},"author":1,"featured_media":9327,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,23,9,16,18],"tags":[],"yoast_head":"\n$ sudo apt-get install vbetool<\/code><\/pre>\n\n\n\n
$ sudo vbetool dpms off<\/code><\/pre>\n\n\n\n
$ sudo sh -c 'vbetool dpms off; read ans; vbetool dpms on'<\/code><\/pre>\n\n\n\n
Using xset<\/h2>\n\n\n\n
$ xset -display :0.0 dpms force off<\/code><\/pre>\n\n\n\n
$ xset -display :0.0 dpms force on<\/code><\/pre>\n\n\n\n
$ sleep 1 && xset -display :0.0 dpms force off<\/code><\/pre>\n\n\n\n
Using xrandr to Turn off Single Monitor<\/h2>\n\n\n\n
$ xrandr -q<\/code><\/pre>\n\n\n\n
$ xrandr --output CRT1 --off<\/code><\/pre>\n\n\n\n
$ xrandr --output CRT1 --auto<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"