I think the high CPU usage was caused by the native OS X driver crashing and not working properly. The native driver was not sensing the UPS going on battery or any change in battery percentage. Unplugging the USB and then plugging it back again made the native driver come back up again properly. Restarting the macosx-ups driver seems to get back to normal CPU usage. I will monitor and see how it goes, but it seems the native yosemite driver is flaky. Or maybe the UPS is flaky. Will monitor and see how it goes. May have to attach the UPS to the linux machine and use the mac as a client, however it is easier to use the mac with the native control panel if the native driver works OK.
> On Jun 27, 2015, at 4:37 PM, Charles Lepple <[email protected]> wrote: > > On Jun 27, 2015, at 9:17 AM, Charles Lepple <[email protected]> wrote: > >> On Jun 26, 2015, at 11:07 PM, Sundeep Mediratta <[email protected]> wrote: >> >>> 0.000233 upsdrv_initups(): Power Sources blob: >>> <CFArray 0x7ffd18605480 [0x7fff7443bed0]>{type = immutable, count = 1, >>> values = ( >>> 0 : <CFBasicHash 0x7ffd18605360 [0x7fff7443bed0]>{type = immutable >>> dict, count = 10, >>> entries => >> >> Thanks. There is a subtle difference in the "Power Sources" blob: on 10.9 >> and earlier, it is a dictionary rather than an array. I will try later today >> to see if there is a better way to enumerate the power sources. > > I can't test this easily on 10.10 (my 10.10 box is powered by a serial UPS > that does not show up in Energy Saver), but it uses the proper API now, and > works on 10.9. > > I pushed the branch as macosx_power_dict: > > https://github.com/networkupstools/nut/commit/b608975b55895e853ba8d24fc08761bff2c65940 > > Patch: https://github.com/networkupstools/nut/compare/macosx_power_dict.diff > > I don't use MacPorts much, but I think this is how you would add this patch > to the NUT portfile: > > https://guide.macports.org/#development.patches.source > > patchfiles macosx_power_dict.diff > patch.pre_args -p1 > > -- > Charles Lepple > clepple@gmail > > > _______________________________________________ Nut-upsuser mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser

