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
5 Answers
sleep 1; xset dpms force off
source: http://www.shallowsky.com/linux/x-screen-blanking.html
You might find suspending the computer just as convenient.
- 587
- 4
- 10
Ubuntu 12.04 instructions
- Open System Settings from the menu
- Click on Keyboard
- Click the tab Shortcuts
- Click on Custom Shortcuts
- Click the little "+" icon to create a new shortcut
- Both in name and command enter
xset dpms force off, then click Apply - Click on your new shortcut where it says Disabled
- Press the F12 key
This will set the F12 key to turn off your monitor. Press anything to turn it back on again.
- 4,507
- 3
- 31
- 52
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 ...
- 10,067
- 26
- 73
- 95
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.
- 12,953
- 11
- 66
- 134
-
Hi I found that `/etc/acpi/screenblank.sh` 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 01 '11 at 14:36
Running gnome-screensaver-command -a will trigger the screensaver.
- 14,002
- 2
- 45
- 54
-
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 01 '11 at 14:29
`~$ sleep 1; xset dpms force suspend`
pity have two times the same HP Monitor Laptop has 1xVGA + 1xHDMI both commands set HDMI to sleep (LED from blue as active to orange as sleep) BUT the VGA driven Monitor keeps blue LED and on screen shows missing signal (not powering off). – linolino Jan 18 '22 at 14:13