LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-11-2012, 02:54 AM   #1
battler
LQ Newbie
 
Registered: Apr 2012
Posts: 25

Rep: Reputation: Disabled
Turn screens on and off via SSH


I'm a teacher and I have 24 computers for my students. They all run Ubuntu 12.04 and I have SSH root access. I would like to disable their screens via DPMS but somehow this doesnt work anymore.

I use the commando:
Code:
sudo xset dpms force off
But I get the error:
Code:
 xset:  unable to open display ""
I've read some threads about X forwarding, but this is not what I want. I just want to disable their screens until I turn them on again.

Solved:
Code:
 Right command is xset -d :0 dpms force [on/off]
This gives the same error but works nonetheless.

Last edited by battler; 06-11-2012 at 03:31 AM.
 
Old 06-11-2012, 03:03 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
//removing from zero posts.
 
Old 06-11-2012, 03:44 AM   #3
battler
LQ Newbie
 
Registered: Apr 2012
Posts: 25

Original Poster
Rep: Reputation: Disabled
Too bad this only works in Ubuntu 11.10 , Ubuntu 12.04 gives the following error with the new command.
Code:
Invalid MIT-MAGIC-COOKIE-1 keyInvalid MIT-MAGIC-COOKIE-1 keyxset:  unable to open display ":0"
I remove the ~/.Xauthority* file but dint change a thing. The users log in as student, I log in via SSH as teacher (root permission).

SOLVED: In ubuntu 12.04
Code:
 sudo vbetool dpms [on/off]
works!

Last edited by battler; 06-11-2012 at 04:15 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do you turn off login banner for non-interactive ssh? cpatter12 Linux - Security 21 12-14-2016 02:35 PM
unable to ssh remote server (firewall turn off) ankitsagwekar Linux - Server 9 06-28-2011 11:47 PM
do ssh first to router to turn off in apccontrol script ? b-RAM Linux - Software 1 05-12-2010 12:16 AM
Turn an SSH server into a proxy? Cyberman Linux - Networking 3 02-08-2010 12:47 AM
Managing multiple screens: redirecting video output and switching between screens simopal6 Linux - Hardware 2 11-13-2007 06:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:43 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration