shutdown without waking up the monitor

shutdown without waking up the monitor

Post by Dan Jacobso » Thu, 05 Sep 2002 02:13:08



Problem: the electric company often cuts power here either for 10
minutes or for the whole day.  One can only guess what it will be.
With both my monitor and computer on, my UPS can only last 5 minutes,
but with the monitor off, the UPS can last 20 minutes.  (No, I have the
most basic UPS with no com port hook up.)

I could hit the plastic button on my monitor to turn it off, but if
power is restored, then it is a shame to have turned it on and off:
wear and tear.  Best would to be to put it into a standby mode.  Then
if 15 minutes have gone by, go into shutdown via script, without
reviving the monitor via keyboard actions.  However I am having
trouble writing this.

xset dpms force standby #works, but monitor gets turned on again when X
#exits during shutdown!  How to stop that?
#Ok, try from plain tty1 or after "init 1", on /dev/console:
setterm -powersave powerdown #no effect, and no error message
echo -e "\033[9;0]\033[14;0]" >/dev/console #again, no effect
sleep 900 #interrupt with ^C if I notice power is restored
shutdown -h now
#I have a Lemel 15+ monitor, OS: debian woody

By the way, on the debian-user list there was a response:

csj> Same power problemo here. I found my solution a few months ago. I
csj> installed emacs + emacspeak + flite + eflite (needs a few bits of
csj> non-automatic configuring). Emacspeak lets you compute without a
csj> monitor! In my case it lets me do basic computer administration. When a
csj> power outage hits I set my terminal (window or tab) to an emacs(peak)
csj> shell and promptly turn off the monitor. If the power isn't restored
csj> within say 10 mins, I can su to root and issue the shutdown
csj> command.

Yes, but you still physically (push the button) turn off the monitor.
You have not managed to shutdown without somehow waking up the
monitor, so you must physically turn it off.

I don't need to touch the keyboard again.  My script will do the
shutdown in 10 minutes.  I just can't figure out to run the shutdown
command without waking up the monitor.
--
http://jidanni.org/ Taiwan(04)25854780

 
 
 

1. UPS monitor and auto-shutdown

Hi all,

I have a FreeBSD 4.2 system attached to an APC900 SmartUPS. I am using NUT
0.44.1 to monitor the UPS and hopefully shutdown the system if the battery
goes low.  I was wondering if someone might know the proper way to insert
the apcsmart -k command to shut the UPS down before the OS halts.
Everything I have tried in /etc/rc.shutdown ends up killing the power before
sync'ing the disks.  Is there another script where I can insert this
command?  The whole idea was to gracefully pull the plug, as it stands now
I'm just delaying an ugly
shutdown for 45 mins.

Thanks,
Kyle Crane

2. RFC - named loop devices...

3. Shutdown error msg without the shutdown

4. LILO version 22.3.4 released

5. Shape Ups,Men's Shape Ups,Men's Skechers Shape Ups - new styles!

6. Help!

7. telneting into a computer without a monitor and without a keyboard

8. linux / winnt / win98

9. ether-wake / Wake On Lan setup

10. "wake many" vs "wake one" in listen/accept

11. waking up a powerbook with ether-wake

12. IBM Thinkpad A31 APM problem (monitor doesn't wake up)

13. HELP: Solaris 8 running but monitor won't wake up on KVM switch