3

Is there a DPMS option to turn one monitor off in a dual-head setup? I know the following can turn both off:

xset dpms force off
Gaff
  • 18,569
  • 15
  • 57
  • 68
gatoatigrado
  • 1,635
  • 3
  • 22
  • 29

3 Answers3

5

xrandr --output $NAMEOFDISPLAY --off

Deltik
  • 19,353
  • 17
  • 73
  • 114
  • That's probably a good idea. I want this for reading [on one monitor -- I have two set up vertically] ... at first I was thinking of something interruptable like dpms, but that would probably be too interruptable, and I could always hotkey it it turn back on. Thanks. Unfortunately my desktop is using nvidia twinview, so is xrandr ineligible :(. – gatoatigrado Jul 17 '10 at 06:37
  • 5
    This is not really the same as DPMS-off: this resizes virtual desktop, whic is quite an intrusive change, since all the windows will be moved from their places to the remaining "visible" monitors. Though it seems the OP wanted exactly this. – Ruslan May 20 '17 at 20:35
3

If you are using the nvidia driver, you can use twinview metamodes. You can find everything in the driver manual. After configuring, you can switch by using

xrandr -s 1

or use a 0 if you want to switch back.

Tim
  • 31
  • 1
0

You can use ddccontrol to control dpms on individual monitors – without modifying the virtual desktop (→ moving windows etc.).

See my answer on a question that explicitly asked for this behaviour.