Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 stackoverflow.com Oct 31 '12 at 12:50

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

2 Answers 2

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
1  
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.

http://www.redhat.com/archives/fedora-list/2004-January/msg02841.html

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

Your Answer

 
discard

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.