----- Original Message -----
From: Dirk Laurie <[EMAIL PROTECTED]>
To: Red Hat List <[EMAIL PROTECTED]>
Sent: Tuesday, November 16, 1999 4:03 AM
Subject: Automatic shutdown on power failure
> 1. On a laptop it is possible to write a little script that tests
> via apm whether power is say 6% or less and if so automatically
> halts. Would it be a clever or stupid thing to make cron run
> such a script every 5 minutes or so?
Good idea. KDE and (possibly) Gnome have applets which do this for you but
when I had a laptop (wife made me sell it) I had a cron job, checking
/proc/apm every minute. It took very little processing time. (Isn't Linux
wonderful sometimes? The things I can do, I could never do under Windows
unless I bought $x000 of compilers, SDKs, etc.)
> 2. Is there any software that listens to a UPS (uninterruptable
> power supply) in the way apm listens to a laptop battery?
> That can warn you that the power you're now getting is not
> from the main any more?
SmartUPS, from APC, tell the PC to shut down via a serial port signal. There
is a Linux app to monitor said serial port & give you a graceful shutdown.
It'll even cancel the shutdown if the power comes back before the batteries
are about to run out.
--
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.