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.
|
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/)
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. |
|||||||||||||||||||||
|
|
To add on to the other answer, I found that when I entered
|
|||||||||||||
|
|
I found the I found the reason for this was the hot key combo I was using for no particular reason. I discovered the hot key combo "Mod2+Mod4+Super+Hyper+Left shift" assigned to the |
||||
|
|
|
Just to add more options... You can run
To determine your display name, simply run Beware though, after running this command, you won't be able to turn your screen on by moving your mouse or using a keyboard. You will have to either use second monitor or blindly type
So, X RandR provides you with better control over your screens, but it does what it does. It can also be used for other things, like changing resolution, orientation, rate, etc. It is also very easy to run it inside scripts. If you want, you can write a script to make your screen nicely fade to black. Brightness parameter can take fractions |
|||||
|