Skip to content

Instantly share code, notes, and snippets.

@szydan
Created February 23, 2026 13:21
Show Gist options
  • Select an option

  • Save szydan/0ca667335ee889bc48317eec782308e3 to your computer and use it in GitHub Desktop.

Select an option

Save szydan/0ca667335ee889bc48317eec782308e3 to your computer and use it in GitHub Desktop.
Set macbook to not cut power to USB devices after 10 min
sudo pmset -b disksleep 0
This fixed the issue I had that after I closed the lid and reopen after more than 10 min the internet was not available
fo 20 sec
as mac cut the power to my USB-C <--> Ethernet dongle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment