macOS电源管理

查看cpu是否减速
pmset -g thermlog

查看当前电源状态的配置
pmset -g

我的设置:
pmset -a hibernate 0 所有的关闭休眠
pmset -a standby 0 (睡眠一段时间后将镜像写入磁盘)
pmset -a autopoweroff 0 (睡眠一段时间后关闭电源, 将镜像写入磁盘)
pmset -a ttyskeepawake 0
pmset -a tcpkeeplive 0

详细查看pmset的man page或者查看pmset手册

默认配置:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
attery Power:
lidwake 1
autopoweroff 1
autopoweroffdelay 28800
standbydelay 10800
standby 1
ttyskeepawake 1
hibernatemode 3
powernap 0
gpuswitch 2
hibernatefile /var/vm/sleepimage
displaysleep 2
sleep 1
tcpkeepalive 1
halfdim 1
acwake 0
lessbright 1
disksleep 10
AC Power:
lidwake 1
autopoweroff 1
autopoweroffdelay 28800
standbydelay 10800
standby 1
ttyskeepawake 1
hibernatemode 3
powernap 0
gpuswitch 2
hibernatefile /var/vm/sleepimage
displaysleep 10
womp 0
networkoversleep 0
sleep 10
tcpkeepalive 1
halfdim 1
acwake 0
disksleep 10

0%