opkseal.blogg.se

Mac terminal commands to check battery life
Mac terminal commands to check battery life












mac terminal commands to check battery life

Of course if you use this command on a Mac that does not have an internal battery it won’t report anything, which is to be expected. InternalBattery-0ę2% charging 0:12 remaining InternalBattery-0 100% charged 0:00 remainingĪnd if the MacBook is actively charging, you’ll also get information about current charge percentage and the time remaining until there is a full charge: If the MacBook Pro / Air is connected to a MagSafe AC power adapter, the pmset command will report “AC Power” and display the status of the battery charging.

mac terminal commands to check battery life

InternalBattery-0 90% discharging 6:32 remaining Hit return as usual and you’ll see something like the following, assuming you’re currently running off a MacBook battery: The command to get battery information, including percentage, time remaining, battery source, and battery charge status, is as follows: How to View Battery Percentage, Battery Life Remaining, & Battery Charge Status of a Mac from the Command Line in OS X This trick works to retrieve battery details on all Mac laptops in just about every version of OS X out there, whether it’s a MacBook Pro, MacBook Air, or MacBook.Įven if you aren’t a heavy command line user, this is a simple enough tip that anyone can get battery life info about their Mac this way, so just fire up the Terminal app and enter the appropriate pmset syntax.














Mac terminal commands to check battery life