From owner-freebsd-questions@freebsd.org Wed Nov 8 22:57:17 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B5065E5DBED for ; Wed, 8 Nov 2017 22:57:17 +0000 (UTC) (envelope-from frank2@fjl.co.uk) Received: from bs1.fjl.org.uk (bs1.fjl.org.uk [84.45.41.196]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "bs1.fjl.org.uk", Issuer "bs1.fjl.org.uk" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 52F096AA76 for ; Wed, 8 Nov 2017 22:57:15 +0000 (UTC) (envelope-from frank2@fjl.co.uk) Received: from [192.168.1.35] (host86-149-164-162.range86-149.btcentralplus.com [86.149.164.162]) (authenticated bits=0) by bs1.fjl.org.uk (8.14.4/8.14.4) with ESMTP id vA8Muxt7080307 for ; Wed, 8 Nov 2017 22:57:01 GMT (envelope-from frank2@fjl.co.uk) Subject: Re: Clean shutdown with CyberPower UPS To: freebsd-questions@freebsd.org References: From: Frank Leonhardt Message-ID: Date: Wed, 8 Nov 2017 22:57:05 +0000 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Nov 2017 22:57:17 -0000 On 21/09/2017 18:08, Maxim Khitrov wrote: > Hi, > > FreeBSD 11.1 with CyberPower CP1500PFCLCD connected via USB. Tried > apcupsd, but it was not able to detect the UPS using the "usb" driver. > NUT seems way too overengineered. Don't really want to deal with > network services for such a simple task. > > On OpenBSD, I use sensorsd with a simple script to shut the system > down. Is there anything similar on FreeBSD? Basically, I just need a > way of getting the battery percentage and/or remaining runtime from a > ugen HID device. > Not an answer, but for what it's worth I engineer clean shutdowns for a number of machines connected to a single UPS with a simple script that pings a few direct-mains connected devices periodically, and when it fails to get a reply from any of them it sends off a last-minute email and shuts down. Regards, Frank.