energy-tracker
energy-tracker copied to clipboard
Mac Mini output is empty
Hi!
Any solutions for Mac mini?
ioreg -rw0 -c AppleSmartBattery | grep BatteryData | grep -o '"AdapterPower"=[0-9]*' | cut -c 16- | xargs -I % lldb --batch -o " print/f %" | grep -o '$0 = [0-9.]*' | cut -c 6-
output is empty
Can you confirm that this works?
ioreg -rw0 -c AppleSmartBattery | grep BatteryData | grep -o '"AdapterPower"=[0-9]*' | cut -c 16- | xargs -I % lldb --batch -o " print/f %" | tail -n 1 | awk '{print $2}’