Turn off monitor? Remove Apache?
My computer has no button to turn off the monitor. Is there a way to turn it off (via the OS/software) so it doesn't burn an image into the screen? I'm half sure there is, since I've seen it done.
And a quick question. How do I fully remove Apache? I removed the package, but I still get Apache related errors on shutdown. |
What are the errors? If you've uninstalled the package all of the executables should be gone. Were you seeing something like 'No such file or directory'?
If so, check /etc/rc.d/rc.6 & /etc/rc.d/rc.M for lines containing '/etc/rc.d/rc.httpd'. They should be wrapped in checks to see if the file is executable, but if the check has been removed you'll get an error when the script is run. |
...and for the monitor use a screensave
xscreensaver |
For Apache, I get:
Quote:
Quote:
|
Okay my monitor turns black after some idle time, so that works. Still can't get that pid Apache error away.
|
On your monitor problem, if you have the acpi stuff running you can try using the xset command. It would look like this: xset dpms force off
that should work. |
You can safely ignore the Apache error - it's trying to close it down but it's not running anyway. To stop it happening though, you can run chmod -x /etc/rc.d/rc.httpd and that should stop it.
|
To shutdown monitor physically you have to have:
Code:
Option "DPMS" |
But isn't that for X? I don't use X because this is a server.
|
All the suggestions for your monitor so far have been for X. Does the monitor just blank and not power down? I had the same problem, I think its because, in layman's terms, the kernel doesn't know how to tell your graphics card to signal the monitor to power down, I never found a solution unfortunately
|
In my startup scripts I have the following to blank my monitor - I'd forgotten it was even there:
Code:
/bin/setterm -blank 15 -powersave powerdown -powerdown 60 |
Yes, its in /etc/rc.d/rc.M by default, still certain graphics cards won't send the monitor to sleep when they're supposed to
|
A hot day here without the air conditioning on sends my monitor (and motherboard) to sleep with or without help from the software ;)
|
Thank you Oinopion!
I was wondering why the suspend mode only worked with other distros, i was missing Option "DPMS" i had recompiled my kernel and even tried tweaking rc.M and i still didn't know why my viewsonic only went blank, but not suspend. Learning new little things is one of the fun things of running slack |
I'm still looking for a way to power off the monitor off via bash. If it idles, the monitor will "black" out but the monitor will still be on and emitting a light.
|
All times are GMT -5. The time now is 07:05 PM. |