[Nut-upsuser] Zigor on Mac Os X

Mark Burton mark at helenandmark.org
Sun Sep 23 14:39:01 UTC 2012


Hi,
I'm using macports to install nut on a MAC OS X (10.7)

I get the following error messages when I try running:
sudo blazer_usb -a zigor -DDDDDDDDDD

  0.944590     Checking device (0001/0000) (250/005)
  2.785449     - VendorID: 0001
  2.785465     - ProductID: 0000
  2.785468     - Manufacturer: unknown
  2.785472     - Product: STD UPS MON V1.0
  2.785475     - Serial Number: unknown
  2.785478     - Bus: 250
  2.785481     Trying to match device
  2.785498     Device matches
  2.785918     failed to claim USB device: Permission denied
  2.785929     failed to detach kernel driver from USB device: Function not implemented
  2.786203     failed to claim USB device: Permission denied
  2.786210     failed to detach kernel driver from USB device: Function not implemented
  2.786465     failed to claim USB device: Permission denied
  2.786471     failed to detach kernel driver from USB device: Function not implemented
  2.786729     failed to claim USB device: Permission denied
  2.786735     failed to detach kernel driver from USB device: Function not implemented
  2.786739     Can't claim USB device [0001:0000]: Function not implemented
sh-3.2#


Looks like the binary is begin linked against both lubusb libraries - (as a matter of interest, I tried re-linking against only 1 library and got the same problem)

otool -L blazer_usb
blazer_usb:
        /opt/local/lib/libusb-0.1.4.dylib (compatibility version 9.0.0, current version 9.4.0)
        /opt/local/lib/libusb-1.0.0.dylib (compatibility version 2.0.0, current version 2.0.0)
        /usr/lib/libobjc.A.dylib (compatibility version 1.0.0, current version 228.0.0)
        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 159.1.0)


My /opt/local/etc/ups.conf has this in it:

[zigor]
        port = auto
        driver = blazer_usb
#        langid_fix = 0x409
        desc = "Zigor UPS"
        vendorid = 0001
        productid = 0000

(I tried stopping the MAC OSX power management service - actually, for me, this happened whenever I unplug/replug the USB cable to the UPS - but it makes no difference).

Can anybody help?

Cheers

Mark.




More information about the Nut-upsuser mailing list