Ok, I can confirm that 10.15.5 released today does not fix this issue.
For all the troubled souls like myself in this forum and beyond, here is a temporary workaround I figured out yesterday to get this gremlin out of your sight, until Apple officially fixes this.
Since the bug only occurs when Wi-Fi is on, we can create a process that automatically turns off Wi-Fi upon sleeping and turns it back on from waking up.
Copy this line to Terminal and hit Enter.
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
brew install sleepwatcher
to install Sleepwatcher.
- Enter the following code to create two files . sleep and .wakeup in the home directory ~/
touch ~/.sleep && chmod 700 ~/.sleep
touch ~/.wakeup && chmod 700 ~/.wakeup
- Go to ~/ and edit .sleep and .wakeup with a code editor of your choice, I used Xcode. These would dictate how Sleepwatcher would perform.
For .sleep
#!/bin/bash
networksetup setairportpower en0 off
For .wakeup
#!/bin/bash
networksetup setairportpower en0 on
- Finally, enter the following code in Terminal that would configure launchd to run Sleepwatcher at startup or login
cp /usr/local/Cellar/sleepwatcher/2.2.1/*.plist ~/Library/LaunchAgents
launchctl load ~/Library/LaunchAgents/de.bernhard-baehr.sleepwatcher-20compatibility-localuser.plist
Now everything is set, go on and close the lid, wait awhile and reopen it, notice the Wi-Fi icon is off and quickly turns back on.
Although this is not the most elegant solution, it eases me from the paranoia that makes my blood frozen every time I suspect to see a yet again frozen computer. A moment of idea and inspiration just can't wait an extra 15 seconds.
I'm not an expert in these, if anyone would spot a mistake or suggest a better solution please post here, thank you.
I learned from these sources:
https://www.kodiakskorner.com/log/258
https://gist.github.com/ziadoz/7bddcf346adb89da1e990126c9f82429
https://github.com/wujunchuan/wujunchuan.github.io/issues/9