[Nut-upsuser] Zigor on Mac Os X

Mark Burton mark at helenandmark.org
Sun Sep 23 17:45:14 UTC 2012


On 23 Sep 2012, at 17:03, Charles Lepple wrote:

> On Sep 23, 2012, at 10:39 AM, Mark Burton wrote:
> 
>> 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#
> 
> One thing with the drivers is that when you run them as root, they drop privileges before talking to hardware. So you might want to try again with "-u root" on the command line, but I suspect it will be the same problem.
> 

yes, sorry, should have said, tried that.

>> 
>> 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)
> 
> Often, the libusb-0.1 API is provided by a compatibility layer on top of libusb-1.0. That looks reasonable.

Yes

> 
>> 
>> 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).
> 
> 
> Does the UPS show up in the Energy Saver control panel?
> 

Yes it does, My only issue is that it doesn't seem to be able to get a reading on the status of the device (battery level, or whether it's on power or not)…. :-(
Hence turning to NUT

Cheers

Mark.

> -- 
> Charles Lepple
> clepple at gmail
> 
> 




More information about the Nut-upsuser mailing list