macOS 盒盖休眠掉电解决办法


2018款MacBookPro,盒盖总是会掉电2%-8%不等。

使用pmset命令修改tcpkeepalive,降低耗电量。默认是 1 ,打开状态,通过pmset命令修改为0

$ pmset -g custom

设置为关闭,-b参数为仅设置电池模式tcpkeepalive关闭,关闭tcpkeepalive时会出现如下警告信息,直接忽略

$ sudo pmset -b tcpkeepalive 0

Warning: This option disables TCP Keep Alive mechanism when sytem is sleeping. This will result in some critical features like ‘Find My Mac’ not to function properly.

修改完之后结果如下:

$ pmset -g custom
Battery Power:
lidwake 1
standbydelayhigh 86400
standbydelaylow 10800
standby 1
proximitywake 0
ttyskeepawake 1
Standby Battery Threshold 50
powernap 0
gpuswitch 2
hibernatefile /var/vm/sleepimage
hibernatemode 3
displaysleep 2
sleep 1
tcpkeepalive 0
halfdim 1
acwake 0
lessbright 1
disksleep 10
AC Power:
lidwake 1
standbydelayhigh 86400
standbydelaylow 10800
standby 1
proximitywake 1
ttyskeepawake 1
hibernatemode 3
powernap 1
gpuswitch 2
hibernatefile /var/vm/sleepimage
Standby Battery Threshold 50
womp 1
displaysleep 10
networkoversleep 0
sleep 1
tcpkeepalive 1
halfdim 1
acwake 0
disksleep 10

 

Advertisements

发表评论

Fill in your details below or click an icon to log in:

WordPress.com 徽标

You are commenting using your WordPress.com account. Log Out /  更改 )

Google+ photo

You are commenting using your Google+ account. Log Out /  更改 )

Twitter picture

You are commenting using your Twitter account. Log Out /  更改 )

Facebook photo

You are commenting using your Facebook account. Log Out /  更改 )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.