Hibernation bug (?) in macOS Sierra 10.12.6
Hello all,
I am experiencing an issue with hibernation after I upgraded my Late 2012 MacMini to macOS Sierra 10.12.6 and I would appreciate some expert advice in order to resolve it. Before I start I would like to say it is not your everyday easy-to-fix problem with just a few "sudo pmset" commands so I would appreciate if you proposed a fix only if you have had similar issues which you resolved or you have in-depth knowledge about the topic. Apologies for the long text, bare with me:
The bug(?) basically is that although I am using hibernatemode=3, after the Mac has slept for <standbydelay> seconds, it doesn't hibernate at all. It wakes up and sleeps 2 times and then stays in normal sleep.
Here are my settings:
$ pmset -g
System-wide power settings:
Currently in use:
standby 1
Sleep On Power Button 1
womp 1
autorestart 1
hibernatefile /var/vm/sleepimage
powernap 0
networkoversleep 0
disksleep 10
sleep 10
autopoweroffdelay 28800
hibernatemode 3
autopoweroff 0
ttyskeepawake 1
displaysleep 10
standbydelay 10800
Here is the background:
- I am using the MacMini as a media server which has an irregular usage pattern. Some times it is not accessed for days and sometimes it is accessed frequently within a few hours. Therefore I want it to go to normal sleep for let's say 3 hours, and if it has not been woken up by someone accessing the media server, I want it to hibernate. The intended behaviour was working fine in OS X Yosemite 10.10.5 but does not work anymore with Sierra.
- The Mac is supposed to Wake-on-LAN (wake by magic packet) which is sent to it by my router. Hence I need "Wake on network access". For this reason, autopoweroff is not an option, I need standby. As a side note, autpoweroff=1 with hibernatemode=25 does put the Mac in hibernation after <sleep> minutes but this defeats the purpose of staying in normal sleep for 3 hours. Also, Wake-on-LAN won't work anymore and the LAN port light on my router goes off completely instead of chancing colour, which makes me think that autopoweroff is a lower power state than standby. Autopoweroff=1 with hibernatemode=3 keeps the Mac in plain sleep, because by design autpoweroff doesn't hibernate if USB devices, SD cards etc are plugged in, or if "Wake on network access" is enabled. But anyway, since it is certain I need standby, we don't need to demystify autopoweroff.
- Since I manage the waking up with a magic packet, I don't need Bonjour Sleep Proxy functionality. Besides this functionality has the side-effect that the Mac would wake up every 2 hours due to an RTCAlarm, for Bonjour Sleep Proxy registration. Therefore I disable it by disabling MulticastAdvertisements. It's done differently in Yosemite but in Sierra it's done by: defaults write /Library/Preferences/com.apple.mDNSResponder.plist NoMulticastAdvertisements -bool YES
In any case, I tried leaving MulticastAdvertisements on and I still had no hibernation. Just the extra wakes.
- Additionally, DarkWake needs a tweak otherwise the Mac falls to sleep again immediately after waking up by a magic packet (which after some research is supposed to be normal because there is no terminal connection established when using my media server), so whoever uses the media server can stream a few seconds and then the connection is lost. Default DarkWake parameter is 11 but changed it to 8 to address this issue. In Sierra this is done with: sudo nvram boot-args="darkwake=8"
- So, the above were so far the tricky things and now we are left with the normally easy part: standby=1, hibernatemode=3, standbydelay=10800 (3 hours). I had it working perfectly with OS X Yosemite 10.10.5 but now after upgrading to Sierra, it won't hibernate after <standbydelay> seconds. It does a DarkWake after <standbydelay> seconds, writes the RAM state to disk (hibernatefile time tag updates), goes back to normal sleep, and immediately DarkWakes-up again, perhaps writes the hibernatefile once more and then goes into normal sleep indefinitely.
I didn't upgrade to El Capitan so don't know if the bug appeared there, but it is definitely the case in Sierra, to my great disappointment. I have an image backup of my Yosemite installation which I will be using for now, but I would hope that either there is some solution out there which I am unaware of, or that the bug is fixed in the next release.
Any ideas anyone?
Thanks in advance!
最后更新:2017-08-21 04:18:11
上一篇:
I have a virus on my MacBook A13 14 late 2009 O...
下一篇:
Terminal.app crashing: Can I disable callbacks?
Sleep / reboot problem after update to High Sierra
Ipad Mini 4 MD532LL/A will not see IOS 10 avail...
Notification
Please help with my Etrecheck results
forgot password to open computer
Move iTunes media library to cloud?
Sms
Blocked Plugins & Launch Deamons messages
How to get rid of Advanced Mac Cleaner Lingerin...
new ssd for mac book pro late 2011
相关内容
"com.apple.installer.pagecontroller error
any idea what error 3503 is?
Underallocation Detected on Main device
The operation couldn’t be completed. (BKA...
is ctoid.exe a virus on my ipad safari browser?
iTunes Error: Declined to authorize this image ...
Keep High Efficiency Original if Available Chec...
iTunes 12.7 cannot edit playlist
High Sierra Stuck & Decryption paused
Need to unlock iphone 5 to reactivate the phone...
热门内容
Christian Music Removed From Itunes
I'm being billed twice every month for Apple Mu...
iMac running slow
Fix disappearing album art after moving iTunes
Activation Locked iWatch
Can I change the iwatch to miles instead of kil...
I keep seeing the "You don't have permission to...
can't read any menus macbook air
iPad 2, iOs9.3, taking days to restore
charges made under itune memeberships