LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Turn off monitor? (https://www.linuxquestions.org/questions/slackware-14/turn-off-monitor-405405/)

Zeno McDohl 01-19-2006 10:46 AM

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.

gilead 01-19-2006 01:20 PM

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.

nilleso 01-19-2006 01:33 PM

...and for the monitor use a screensave
xscreensaver

Zeno McDohl 01-19-2006 04:31 PM

For Apache, I get:
Quote:

/usr/sbin/apachect1 stop: httpd (no pid file) not running
And if I try xscreensaver I get an error:
Quote:

warning: $DISPLAY is not set: defaulting to ":0.0"
Can't open display :0.0
Oh and I don't want a screensaver. I want the monitor 'off' (The power icon turns orange).

Zeno McDohl 01-21-2006 08:33 PM

Okay my monitor turns black after some idle time, so that works. Still can't get that pid Apache error away.

Pocketace 01-21-2006 11:19 PM

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.

gilead 01-21-2006 11:31 PM

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.

Oinopion 01-22-2006 05:59 AM

To shutdown monitor physically you have to have:
Code:

    Option "DPMS"
in xorg.conf in 'Monitor' section.

Zeno McDohl 01-22-2006 12:15 PM

But isn't that for X? I don't use X because this is a server.

phil.d.g 01-22-2006 12:20 PM

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

gilead 01-22-2006 12:42 PM

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

phil.d.g 01-22-2006 12:44 PM

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

gilead 01-22-2006 12:53 PM

A hot day here without the air conditioning on sends my monitor (and motherboard) to sleep with or without help from the software ;)

MannyNix 01-23-2006 02:51 AM

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

Zeno McDohl 01-26-2006 06:20 PM

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.