Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save richardsonlima/34860f2a00c1e9c8334ad7f600a4ec37 to your computer and use it in GitHub Desktop.
Save richardsonlima/34860f2a00c1e9c8334ad7f600a4ec37 to your computer and use it in GitHub Desktop.
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