11 Apr 22

When macOS goes to sleep, it starts a low-power ‘smart sleep’ mode which opens a network connection to see if there’s any updates. It’ll keep this behaviour up every few minutes until you wake the Mac. This is a sleepwatcher script to make it turn off Wi-Fi power (and thus disconnect you from the internet) and tell you exactly what it’s doing (the ‘verbose’ tag), then running it again to turn Wi-Fi back on. When using IRC, this prevents all the timeout/reconnects your Mac fills a channel with when it goes to sleep.

As an alternative, check to see if LaunchAgent has been added to the newest sleepwatcher brew formula. Instead, you could try brew services start sleepwatcher and then create/edit ~/.sleep and put networksetup -setairportpower Wi-Fi off in there (and chmod +x it) then perhaps create a ~/.wake if needed.

by wyclif 3 years ago

06 Jun 08

Network protocol analyzer developed by an international team of networking experts, formerly known as Ethereal.

by wyclif 17 years ago

10 Jan 08

Bruce Schneier: “…I run an open wireless network at home. There’s no password. There’s no encryption.”

by wyclif 18 years ago

03 Dec 07

22 Nov 04

“…in real life the only people sniffing your wireless signal are jerks like me who need a place to log on until the phone company wires the apartment.”

by wyclif 21 years ago

26 Apr 04

“the two biggest obstacles which cannot be overcome by technology: time zones and poor communication skills”

by wyclif 22 years ago