Home  >  Article  >  Enable Low Power Mode on Mac via the command line

Enable Low Power Mode on Mac via the command line

WBOY
WBOYforward
2023-04-14 12:13:03861browse

For those unfamiliar, Low Power Mode reduces your Mac's energy usage, possibly extending battery life at the expense of performance temporarily, but it handles it well enough that for most users, they No particular degradation will be noticed. This is a very useful mode if you're a Mac laptop user trying to get the most battery life possible from your MacBook Pro or Air.

Enable Mac Low Power Mode from the Command Line

From the Terminal, type the following command string on any Mac laptop:

sudo pmset -a lowpowermode 1

Press Enter as required by sudo and enter the administrator password for authentication.

Low power mode will now be turned on.

There is no feedback from the terminal itself, but if you check the battery menu you will see that low power mode is enabled.

Enable Low Power Mode on Mac via the command line

This is a very easy way to turn on Low Power Mode on your MacBook, and for some users using Terminal may be more efficient than opening the Battery System Preferences pane quick.

Disable Mac Low Power Mode from the Command Line

To disable Low Power Mode on a Mac laptop from the command line, use the following command string:

sudo pmset -a lowpowermode 0

Click back and authenticate as needed.

Again, there is no feedback when you execute the command, but if you go back to the battery menu you won't see a mention of low power mode.

Enable Low Power Mode on Mac via the command line

Determine if Low Power Mode is enabled/disabled from the command line

If you just want to know if Low Power Mode is enabled or disabled on your Mac, Please type the following via the command line:

pmset -g |grep lowpowermode

As you would expect from a binary, if you see "lowpowermode 1" Then enable it, if you see "lowpowermode 0" then turn off low power mode.

The above is the detailed content of Enable Low Power Mode on Mac via the command line. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:yundongfang.com. If there is any infringement, please contact admin@php.cn delete