hi all
I have a small prog that used to check
State:/IOKit/PowerSources/InternalBattery-0
to see if the computer was running on AC or battery.
that worked well until mavericks, but not on Yosemite... and I am having trouble finding where this bugger went.
scutil list gives me just this :
subKey [54] = State:/IOKit/LowBatteryWarning
subKey [55] = State:/IOKit/Power/CPUPower
subKey [56] = State:/IOKit/PowerAdapter
subKey [57] = State:/IOKit/PowerManagement/CurrentSettings
subKey [58] = State:/IOKit/PowerManagement/SystemLoad
subKey [59] = State:/IOKit/PowerManagement/SystemLoad/Detailed
subKey [60] = State:/IOKit/SystemPowerCapabilities
SystemPowerCapabilities or PowerAdapter, perhaps?
cheers
I have a small prog that used to check
State:/IOKit/PowerSources/InternalBattery-0
to see if the computer was running on AC or battery.
that worked well until mavericks, but not on Yosemite... and I am having trouble finding where this bugger went.
scutil list gives me just this :
subKey [54] = State:/IOKit/LowBatteryWarning
subKey [55] = State:/IOKit/Power/CPUPower
subKey [56] = State:/IOKit/PowerAdapter
subKey [57] = State:/IOKit/PowerManagement/CurrentSettings
subKey [58] = State:/IOKit/PowerManagement/SystemLoad
subKey [59] = State:/IOKit/PowerManagement/SystemLoad/Detailed
subKey [60] = State:/IOKit/SystemPowerCapabilities
SystemPowerCapabilities or PowerAdapter, perhaps?
cheers