Hello!

I just did my first install of sysutils/nut with an (oldish) APC USB
UPS (full upsc(8) at the end).

It was enough to 

        chgrp _ups /dev/usb0
        chmod g+w /dev/usb0

to start upsd(8).

Q: Does it make sense to provide a patch to the README or is this just a
singular case and other (APC) UPSs might behave differntly?

The READMY currently advices to find the right /dev/usbX and /dev/ugenX
and chgrp these to _ups.

For /dev/ugenX.YY this would leave the _ups user without read rights, as
/dev/ugenX.YY comes with mode 0600. 

For /dev/usbX this would leave the _ups user with read rights, which did
not suffice: 

        No matching HID UPS found - check permissions on /dev/ugen* \
                and /dev/usb*
        Driver failed to start (exit status=1)

The UPS attaches as upd(4):

        hw.sensors.upd0.indicator0=On (BatteryPresent), OK
        hw.sensors.upd0.indicator1=Off (Charging), OK
        hw.sensors.upd0.indicator2=Off (Discharging), OK
        hw.sensors.upd0.indicator3=Off (NeedReplacement), OK
        hw.sensors.upd0.indicator4=Off (ShutdownImminent), OK
        hw.sensors.upd0.indicator5=On (ACPresent), OK
        hw.sensors.upd0.indicator6=Off (Overload), OK
        hw.sensors.upd0.percent0=100.00% (RemainingCapacity), OK
        hw.sensors.upd0.percent1=100.00% (FullChargeCapacity), OK
        hw.sensors.upd0.timedelta0=10380.000000 secs (RunTimeToEmpty), OK

Below is the output of upsc(8).

Marcus

$ ls -la /dev/u* | grep _ups
crw-rw----  1 root  _ups       61,   0 Nov 11 05:04 /dev/usb0

$ upsc usv-1
battery.charge: 100
battery.charge.low: 10
battery.charge.warning: 50
battery.mfr.date: 2007/10/23
battery.runtime: 10380
battery.runtime.low: 120
battery.temperature: 20.7
battery.type: PbAc
battery.voltage: 27.7
battery.voltage.nominal: 24.0
device.mfr: American Power Conversion
device.model: Smart-UPS 1500 RM
device.serial: AS0743330607
device.type: ups
driver.name: usbhid-ups
driver.parameter.bus: 000
driver.parameter.pollfreq: 30
driver.parameter.pollinterval: 2
driver.parameter.port: auto
driver.parameter.product: Smart-UPS 1500 RM FW:667.18.I USB FW:7.3
driver.parameter.productid: 0002
driver.parameter.serial: AS0743330607
driver.parameter.synchronous: no
driver.parameter.vendor: American Power Conversion
driver.parameter.vendorid: 051D
driver.version: 2.7.4
driver.version.data: APC HID 0.96
driver.version.internal: 0.41
input.sensitivity: high
input.transfer.high: 253
input.transfer.low: 208
input.voltage: 230.4
output.current: 0.23
output.frequency: 50.0
output.voltage: 231.8
output.voltage.nominal: 230.0
ups.beeper.status: enabled
ups.delay.shutdown: 20
ups.delay.start: 30
ups.firmware: 667.18.I
ups.firmware.aux: 7.3
ups.load: 5.2
ups.mfr: American Power Conversion
ups.mfr.date: 2007/10/23
ups.model: Smart-UPS 1500 RM
ups.productid: 0002
ups.serial: AS0743330607
ups.status: OL
ups.test.result: No test initiated
ups.timer.reboot: -1
ups.timer.shutdown: -1
ups.timer.start: -1
ups.vendorid: 051d

Reply via email to