12

I have an Ubuntu server running xdm with openbox on which is plugged a monitor that displays a video which is launched via a cron daemon.

When the monitor is not used for a certain amount of time, it goes into sleep mode and I cannot wake it up with the video process : The monitor stays black.

How can I wake the monitor? Without installing packages if possible, and without a physical access to the machine.

Jav
  • 960
  • 3
  • 11
  • 23

1 Answers1

17
xset --help

usage:  xset [-display host:dpy] option ...

    To control Energy Star (DPMS) features:
    -dpms      Energy Star features off
    +dpms      Energy Star features on
     dpms [standby [suspend [off]]]
          force standby
          force suspend
          force off
          force on
          (also implicitly enables DPMS features)
          a timeout value of zero disables the mode

So if you get the ${DISPLAY} of the monitor you can:

xset -display ${DISPLAY} dpms force on
mikeserv
  • 57,448
  • 9
  • 113
  • 229