Last active
March 4, 2019 06:23
-
-
Save richardsonlima/34860f2a00c1e9c8334ad7f600a4ec37 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Two commands that will solve this : | |
sudo pmset -b tcpkeepalive 0 | |
sudo pmset hibernatemode 25 | |
To disable this just use (this will revert everything back to normal. | |
sudo pmset -b tcpkeepalive 1 | |
sudo pmset hibernatemode 3 | |
==> note this will disable also "find my mac" | |
After you enter your password for sudo it gives you a warning saying some features may not work properly but it disables internet during sleep. | |
You can check it works by running: | |
pmset -g | |
Which should show "tcpkeepalive 0" | |
And you can of course reverse it at any time by running: | |
sudo pmset -a tcpkeepalive 1 | |
Easy! | |
Personally I like keeping this off as it saves power and my laptop has absolutely no reason to connect to the internet during sleep. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment