Super User is a question and answer site for computer enthusiasts and power users. 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

I need to know how to turn off a monitor through remote login in linux. And also how to turn it on. Pleas help....

share|improve this question

migrated from Oct 31 '12 at 12:50

This question came from our site for professional and enthusiast programmers.

try this:

ssh -X user@host
xset dpms force off
xset dpms force on
share|improve this answer
Not working... It gives me an error 'xset: unable to open display "'... – m4n1c Oct 31 '12 at 7:26
You might need to tell xset what X-display to talk to: export DISPLAY=:0 – kalle Oct 31 '12 at 8:20
how do i do that – m4n1c Oct 31 '12 at 9:21

try this:

ssh -X <user>

check if this exists,

cat /proc/acpi/info

Do the following,

xset q

If you get the DPMS error, do the following. Otherwise Skip.

xset +dpms

If this file exists, then you can turn of your monitor from your terminal. You need to have ACPI enable in your kernel to do so, and the presence of this file ensures that it is.

xset dpms force off

^Use this command after that.

you can use this tutorial to see how to enable ACPI. Although it is usually set enabled by default in kernel.

share|improve this answer
when i type xset -q in the terminal i get the message as Server does not have the DPMS Extension – m4n1c Oct 31 '12 at 9:33
I have edited the answer to fix the error you are getting. Hopefully it should work now. – user125883 Oct 31 '12 at 12:53
Anyways I think xset dpms force off will turn off the local monitor not the remote one (and I don't know how to turn the remote monitor off). – laurent Oct 31 '12 at 13:11

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .