LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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, 12: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, 12:53 AM   #2
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
Blog Entries: 3

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
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, 02: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, 03:00 PM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
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, 03:14 PM   #5
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
I think it's something like 'xset dpms force off'.
 
Old 01-05-2008, 03:51 PM   #6
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
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, 04: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, 05:39 PM   #8
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
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, 05: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 03:03 PM
Monitor turn off mrxtheking Slackware 8 03-29-2006 05:26 PM
Turn off monitor? Zeno McDohl Slackware 14 01-26-2006 06:20 PM
monitor turn off jkmartha Linux - Newbie 1 05-03-2005 01:16 AM
How do I change my monitor via cli? TheBelush Linux - Newbie 2 03-29-2005 11:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:08 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