From owner-freebsd-questions Fri Jun 12 01:59:14 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id BAA13953 for freebsd-questions-outgoing; Fri, 12 Jun 1998 01:59:14 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from resnet.uoregon.edu (resnet.uoregon.edu [128.223.144.32]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id BAA13717 for ; Fri, 12 Jun 1998 01:58:24 -0700 (PDT) (envelope-from dwhite@resnet.uoregon.edu) Received: from localhost (dwhite@localhost) by resnet.uoregon.edu (8.8.5/8.8.8) with SMTP id BAA11699; Fri, 12 Jun 1998 01:58:20 -0700 (PDT) (envelope-from dwhite@resnet.uoregon.edu) Date: Fri, 12 Jun 1998 01:58:20 -0700 (PDT) From: Doug White To: Jesse cc: freebsd-questions@FreeBSD.ORG Subject: Re: upsd, automatic shutdown at low batt In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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