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 it possible to somehow trigger screensaver or make the monitor sleep/off? I want to disable screensaver/monitor sleep as it gets annoying at times, however I still want a way to save power via such methods

share|improve this question
up vote 7 down vote accepted
sleep 1; xset dpms force off


You might find suspending the computer just as convenient.

share|improve this answer
Sometimes, I have things running in the background and dont want it to suspend – Jiew Meng Jun 5 '11 at 10:07
sleep 1; xset dpms force off works but is it possble to attach it to a launcher or keyboard shortcut? I tried creating a custom launcher and pasting in sleep 1; xset dpms force off in command but it does nothing – Jiew Meng Jun 11 '11 at 5:11
try /bin/bash -c "sleep 1; xset dpms force off" instead. – ijk Mar 17 '12 at 16:38

I figured after some searching in Google I can do

gnome-screensaver-command --activate

So I used it in a keytboard shortcut :)

UPDATE: hmm, the LCD backlight is still on, I guess what I really wanted is monitor off ...

share|improve this answer

It sounds like you want to put the monitor to sleep manually.

The closest thing I can suggest is to set the Power Management Preferences to put the display to sleep at the minimum time of one minute, then use the 'Inhibit Applet' on the Gnome Panel to disable sleep manually.

When you start the computer, click the applet to keep the monitor on. When you are ready to put the monitor to sleep, click it and the display will shut off a minute later.

Not very elegant but it's what you are wanting, with a one-minute delay. Hopefully someone else has a better response.

share|improve this answer
Hi I found that /etc/acpi/ can be used but I get an error ... so it offs the LCD then truns in back on ... awk: line 1: regular expression compile failed (missing '('):0) – Jiew Meng May 1 '11 at 14:36

Running gnome-screensaver-command -a will trigger the screensaver.

share|improve this answer
hmm I found that somewhere too, but I now thing what I really wanted is make the monitor sleep manually, as screensaver will not off backlight – Jiew Meng May 1 '11 at 14:29

Ubuntu 12.04 instructions

  1. Open System Settings from the menu
  2. Click on Keyboard
  3. Click the tab Shortcuts
  4. Click on Custom Shortcuts
  5. Click the little "+" icon to create a new shortcut
  6. Both in name and command enter xset dpms force off , then click Apply
  7. Click on your new shortcut where it says Disabled
  8. Press the F12 key

This will set the F12 key to turn off your monitor. Press anything to turn it back on again.

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.