Is there a way to turn off the display (enter power saving mode) using a command?
For example, when the computer is inactive for a specific interval, the screen turns off to conserve energy. Is there a way to manually turn off the screen, yet keep the computer running normally?
This is a notebook, so there's no 'power-off' button on the monitor itself.
I think you are looking for
However, you need to make sure that your acpi is enabled. You can check this with
Another option could be
I'm running Ubuntu Server without X on a 2007 MacBook Pro. The display is sleeping by itself but won't reactivate when a key is pressed on the keyboard. At this point my fix is to use
vbetool
. Install usingapt-get
:Then use to turn display on via SSH from a different machine:
Or off:
I have made a unity launcher to turn off the LCD
It will open a small windows. Enter the following:
Name:
turnofflcd
Command:
gnome-screensaver-command --lock && sleep 2s && xset dpms force off
You can also choose an icon by clicking the icon on the left .
For more on making launcher see http://www.ubuntugeek.com/how-to-create-desktop-launchers-in-ubuntu-11-10oneiric.html.
This starts the screen saver in locked mode and then puts your display in standby. Ubuntu Mate 15.10
xset dpms force off
worked only for 5 seconds.I searched the internet and found the following script, and after a small change it worked perfectly.
I know that xscreensaver is not exactly blank screen, but may be of some help:
or via ssh
The same way deactivate:
or
Enter password after xscreensaver via ssh: