среда, 4 января 2012 г.

Mac OS X: консольные утилиты наблюдения за аккумулятором MacBook

Приложение Terminal.app на моем МакБук постоянно открыто и мне очень удобно проверить состояние аккумулятора именно командой. Я пока знаю две ioreg и system_profiler.


$ ioreg -w0 -l | grep Capacity
| | "MaxCapacity" = 4730
| | "CurrentCapacity" = 3724
| | "LegacyBatteryInfo" = {"Amperage"=18446744073709550291,"Flags"=4,"Capacity"=4730,"Current"=3724,"Voltage"=7863,"Cycle Count"=2}
| | "DesignCapacity" = 4680

$ system_profiler SPPowerDataType
Power:
Battery Information:
Model Information:
Serial Number: C01147201RYDKRTAZ
Manufacturer: DP
Device Name: bq20z451
Pack Lot Code: 0
PCB Lot Code: 0
Firmware Version: 406
Hardware Revision: 1
Cell Revision: 173
Charge Information:
Charge Remaining (mAh): 3619
Fully Charged: No
Charging: No
Full Charge Capacity (mAh): 4738
Health Information:
Cycle Count: 2
Condition: Normal
Battery Installed: Yes
Amperage (mA): -1027
Voltage (mV): 7840
System Power Settings:
AC Power:
System Sleep Timer (Minutes): 10
Disk Sleep Timer (Minutes): 10
Display Sleep Timer (Minutes): 10
Wake on AC Change: No
Wake on Clamshell Open: Yes
Wake on LAN: Yes
Display Sleep Uses Dim: Yes
PrioritizeNetworkReachabilityOverSleep: 0
RestartAfterKernelPanic: 157680000
Standby Delay: 4200
Standby Enabled: 1
Battery Power:
System Sleep Timer (Minutes): 10
Disk Sleep Timer (Minutes): 10
Display Sleep Timer (Minutes): 2
Wake on AC Change: No
Wake on Clamshell Open: Yes
Current Power Source: Yes
Display Sleep Uses Dim: Yes
Reduce Brightness: Yes
RestartAfterKernelPanic: 157680000
Standby Delay: 4200
Standby Enabled: 1
Hardware Configuration:
UPS Installed: No
AC Charger Information:
Connected: No
Charging: No

Комментариев нет:

Отправить комментарий