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. |
monitor
Quote:
|
I think I have the power button under control... ;)
Any suggestions are appreciated. Thanks. |
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. |
I think it's something like 'xset dpms force off'.
|
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)? |
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 |
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) |
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 11:44 AM. |