Friday, September 11, 2015

Control Your OSX Power/Performance With pmset

When you are in terminal and you type “pmset -g” (without quotes) you will see something like this
 
#pmset -g
Active Profiles:
Battery Power        -1
AC Power        -1*
Currently in use:
 standbydelay         4200
 standby              1
 womp                 0
 halfdim              1
 hibernatefile        /var/vm/sleepimage
 darkwakes            0
 gpuswitch            1
 networkoversleep     0
 disksleep            0
 sleep                60
 autopoweroffdelay    14400
 hibernatemode        0
 autopoweroff         1
 ttyskeepawake        1
 displaysleep         10
 acwake               0
 lidwake              1

womp: wake on ethernet magic packet, 1 to enable or 0 to disable
autorestart: automatic restart on power loss, 1 to enable or 0 to disable
halfdim: display sleep will use an intermediate half-brightness state between full brightness and fully off, 1 to enable or 0 to disable
sms: use Sudden Motion Sensor to park disk heads on sudden changes in G force, 1 to enable or 0 to disable
hibernatefile: change hibernation image file location. Image may only be located on the root volume.
gpuswitch: which GPU you are using (0 for integrated GPU, 1 for dedicate gpu)
disksleep: disk spindown timer (value in minutes, or 0 to disable)
sleep: system sleep timer (value in minutes, or 0 to disable)
hibernatemode: change hibernation mode. Please use caution. (value = integer)
ttyskeeepawake: prevent idle system sleep when any tty (e.g. remote login session) is ‘active’. A tty is ‘inactive’ only when its idle time exceeds the system sleep timer. (value = 0/1)
displaysleep: display sleep timer (value in minutes, or 0 to disable)
acwake: wake the machine when power source (AC/battery) is changed, 1 to enable or 0 to disable
lidwake: wake the machine when the laptop lid (or clamshell) is opened, 1 to enable or 0 to disable

For the new Macs, the most important ones are ( hibernatemode and gpuswitch). If your Mac come with SSD, then disksleep is also important. Make sure you set them as they appear above for the best performance.

No comments: