[email protected] (David Higgs), 2014.11.28 (Fri) 15:43 (CET):
> On Fri, Nov 28, 2014 at 2:45 AM, Marcus MERIGHI <[email protected]> wrote:
> > What I have now:
> >
> > $ getcap -a -f /etc/sensorsd.conf
> > hw.sensors.upd0.indicator0:low=1:high=2:command=/etc/sensorsd/upd.sh \
> > %l %n %s %x %t %2 %3 %4
> > hw.sensors.upd0.indicator1:low=1:high=2:command=/etc/sensorsd/upd.sh \
> > %l %n %s %x %t %2 %3 %4
> > hw.sensors.upd0.indicator2:low=1:high=2:command=/etc/sensorsd/upd.sh \
> > %l %n %s %x %t %2 %3 %4
> > hw.sensors.upd0.indicator3:low=1:high=2:command=/etc/sensorsd/upd.sh \
> > %l %n %s %x %t %2 %3 %4
> > hw.sensors.upd0.indicator4:low=1:high=2:command=/etc/sensorsd/upd.sh \
> > %l %n %s %x %t %2 %3 %4
> > hw.sensors.upd0.percent0:low=10:high=100:command=\
> > /etc/sensorsd/upd-capacityremaining.sh %l %n %s %x %t %2 %3 %4
> > hw.sensors.upd0.percent1:low=95:high=100:command=/etc/sensorsd/upd.sh \
> > %l %n %s %x %t %2 %3 %4
> 
> Do you mind saying what type of USB you have, and what these sensors
> map are for your hardware?
> 
> I have:
> uhidev0 at uhub1 port 2 configuration 1 interface 0 "American Power
> Conversion Back-UPS ES 750 FW:841.I3 .D USB FW:I3" rev 1.10/1.01 addr
> 2
> uhidev0: iclass 3/0, 146 report ids
> upd0 at uhidev0
> 
> Which only appears to provide:
> hw.sensors.upd0.indicator3=Off (ShutdownImminent), OK

uhidev0 at uhub2 port 1 configuration 1 interface 0 "APC Back-UPS ES \
  550G FW:870.O2 .I USB FW:O2" rev 1.10/1.06 addr 2
uhidev0: iclass 3/0, 146 report ids
upd0 at uhidev0

I think this should be it:
http://www.apc.com/resource/include/techspec_index.cfm?base_sku=BE550-GR&ISOCountryCode=en

And I get:
$ sysctl hw.sensors.upd0
hw.sensors.upd0.indicator0=Off (Charging), OK
hw.sensors.upd0.indicator1=Off (Discharging), OK
hw.sensors.upd0.indicator2=On (ACPresent), OK
hw.sensors.upd0.indicator3=On (BatteryPresent), OK
hw.sensors.upd0.indicator4=Off (ShutdownImminent), OK
hw.sensors.upd0.percent0=100.00% (RemainingCapacity), OK
hw.sensors.upd0.percent1=100.00% (FullChargeCapacity), OK

Bye, Marcus

Reply via email to