[Nut-upsuser] Driver macosx-ups failing on Yosemite

Sundeep Mediratta smedius at gmail.com
Sun Jun 28 04:34:30 UTC 2015


> On Jun 27, 2015, at 4:37 PM, Charles Lepple <clepple at gmail.com> wrote:
> 
> patchfiles 	macosx_power_dict.diff
> patch.pre_args	-p1

Thank you. Does not give any errors, seems to run. Will try with upsd next.

macosx-ups -DDDD -a cyberpower
Network UPS Tools - Mac OS X UPS meta-driver 1.1 (2.6.5-Unversioned directory)
Warning: This is an experimental driver.
Some features may not function correctly.

   0.000000	debug level is '4'
   0.000564	upsdrv_initups(): Power Sources blob:
<CFArray 0x7f901c000500 [0x7fff7443bed0]>{type = immutable, count = 1, values = (
	0 : <CFBasicHash 0x7f901c0009c0 [0x7fff7443bed0]>{type = immutable dict, count = 10,
entries =>
	0 : <CFString 0x7f901c000230 [0x7fff7443bed0]>{contents = "Voltage"} = <CFNumber 0x4e2037 [0x7fff7443bed0]>{value = +20000, type = kCFNumberSInt64Type}
	1 : <CFString 0x7f901c000940 [0x7fff7443bed0]>{contents = "Power Source ID"} = <CFNumber 0x37 [0x7fff7443bed0]>{value = +0, type = kCFNumberSInt64Type}
	3 : <CFString 0x7f901c000770 [0x7fff7443bed0]>{contents = "Transport Type"} = <CFString 0x7f901c000250 [0x7fff7443bed0]>{contents = "USB"}
	6 : <CFString 0x7f901c000740 [0x7fff7443bed0]>{contents = "Current Capacity"} = <CFNumber 0x6437 [0x7fff7443bed0]>{value = +100, type = kCFNumberSInt64Type}
	7 : <CFString 0x7f901c0001a0 [0x7fff7443bed0]>{contents = "Time to Empty"} = <CFNumber 0x1b37 [0x7fff7443bed0]>{value = +27, type = kCFNumberSInt64Type}
	8 : <CFString 0x7f901c000720 [0x7fff7443bed0]>{contents = "Max Capacity"} = <CFNumber 0x6437 [0x7fff7443bed0]>{value = +100, type = kCFNumberSInt64Type}
	9 : <CFString 0x7f901c0001c0 [0x7fff7443bed0]>{contents = "Is Charging"} = <CFBoolean 0x7fff7443c8a8 [0x7fff7443bed0]>{value = true}
	10 : <CFString 0x7f901c0001e0 [0x7fff7443bed0]>{contents = "Power Source State"} = <CFString 0x7f901c000970 [0x7fff7443bed0]>{contents = "AC Power"}
	11 : <CFString 0x7f901c000210 [0x7fff7443bed0]>{contents = "Is Present"} = <CFBoolean 0x7fff7443c8a8 [0x7fff7443bed0]>{value = true}
	12 : <CFString 0x7fff7440b7c0 [0x7fff7443bed0]>{contents = "Name"} = <CFString 0x7f901c000990 [0x7fff7443bed0]>{contents = "UPS CP1000AVRLCD"}
}

)}
   0.003791	Matching power supply model names against regex 'CP1000AVRLCD'
   0.003848	Number of power supplies found: 1
<CFArray 0x7f901c0006e0 [0x7fff7443bed0]>{type = immutable, count = 1, values = (
	0 : <CFBasicHash 0x7f901c0009c0 [0x7fff7443bed0]>{type = immutable dict, count = 10,
entries =>
	0 : <CFString 0x7f901c000230 [0x7fff7443bed0]>{contents = "Voltage"} = <CFNumber 0x4e2037 [0x7fff7443bed0]>{value = +20000, type = kCFNumberSInt64Type}
	1 : <CFString 0x7f901c000940 [0x7fff7443bed0]>{contents = "Power Source ID"} = <CFNumber 0x37 [0x7fff7443bed0]>{value = +0, type = kCFNumberSInt64Type}
	3 : <CFString 0x7f901c000770 [0x7fff7443bed0]>{contents = "Transport Type"} = <CFString 0x7f901c000250 [0x7fff7443bed0]>{contents = "USB"}
	6 : <CFString 0x7f901c000740 [0x7fff7443bed0]>{contents = "Current Capacity"} = <CFNumber 0x6437 [0x7fff7443bed0]>{value = +100, type = kCFNumberSInt64Type}
	7 : <CFString 0x7f901c0001a0 [0x7fff7443bed0]>{contents = "Time to Empty"} = <CFNumber 0x1b37 [0x7fff7443bed0]>{value = +27, type = kCFNumberSInt64Type}
	8 : <CFString 0x7f901c000720 [0x7fff7443bed0]>{contents = "Max Capacity"} = <CFNumber 0x6437 [0x7fff7443bed0]>{value = +100, type = kCFNumberSInt64Type}
	9 : <CFString 0x7f901c0001c0 [0x7fff7443bed0]>{contents = "Is Charging"} = <CFBoolean 0x7fff7443c8a8 [0x7fff7443bed0]>{value = true}
	10 : <CFString 0x7f901c0001e0 [0x7fff7443bed0]>{contents = "Power Source State"} = <CFString 0x7f901c000970 [0x7fff7443bed0]>{contents = "AC Power"}
	11 : <CFString 0x7f901c000210 [0x7fff7443bed0]>{contents = "Is Present"} = <CFBoolean 0x7fff7443c8a8 [0x7fff7443bed0]>{value = true}
	12 : <CFString 0x7fff7440b7c0 [0x7fff7443bed0]>{contents = "Name"} = <CFString 0x7f901c000990 [0x7fff7443bed0]>{contents = "UPS CP1000AVRLCD"}
}

)}
   0.006480	Retrieving power source #1
   0.006488	Power source key/index:
