Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Can I turn off my laptop monitor manually and instantly with just a click or a simple terminal command? I just want to turn off my monitor not locking my machine. There is no dedicated turn off monitor button on my machine.

share|improve this question

2 Answers 2

up vote 12 down vote accepted

You can by using the preferences command for X server (http://systembash.com/content/how-to-turn-off-your-monitor-via-command-line-in-ubuntu/)

  • To turn off the monitor $ xset dpms force off
  • To turn on the monitor $ xset dpms force on

Pressing a key or moving the mouse will also switch the monitor on if it has been turned off. You can assign the command to a key if you like using shortcuts.

share|improve this answer
1  
It works, thanks.. I'm just wondering, can I make it to slowly fade off just like when my computer about to sleep? –  Nur Feb 12 '13 at 17:25
    
It would be nice @DavidAshford –  Nur Feb 13 '13 at 3:29
    
It doesn't look like xset has the option to slowly fade –  David Ashford Feb 13 '13 at 12:44
2  
Is there a way to use this commant with locking my screen? When I lock my screen my monitors don't turn off, just go black. I want to save power by turning them off while also locking my session. Any ideas? –  Felipe Sep 18 '13 at 19:15
1  
+1; Just a note that this solution isn't unity specific and you can happily use it on any DE. –  mreq Oct 29 '13 at 13:07

To add on to the other answer, I found that when I entered xset dpms force off and pressed the Enter key, my screen would turn off and turn on again. By running the command below, I was able to get the screen to turn off without turning on.

sleep 3; xset dpms force off
share|improve this answer
    
Thanks. That's a neat workaround. –  ananth.p Jul 18 at 15:42

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.