From owner-freebsd-usb@freebsd.org Mon Sep 3 13:37:46 2018 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 86BE3FE9ED8 for ; Mon, 3 Sep 2018 13:37:46 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [IPv6:2a01:4f8:c17:6c4b::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 253BE84FB1 for ; Mon, 3 Sep 2018 13:37:45 +0000 (UTC) (envelope-from hps@selasky.org) Received: from hps2016.home.selasky.org (unknown [62.141.128.70]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id BE1C6260104; Mon, 3 Sep 2018 15:37:43 +0200 (CEST) Subject: Re: nut/apc values sparse after update to 11.2 To: =?UTF-8?Q?Gerrit_K=c3=bchn?= , freebsd-usb@FreeBSD.org References: <20180903150854.6bd6052d5c1a8c02e539509d@aei.mpg.de> From: Hans Petter Selasky Message-ID: Date: Mon, 3 Sep 2018 15:37:18 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.0 MIME-Version: 1.0 In-Reply-To: <20180903150854.6bd6052d5c1a8c02e539509d@aei.mpg.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Sep 2018 13:37:46 -0000 On 9/3/18 3:08 PM, Gerrit Kühn wrote: > Hi all, > > I just upgraded a server from 11.1 to 11.2. After this, nut appears to > read only very few values from the ups attached via usbhid to the box. > With 11.1, upslog recorded all relevant values: > --- > 20180903 134024 100.00 226.30 46.30 [OL] 27.00 50.00 > --- > > > With 11.2, upslog only reports online and charge: > > --- > 20180903 141918 100 NA NA [OL] NA NA > --- > > Any ideas how to get back the other values? upsc on the commandline does > not appear to report them anymore, either: > > --- > # upsc apc@localhost > battery.charge: 100 > battery.charge.low: 10 > battery.charge.warning: 50 > battery.runtime: 2460 > battery.runtime.low: 120 > battery.type: PbAc > battery.voltage: 54.5 > battery.voltage.nominal: 48.0 > device.mfr: American Power Conversion > device.model: Smart-UPS 3000 > device.serial: AS1548242019 > device.type: ups > driver.name: usbhid-ups > driver.parameter.pollfreq: 30 > driver.parameter.pollinterval: 2 > driver.parameter.port: /dev/uhid0 > driver.parameter.synchronous: no > driver.parameter.vendorid: 051d* > driver.version: 2.7.4 > driver.version.data: APC HID 0.96 > driver.version.internal: 0.41 > ups.beeper.status: enabled > ups.delay.shutdown: 20 > ups.firmware: UPS 09.3 / ID=18 > ups.mfr: American Power Conversion > ups.mfr.date: 2015/11/25 > ups.model: Smart-UPS 3000 > ups.productid: 0003 > ups.serial: AS1548242019 > ups.status: OL > ups.timer.reboot: -1 > ups.timer.shutdown: -1 > ups.vendorid: 051d > --- > > > I'm missing things like volate, frequency, load... > Hi, Did you check the permissions for the USB device? Did you try to re-attach the USB device? What does usbconfig output? Does it detect your device? Did you try a 11-stable kernel? --HPS