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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
01-05-2008, 12:26 AM
|
#1
|
Member
Registered: Aug 2007
Location: California
Distribution: Debian
Posts: 127
Rep:
|
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.
|
|
|
01-05-2008, 12:53 AM
|
#2
|
Senior Member
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
|
monitor
Quote:
Originally Posted by jchambers
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.
|
|
|
01-05-2008, 02:50 PM
|
#3
|
Member
Registered: Aug 2007
Location: California
Distribution: Debian
Posts: 127
Original Poster
Rep:
|
I think I have the power button under control...
Any suggestions are appreciated.
Thanks.
|
|
|
01-05-2008, 03:00 PM
|
#4
|
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809
|
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.
|
|
|
01-05-2008, 03:14 PM
|
#5
|
LQ Guru
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507
Rep: 
|
I think it's something like 'xset dpms force off'.
|
|
|
01-05-2008, 03:51 PM
|
#6
|
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809
|
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)?
|
|
|
01-05-2008, 04:44 PM
|
#7
|
Member
Registered: Aug 2007
Location: California
Distribution: Debian
Posts: 127
Original Poster
Rep:
|
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
|
|
|
01-05-2008, 05:39 PM
|
#8
|
LQ Guru
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507
Rep: 
|
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)
|
|
|
01-05-2008, 05:59 PM
|
#9
|
Member
Registered: Aug 2007
Location: California
Distribution: Debian
Posts: 127
Original Poster
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 09:24 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|