LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-05-2008, 01:26 AM   #1
jchambers
Member
 
Registered: Aug 2007
Location: California
Distribution: Debian
Posts: 127

Rep: Reputation: 15
Turn off monitor via CLI ??


Hello all --

Seems like just about anything is possible on Linux so I will try my luck at this one...

I would like to run a command that disables the monitor temporarily during the boot process. Then enable it again once a program has started. I am think of adding it to the rc.local as I believe it is read early in the boot process (don't quote me on that though).

I know how to check if a the program is started but I have no idea how to disable/enable the monitor.

Has anyone tried to do this before?

Thank you.
 
Old 01-05-2008, 01:53 AM   #2
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,072
Blog Entries: 3

Rep: Reputation: 323Reputation: 323Reputation: 323Reputation: 323
monitor

Quote:
Originally Posted by jchambers View Post
Hello all --

Seems like just about anything is possible on Linux so I will try my luck at this one...

I would like to run a command that disables the monitor temporarily during the boot process. Then enable it again once a program has started. I am think of adding it to the rc.local as I believe it is read early in the boot process (don't quote me on that though).

I know how to check if a the program is started but I have no idea how to disable/enable the monitor.

Has anyone tried to do this before?

Thank you.
well I used to push the power button on mine.It was blank then come back and push the button agian. good luck.
 
Old 01-05-2008, 03:50 PM   #3
jchambers
Member
 
Registered: Aug 2007
Location: California
Distribution: Debian
Posts: 127

Original Poster
Rep: Reputation: 15
I think I have the power button under control...


Any suggestions are appreciated.

Thanks.
 
Old 01-05-2008, 04:00 PM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Since you can setup power management in the GUI, one would assume that there is a command somewhere.

The first thing to try is a Google search.
The second might be the X-Windows docs.

The last resort might be to change your power management setup and then search to see what files were changed.
 
Old 01-05-2008, 04:14 PM   #5
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 122Reputation: 122
I think it's something like 'xset dpms force off'.
 
Old 01-05-2008, 04:51 PM   #6
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Well, I'll be darned.....

I just did "xset dpms force standby" and it worked.

Just for kicks where are commands like xset documented (other than the man pages)?
 
Old 01-05-2008, 05:44 PM   #7
jchambers
Member
 
Registered: Aug 2007
Location: California
Distribution: Debian
Posts: 127

Original Poster
Rep: Reputation: 15
Thank you for the tip!

My monitor does not turn off when I type it in?
I must be missing an application since it works for others.

I installed x11 / gnome after the initial install.

apt-get -y --force-yes install xserver-xorg-core xfonts-base gnome-desktop-environment
 
Old 01-05-2008, 06:39 PM   #8
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 122Reputation: 122
I'm not aware of any documentation for xset other than the manpages.

jchambers, what happens when you run the xset command?

I have a button on my gnome toolbar I setup to turn off the monitor for night time since my computer is in my bedroom (yes, I could just hit the power button, but this allows me to wake it up with just a mouse movement)
 
Old 01-05-2008, 06:59 PM   #9
jchambers
Member
 
Registered: Aug 2007
Location: California
Distribution: Debian
Posts: 127

Original Poster
Rep: Reputation: 15
Nothing really, it accepts the command without any errors but nothing happens.

I tried various commands with xset and used xset q to view them with no results. Not sure where to go from here.

One more question.
Is there a command I can use from the terminal (beofre X starts) to turn off the monitor.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 to turn the screen sideways (CLI and X) ie rotate output 90 degrees. logbot Linux - Hardware 1 09-28-2007 04:03 PM
Monitor turn off mrxtheking Slackware 8 03-29-2006 06:26 PM
Turn off monitor? Zeno McDohl Slackware 14 01-26-2006 07:20 PM
monitor turn off jkmartha Linux - Newbie 1 05-03-2005 02:16 AM
How do I change my monitor via cli? TheBelush Linux - Newbie 2 03-30-2005 12:07 AM


All times are GMT -5. The time now is 10:19 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration