{"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

vbetool Utility<\/h2>\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

$ sudo apt-get install vbetool<\/code><\/pre>\n\n\n\n

Run the following command to turn off the display.<\/p>\n\n\n\n

$ sudo vbetool dpms off<\/code><\/pre>\n\n\n\n

To regain control of the console by pressing Enter key, use the following command:<\/p>\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

You can use xset to turn of the display using:<\/p>\n\n\n\n

$ xset -display :0.0 dpms force off<\/code><\/pre>\n\n\n\n

or turn on the display using:<\/p>\n\n\n\n

$ xset -display :0.0 dpms force on<\/code><\/pre>\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

$ 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

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

$ xrandr -q<\/code><\/pre>\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

$ xrandr --output CRT1 --off<\/code><\/pre>\n\n\n\n

Or the following to turn it on:<\/p>\n\n\n\n

$ xrandr --output CRT1 --auto<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"

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":"\nHow to Turn Off Monitor Using Command-line in Ubuntu 20.04<\/title>\n<meta name=\"description\" content=\"To turn off monitor in Ubuntu 20.04 console requires a simple command using the vbetool utility and other methods as shown in this guide\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/local.brightwhiz\/turn-off-monitor-ubuntu-20-04\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Turn Off Monitor Using Command-line in Ubuntu 20.04\" \/>\n<meta property=\"og:description\" content=\"To turn off monitor in Ubuntu 20.04 console requires a simple command using the vbetool utility and other methods as shown in this guide\" \/>\n<meta property=\"og:url\" content=\"http:\/\/local.brightwhiz\/turn-off-monitor-ubuntu-20-04\/\" \/>\n<meta property=\"og:site_name\" content=\"Brightwhiz.com\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/brightwhiz\/\" \/>\n<meta property=\"article:published_time\" content=\"2021-01-04T22:29:10+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-12-04T07:00:23+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/01\/turn-off-monitor.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"630\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Michael Bright\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@brightwhizmag\" \/>\n<meta name=\"twitter:site\" content=\"@brightwhizmag\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Michael Bright\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"http:\/\/local.brightwhiz\/turn-off-monitor-ubuntu-20-04\/#article\",\"isPartOf\":{\"@id\":\"http:\/\/local.brightwhiz\/turn-off-monitor-ubuntu-20-04\/\"},\"author\":{\"name\":\"Michael Bright\",\"@id\":\"http:\/\/local.brightwhiz\/#\/schema\/person\/81f0f3126f13834ae2e7f381b3028e32\"},\"headline\":\"How to Turn Off Monitor Using Command-line in Ubuntu 20.04\",\"datePublished\":\"2021-01-04T22:29:10+00:00\",\"dateModified\":\"2021-12-04T07:00:23+00:00\",\"mainEntityOfPage\":{\"@id\":\"http:\/\/local.brightwhiz\/turn-off-monitor-ubuntu-20-04\/\"},\"wordCount\":192,\"publisher\":{\"@id\":\"http:\/\/local.brightwhiz\/#organization\"},\"image\":{\"@id\":\"http:\/\/local.brightwhiz\/turn-off-monitor-ubuntu-20-04\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/01\/turn-off-monitor.jpg\",\"articleSection\":[\"Articles\",\"Guides\",\"How To\",\"Technology\",\"Tools\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"http:\/\/local.brightwhiz\/turn-off-monitor-ubuntu-20-04\/\",\"url\":\"http:\/\/local.brightwhiz\/turn-off-monitor-ubuntu-20-04\/\",\"name\":\"How to Turn Off Monitor Using Command-line in Ubuntu 20.04\",\"isPartOf\":{\"@id\":\"http:\/\/local.brightwhiz\/#website\"},\"primaryImageOfPage\":{\"@id\":\"http:\/\/local.brightwhiz\/turn-off-monitor-ubuntu-20-04\/#primaryimage\"},\"image\":{\"@id\":\"http:\/\/local.brightwhiz\/turn-off-monitor-ubuntu-20-04\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/01\/turn-off-monitor.jpg\",\"datePublished\":\"2021-01-04T22:29:10+00:00\",\"dateModified\":\"2021-12-04T07:00:23+00:00\",\"description\":\"To turn off monitor in Ubuntu 20.04 console requires a simple command using the vbetool utility and other methods as shown in this guide\",\"breadcrumb\":{\"@id\":\"http:\/\/local.brightwhiz\/turn-off-monitor-ubuntu-20-04\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/local.brightwhiz\/turn-off-monitor-ubuntu-20-04\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\/\/local.brightwhiz\/turn-off-monitor-ubuntu-20-04\/#primaryimage\",\"url\":\"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/01\/turn-off-monitor.jpg\",\"contentUrl\":\"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/01\/turn-off-monitor.jpg\",\"width\":1200,\"height\":630,\"caption\":\"Turn Off Monitor\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/local.brightwhiz\/turn-off-monitor-ubuntu-20-04\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"http:\/\/local.brightwhiz\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Turn Off Monitor Using Command-line in Ubuntu 20.04\"}]},{\"@type\":\"WebSite\",\"@id\":\"http:\/\/local.brightwhiz\/#website\",\"url\":\"http:\/\/local.brightwhiz\/\",\"name\":\"Brightwhiz.com\",\"description\":\"Best Tech guides, Tutorials, and News\",\"publisher\":{\"@id\":\"http:\/\/local.brightwhiz\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\/\/local.brightwhiz\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"http:\/\/local.brightwhiz\/#organization\",\"name\":\"Brightwhiz\",\"url\":\"http:\/\/local.brightwhiz\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\/\/local.brightwhiz\/#\/schema\/logo\/image\/\",\"url\":\"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/11\/brightwhiz-com-logo-orange.png\",\"contentUrl\":\"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/11\/brightwhiz-com-logo-orange.png\",\"width\":706,\"height\":135,\"caption\":\"Brightwhiz\"},\"image\":{\"@id\":\"http:\/\/local.brightwhiz\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/brightwhiz\/\",\"https:\/\/x.com\/brightwhizmag\",\"https:\/\/instagram.com\/bright_whiz\/\",\"https:\/\/www.pinterest.com\/sobbayi\/\",\"https:\/\/www.youtube.com\/channel\/UC6sCdP_d_RiTIM7ErFT-PSQ\"]},{\"@type\":\"Person\",\"@id\":\"http:\/\/local.brightwhiz\/#\/schema\/person\/81f0f3126f13834ae2e7f381b3028e32\",\"name\":\"Michael Bright\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\/\/local.brightwhiz\/#\/schema\/person\/image\/\",\"url\":\"http:\/\/1.gravatar.com\/avatar\/da90485875ff0aafa38fdd494abe87d1?s=96&d=mm&r=g\",\"contentUrl\":\"http:\/\/1.gravatar.com\/avatar\/da90485875ff0aafa38fdd494abe87d1?s=96&d=mm&r=g\",\"caption\":\"Michael Bright\"},\"sameAs\":[\"https:\/\/sobbayi.com\"],\"url\":\"http:\/\/local.brightwhiz\/author\/sobbayiadmin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Turn Off Monitor Using Command-line in Ubuntu 20.04","description":"To turn off monitor in Ubuntu 20.04 console requires a simple command using the vbetool utility and other methods as shown in this guide","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"http:\/\/local.brightwhiz\/turn-off-monitor-ubuntu-20-04\/","og_locale":"en_US","og_type":"article","og_title":"How to Turn Off Monitor Using Command-line in Ubuntu 20.04","og_description":"To turn off monitor in Ubuntu 20.04 console requires a simple command using the vbetool utility and other methods as shown in this guide","og_url":"http:\/\/local.brightwhiz\/turn-off-monitor-ubuntu-20-04\/","og_site_name":"Brightwhiz.com","article_publisher":"https:\/\/www.facebook.com\/brightwhiz\/","article_published_time":"2021-01-04T22:29:10+00:00","article_modified_time":"2021-12-04T07:00:23+00:00","og_image":[{"width":1200,"height":630,"url":"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/01\/turn-off-monitor.jpg","type":"image\/jpeg"}],"author":"Michael Bright","twitter_card":"summary_large_image","twitter_creator":"@brightwhizmag","twitter_site":"@brightwhizmag","twitter_misc":{"Written by":"Michael Bright","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"http:\/\/local.brightwhiz\/turn-off-monitor-ubuntu-20-04\/#article","isPartOf":{"@id":"http:\/\/local.brightwhiz\/turn-off-monitor-ubuntu-20-04\/"},"author":{"name":"Michael Bright","@id":"http:\/\/local.brightwhiz\/#\/schema\/person\/81f0f3126f13834ae2e7f381b3028e32"},"headline":"How to Turn Off Monitor Using Command-line in Ubuntu 20.04","datePublished":"2021-01-04T22:29:10+00:00","dateModified":"2021-12-04T07:00:23+00:00","mainEntityOfPage":{"@id":"http:\/\/local.brightwhiz\/turn-off-monitor-ubuntu-20-04\/"},"wordCount":192,"publisher":{"@id":"http:\/\/local.brightwhiz\/#organization"},"image":{"@id":"http:\/\/local.brightwhiz\/turn-off-monitor-ubuntu-20-04\/#primaryimage"},"thumbnailUrl":"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/01\/turn-off-monitor.jpg","articleSection":["Articles","Guides","How To","Technology","Tools"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"http:\/\/local.brightwhiz\/turn-off-monitor-ubuntu-20-04\/","url":"http:\/\/local.brightwhiz\/turn-off-monitor-ubuntu-20-04\/","name":"How to Turn Off Monitor Using Command-line in Ubuntu 20.04","isPartOf":{"@id":"http:\/\/local.brightwhiz\/#website"},"primaryImageOfPage":{"@id":"http:\/\/local.brightwhiz\/turn-off-monitor-ubuntu-20-04\/#primaryimage"},"image":{"@id":"http:\/\/local.brightwhiz\/turn-off-monitor-ubuntu-20-04\/#primaryimage"},"thumbnailUrl":"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/01\/turn-off-monitor.jpg","datePublished":"2021-01-04T22:29:10+00:00","dateModified":"2021-12-04T07:00:23+00:00","description":"To turn off monitor in Ubuntu 20.04 console requires a simple command using the vbetool utility and other methods as shown in this guide","breadcrumb":{"@id":"http:\/\/local.brightwhiz\/turn-off-monitor-ubuntu-20-04\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["http:\/\/local.brightwhiz\/turn-off-monitor-ubuntu-20-04\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/local.brightwhiz\/turn-off-monitor-ubuntu-20-04\/#primaryimage","url":"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/01\/turn-off-monitor.jpg","contentUrl":"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/01\/turn-off-monitor.jpg","width":1200,"height":630,"caption":"Turn Off Monitor"},{"@type":"BreadcrumbList","@id":"http:\/\/local.brightwhiz\/turn-off-monitor-ubuntu-20-04\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"http:\/\/local.brightwhiz\/"},{"@type":"ListItem","position":2,"name":"How to Turn Off Monitor Using Command-line in Ubuntu 20.04"}]},{"@type":"WebSite","@id":"http:\/\/local.brightwhiz\/#website","url":"http:\/\/local.brightwhiz\/","name":"Brightwhiz.com","description":"Best Tech guides, Tutorials, and News","publisher":{"@id":"http:\/\/local.brightwhiz\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/local.brightwhiz\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"http:\/\/local.brightwhiz\/#organization","name":"Brightwhiz","url":"http:\/\/local.brightwhiz\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/local.brightwhiz\/#\/schema\/logo\/image\/","url":"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/11\/brightwhiz-com-logo-orange.png","contentUrl":"http:\/\/local.brightwhiz\/wp-content\/uploads\/2021\/11\/brightwhiz-com-logo-orange.png","width":706,"height":135,"caption":"Brightwhiz"},"image":{"@id":"http:\/\/local.brightwhiz\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/brightwhiz\/","https:\/\/x.com\/brightwhizmag","https:\/\/instagram.com\/bright_whiz\/","https:\/\/www.pinterest.com\/sobbayi\/","https:\/\/www.youtube.com\/channel\/UC6sCdP_d_RiTIM7ErFT-PSQ"]},{"@type":"Person","@id":"http:\/\/local.brightwhiz\/#\/schema\/person\/81f0f3126f13834ae2e7f381b3028e32","name":"Michael Bright","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/local.brightwhiz\/#\/schema\/person\/image\/","url":"http:\/\/1.gravatar.com\/avatar\/da90485875ff0aafa38fdd494abe87d1?s=96&d=mm&r=g","contentUrl":"http:\/\/1.gravatar.com\/avatar\/da90485875ff0aafa38fdd494abe87d1?s=96&d=mm&r=g","caption":"Michael Bright"},"sameAs":["https:\/\/sobbayi.com"],"url":"http:\/\/local.brightwhiz\/author\/sobbayiadmin\/"}]}},"_links":{"self":[{"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/posts\/9326"}],"collection":[{"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/comments?post=9326"}],"version-history":[{"count":0,"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/posts\/9326\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/media\/9327"}],"wp:attachment":[{"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/media?parent=9326"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/categories?post=9326"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/local.brightwhiz\/wp-json\/wp\/v2\/tags?post=9326"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}