Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
up vote 25 down vote accepted

I think you are looking for

xset dpms force off

However, you need to make sure that your acpi is enabled. You can check this with

cat /proc/acpi/info

Another option could be

setterm -powersave powerdown
share|improve this answer
The first command didn't require sudo for me. – Alvin Row Oct 14 '10 at 21:22
Me neither. ` ` ` ` – Nathan Osman Oct 14 '10 at 21:38
Sometimes the Enter keypress as you execute the command can be enough to immediately wake the computer back up again. I usually go with sleep 0.2s && xset dpms force off just to be safe. Also, this makes for a nice replacement for locking your screen: gnome-screensaver-command --lock && sleep 2s && xset dpms force off – ændrük Oct 14 '10 at 22:01
ok.. took the sudo advisory out :D – txwikinger Oct 14 '10 at 23:27
I just did the same thing in kubuntu using info from this answer: xdg-screensaver activate && sleep 2s && xset dpms force off – Joe Feb 18 '13 at 7:26

I have made a unity launcher to turn off the LCD

sudo apt-get install --no-install-recommends gnome-panel

gnome-desktop-item-edit ~/Desktop/ --create-new

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

share|improve this answer

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 using apt-get:

sudo apt-get install vbetool

Then use to turn display on via SSH from a different machine:

sudo vbetool dpms on

Or off:

sudo vbetool dpms off
share|improve this answer

~$(sleep 10s ; xset dpms force suspend) & xdg-screensaver lock

this starts the screen saver in locked mode and then puts your display in standby. Ubuntu Mate 15.10

share|improve this answer

Your Answer


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.