<CFBasicHash 0x7f901c0009c0 [0x7fff7443bed0]>{type = immutable dict, count = 10,
entries =>
	0 : <CFString 0x7f901c000230 [0x7fff7443bed0]>{contents = "Voltage"} = <CFNumber 0x4e2037 [0x7fff7443bed0]>{value = +20000, type = kCFNumberSInt64Type}
	1 : <CFString 0x7f901c000940 [0x7fff7443bed0]>{contents = "Power Source ID"} = <CFNumber 0x37 [0x7fff7443bed0]>{value = +0, type = kCFNumberSInt64Type}
	3 : <CFString 0x7f901c000770 [0x7fff7443bed0]>{contents = "Transport Type"} = <CFString 0x7f901c000250 [0x7fff7443bed0]>{contents = "USB"}
	6 : <CFString 0x7f901c000740 [0x7fff7443bed0]>{contents = "Current Capacity"} = <CFNumber 0x6437 [0x7fff7443bed0]>{value = +100, type = kCFNumberSInt64Type}
	7 : <CFString 0x7f901c0001a0 [0x7fff7443bed0]>{contents = "Time to Empty"} = <CFNumber 0x1b37 [0x7fff7443bed0]>{value = +27, type = kCFNumberSInt64Type}
	8 : <CFString 0x7f901c000720 [0x7fff7443bed0]>{contents = "Max Capacity"} = <CFNumber 0x6437 [0x7fff7443bed0]>{value = +100, type = kCFNumberSInt64Type}
	9 : <CFString 0x7f901c0001c0 [0x7fff7443bed0]>{contents = "Is Charging"} = <CFBoolean 0x7fff7443c8a8 [0x7fff7443bed0]>{value = true}
	10 : <CFString 0x7f901c0001e0 [0x7fff7443bed0]>{contents = "Power Source State"} = <CFString 0x7f901c000970 [0x7fff7443bed0]>{contents = "AC Power"}
	11 : <CFString 0x7f901c000210 [0x7fff7443bed0]>{contents = "Is Present"} = <CFBoolean 0x7fff7443c8a8 [0x7fff7443bed0]>{value = true}
	12 : <CFString 0x7fff7440b7c0 [0x7fff7443bed0]>{contents = "Name"} = <CFString 0x7f901c000990 [0x7fff7443bed0]>{contents = "UPS CP1000AVRLCD"}
}
   0.008232	Getting 'Name' key (UPS model)
   0.008237	        model name: UPS CP1000AVRLCD
   0.008245	Matched model name
   0.008255	upsdrv_initinfo()
   0.008430	Getting 'Name' key
   0.008447	Got name: UPS CP1000AVRLCD
   0.008455	Max Capacity = 100 units (usually 100)
   0.008460	upsdrv_updateinfo()
   0.008542	Power Source State:
AC Power
   0.008572	battery_voltage = 20000 mV
   0.008578	battery_runtime = 27 minutes
   0.008582	Current Capacity = 100/100 units
   0.008702	dstate_init: sock /opt/local/var/db/ups/macosx-ups-cyberpower open on fd 3
   0.008718	upsdrv_updateinfo()
   0.008901	Power Source State:
AC Power
   0.008938	battery_voltage = 20000 mV
   0.008943	battery_runtime = 27 minutes
   0.008947	Current Capacity = 100/100 units
   2.013770	upsdrv_updateinfo()
   2.014079	Power Source State:
AC Power
   2.014127	battery_voltage = 20000 mV
   2.014138	battery_runtime = 27 minutes
   2.014147	Current Capacity = 100/100 units
   4.015421	upsdrv_updateinfo()
   4.015739	Power Source State:
AC Power

Sundeep Mediratta


More information about the Nut-upsuser mailing list