Date: Fri, 12 Jun 1998 01:58:20 -0700 (PDT) From: Doug White <dwhite@resnet.uoregon.edu> To: Jesse <j@lumiere.net> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: upsd, automatic shutdown at low batt Message-ID: <Pine.BSF.3.96.980612015217.11999z-100000@resnet.uoregon.edu> In-Reply-To: <Pine.BSF.3.96.980609023454.28015A-100000@leaf.lumiere.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 9 Jun 1998, Jesse wrote: > I recently setup upsd to work with my APC Smart UPS 2200. It seems to poll > the system okay (after I disabled "poll status") and reacts to line > failures and restorations. However, from looking at the config file I've > only been able to figure out how to make the system shutdown after X > amount of time has passed since the UPS went to battery. I'd much rather > have the system shutdown when the battery gets down to like 5% charge or X > minutes before out-of-battery. Has anyone figured out any way to do this? You can polll that info out of the UPS, then test those registers against a constant. I think it looks like this when used: on "recharge" <= 5.0 { # do shutdown } You should know how long your systems can run on battery power. If not, do a test. :) > Also, is load a percentage? Yes. I think it's a percentage of load draw, ie 50% == ~7.5amps. Obviously that impacts your bettery runtime. Doug White | University of Oregon Internet: dwhite@resnet.uoregon.edu | Residence Networking Assistant http://gladstone.uoregon.edu/~dwhite | Computer Science Major To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.980612015217.11999z-100000>