Index | Thread | Search

From:
Landry Breuil <landry@openbsd.org>
Subject:
Re: upd(4): add more sensors (load, power..)
To:
Walter Alejandro Iglesias <wai@roquesor.com>
Cc:
tech@openbsd.org, sthen@openbsd.org
Date:
Mon, 2 Dec 2024 17:23:46 +0100

Download raw body.

Thread
  • Raf Czlonka:

    upd(4): add more sensors (load, power..)

  • Le Sun, Dec 01, 2024 at 12:47:01PM +0100, Walter Alejandro Iglesias a écrit :
    > On Sun, Dec 01, 2024 at 10:26:15AM +0100, Landry Breuil wrote:
    > > new diff below, add #define UPD_DEBUG to the top of the file if you want
    > > debug output printed every 5 second in dmesg. Applies on top of -current
    > > where i've commited the PercentLoad bit.
    > > 
    > > reports/testing welcome on a variety of models/brands, with comparison
    > > against values reported by nut if possible..
    > 
    >  # lsusb -v -d 0x0463:0xffff | grep -A2 'Time To Empty' | grep Size
    >  Item(Global): Report Size, data= [ 0x20 ] 32
    > 
    >  $ upsc nutdev-usb1@localhost | grep runtime
    >  battery.runtime: 1377
    > 
    >  $ sysctl hw.sensors.upd0 | grep RunTime
    >  hw.sensors.upd0.timedelta0=1377.390625 secs (RunTimeToEmpty), OK
    
    thanks for the report, that confirms my analysis so far.. but ofc we
    need more testing coverage :)
    
    Landry
    
    
    
  • Raf Czlonka:

    upd(4): add more sensors (load, power..)