I'm trying to collect information on power usage of our Apple (for now macOS only) devices. I came across some good posts and was already able to read out the AppleSmartBattery
object via ioreg
. That already would help me to determine if it is a laptop or a desktop model. But is is actually pretty hard to get more detailed information around the actual power drain. I'm less interested if a device runs on battery but actually more on the consumption if it is connected to a charger. I found the child object of PowerTelemetryData
which contains a lot of interesting information but have no real clue how to interpret the data (reformatted for better readability).
$ /usr/sbin/ioreg -rc AppleSmartBattery | grep PowerTelemetryData
"PowerTelemetryData" = {
"WallEnergyEstimate"=2305,
"AccumulatedSystemPowerIn"=28547763,
"AdapterEfficiencyLossAccum ulatorCount"=3586,
"AccumulatedWallEnergyEstimate"=9196925,
"SystemInputVoltage"=12145,
"SystemPowerInAccumulatorCount"=3586,
"SystemEnergyConsumed"=1987,
"SystemPowerIn"=7156,
"SystemLoad"=7576,
"PowerTelemetryErrorCount"=0,
"AccumulatedSystemLoad"=28544320,
"SystemLoadAccumulatorCount"=3587,
"AccumulatedSystemEnergyConsumed"=7928273,
"AdapterEfficiencyLoss"=318,
"SystemInputCurrent"=588,
"AccumulatedAdapterEfficiencyLoss"=1268652
}
From what I can see there is already some items which are pretty interesting, e.g. WallEnergyEstimate
, AccumulatedWallEnergyEstimate
or SystemEnergyConsumed
. But have no clue in what unit of measure these read outs actually are and couldn't find any (even non-official) documentation. Is there anyone that can help?