From owner-freebsd-questions@freebsd.org Thu Sep 21 17:09:18 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 04B94E1283F for ; Thu, 21 Sep 2017 17:09:18 +0000 (UTC) (envelope-from max@mxcrypt.com) Received: from mail-pf0-x22b.google.com (mail-pf0-x22b.google.com [IPv6:2607:f8b0:400e:c00::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D55441620 for ; Thu, 21 Sep 2017 17:09:17 +0000 (UTC) (envelope-from max@mxcrypt.com) Received: by mail-pf0-x22b.google.com with SMTP id d187so3503591pfg.11 for ; Thu, 21 Sep 2017 10:09:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mxcrypt.com; s=dkim01; h=mime-version:from:date:message-id:subject:to; bh=JJ/x+B0RHQeZBRb/jxlOPsH0gty7TlQMikr49yegRaY=; b=EfRy2QHNadt4ElhGVjlU29xhD8Q7hF+AUX9ZmPHjlo8wJwCdGqDNpFYj6vIkZnVxKX Xst/CEU67h6JFbHkVS2u/PZp44iKsUwj+PR9KojcS/2s0xBbhQb1UoS4Nd+w9dNZW2B0 7JQhzNXVUlBM6VKf7GMzFvMhsm3R3wCE+CEvI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=JJ/x+B0RHQeZBRb/jxlOPsH0gty7TlQMikr49yegRaY=; b=AJPOLyQRE2iTTIF7Ttdwwlh21hhG9O/HEMU2H8/FjiAwa/CrI+ZpdyGLzKpeMjHEwn +k7ahDEC+aDWnwb4ef7pCxKEh/F+0Y/L8lJEj2e6+2dicIPrEeyE3uRlQ/rwNTum5BsC ecwMuj2XY5ihWfG57snJQ0t/3P5mkqNDQwTXlSgEV5mq43HCLcPR0AyBaOodS4KeMPAn 4zwQlv+riGx8XB54aXNCU1C3Da4dbDfq4RRlgKHU/8tbMgTRtWLS7XzZuRV9s6iMd5ML Bhkq3JTNRIdCqtuOhmzE3qAlaRgRyhqh2Jd4PhnnMy2rsyvMg4koRaO1ROQkp6uHMpGc WFeA== X-Gm-Message-State: AHPjjUjqLpoFTXEsumiUcTm/RawgysNkyuaEJLL/eeBeIQTzTOPP/tnt dhQ4mAWneOCeUQ11niR5fl1hJu2NxHTzA8BQ9zUzplvCU6A= X-Google-Smtp-Source: AOwi7QDBmQtuBDvLvUMu0RdHL+i1GVKvAlZX/PauFHwHX46d5pmpVS+EHigkuKLYrU+U+hmBzbdk20wGSr1Q+mF4vDs= X-Received: by 10.99.154.18 with SMTP id o18mr5306350pge.18.1506013756947; Thu, 21 Sep 2017 10:09:16 -0700 (PDT) MIME-Version: 1.0 Received: by 10.100.131.90 with HTTP; Thu, 21 Sep 2017 10:08:46 -0700 (PDT) From: Maxim Khitrov Date: Thu, 21 Sep 2017 13:08:46 -0400 Message-ID: Subject: Clean shutdown with CyberPower UPS To: FreeBSD Content-Type: text/plain; charset="UTF-8" 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: Thu, 21 Sep 2017 17:09:18 -0000 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. -Max