[Nut-upsuser] Have any FreeBSD users tried the new libusb-1.0 branch?

Sam Varshavchik mrsam at courier-mta.com
Sun Nov 26 20:15:30 UTC 2017


Charles Lepple writes:

> still looking for volunteers to test the libusb-1.0 code on FreeBSD and  
> other systems.

On Fedora 27, running commit 2999c95f0:

# nut-scanner
Cannot load USB library (/usr/lib64/libusb-1.0.so.0.1.0) :  
/usr/lib64/libusb-1.0.so.0.1.0: undefined symbol: usb_get_string_simple. USB  
search disabled.

There's also a bug in the configure script on 64 bit Fedora. The configure  
script sets systemdsystemshutdowndir to /usr/lib64/systemd/systemd-shutdown  
which misses the mark, a little bit. The fix:

 if test -n "${systemdsystemunitdir}"; then
-	systemdsystemshutdowndir="${libdir}/systemd/system-shutdown"
+	systemdsystemshutdowndir="`$PKG_CONFIG --variable=systemdshutdowndir systemd`"

This experiment also coincides with the delivery and installation of my new  
Cyberpower CP1500PFCLCD. Slightly hampered by the nut-scanner problem, I  
grabbed the USB ids from lsusb.

It came up without any issues:

[root at monster system]# upsc nutdev1
battery.charge: 100
battery.charge.low: 10
battery.charge.warning: 20
battery.mfr.date: CPS
battery.runtime: 1410
battery.runtime.low: 300
battery.type: PbAcid
battery.voltage: 24.0
battery.voltage.nominal: 24
device.mfr: CPS
device.model: CP1500PFCLCD
device.serial: 000000000000
device.type: ups
driver.name: usbhid-ups
driver.parameter.pollfreq: 30
driver.parameter.pollinterval: 10
driver.parameter.port: auto
driver.parameter.productid: 0501
driver.parameter.synchronous: no
driver.parameter.vendorid: 0764
driver.version: 2.7.4.1
driver.version.data: CyberPower HID 0.4
driver.version.internal: 0.42
driver.version.usb: libusb-1.0 (API: 0x1000105)
input.transfer.high: 139
input.transfer.low: 88
input.voltage: 121.0
input.voltage.nominal: 120
output.voltage: 137.0
ups.beeper.status: enabled
ups.delay.shutdown: 20
ups.delay.start: 30
ups.load: 28
ups.mfr: CPS
ups.model: CP1500PFCLCD
ups.productid: 0501
ups.realpower.nominal: 900
ups.serial: 000000000000
ups.status: OL
ups.test.result: No test initiated
ups.timer.shutdown: -60
ups.timer.start: -60
ups.vendorid: 0764

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20171126/42f655f9/attachment.sig>


More information about the Nut-upsuser mailing list