As you know, I have had problems with my old MacBook Pro Late 2011 and its dGPU which I’ve been able to patch to make the computer work again. In the beginning, the side effect of the fix was not to be able to wake up properly the Mac from sleep mode. The computer woke up to a black or grey screen and the fans started to work at full speed to finally turn off itself. This was cause because on the wake up process the computer decided to stuck to the faulty dGPU instead to the iGPU. Luckily, this problem was solve as you can see in the final fix.
However, my Mac still wakes up to a black screen from time to time. This isn’t a new behavior at all, just happen to come up more often. Perhaps, in the past, this problem happened once per month or two months or even once every six months.
Basically, the computer wakes up from sleep mode to a black screen that remains black no matter you do or what key you punch, while the computer seems to perfectly work in the dark. In this case, the fans don’t run at full speed and seems that the computer can stay like that for long. I haven’t tried, but I guess you can even log in remotely. If your Mac happen to have the iconic glowing apple in the lid you can put there a source of light —the flashlight of your smartphone for example— and you’ll probably be able to see the login screen —just the part around the Apple logo. Basically, what is going on in most of the cases, is the computer wakes up but it doesn’t turn on the blacklight of the screen for some reason.
This is a quite a common problem on MacBooks and if you search on internet about it you are going to find multiple solutions. Till now, none of them has really worked for me, but if you have this problem perhaps some of them are going to work for your, so why not to give it a try.
Reset SMC and PRAM/NVRAM
This is the most common solution you are going to find our there since perhaps the problem is related to those basic configurations. Yet, in my case I can’t do that —or I rather not— because the solution for disable the dGPU of my MPB is partly a setting on the NVRAM, so if I reset it I need to reapply the whole thing again, or at least that.
If you want to give it a try to can reset those settings with this directions:
SMC: shutdown, unplug everything except power, now hold
leftShift + Ctrl + Opt/Alt + Powerfor about 10” and release at the same time.
PRAM/NVRAM: with the power cord on, power on and immediately later and before the chime hold
cmd + Opt/Alt + P + Rat the same time until you hear the chime for the second time.
Making it sleep again
Some people argue that the problem is related to the the lid itself that becomes a little bit faulty, either in the hinge or in the magnet, so it doesn’t send the proper signal to the computer to wake up when you open the lid. In in this camp I’ve seen like a couple of solutions.
Try to log in and make it sleep again
Since you computer seems to work properly but the screen if not receiving backlight, so it remains black, you can log in and command your computer to sleep again to reattempt to wake up properly this time. You can check if this is your case, if your lid’s Apple logo is not glowing chances are that the problem is just the backlight. You can put a source of light there —the flashlight of your smartphone, as suggested before— and see in you can spot the login screen. That means your computer is up and running perfectly.
Then, you can type your password, log in and after that push the power button for just a couple of seconds —no more or you are going to turn off the computer and we are trying to avoid that. That we’re trying to accomplish here is to make to show up the power / shut down menu in macOS. If we’ve succeeded we can hit the S key next and your computer should sleep again.
If your computer doesn’t go to sleep, don’t worry, mine either. I haven’t been able to make this solution yet a single time.
Push the power button and close the lid
When you see that your Mac doesn’t wake up in the correct way, one of the most obvious behaviors is close the lid again —like trying to make this a bad dream— and open again, to give another try. Also pushing buttons here and there, scape key —let me get out of this nightmare, I don’t want to lose my 150 pages document that I didn’t save before and I’ve been working the whole week when I sent the Mac to sleep— and the power button and go on and so for. That has worked for me in the past sometimes, not always. Sometimes the computer turned the screen on again and some others it just reboots.
Some people say that the correct way to do this just push the power button and close the lid, to open it again after a couple of seconds. But I haven’t try this yet. I don’t remember if the times I’ve succeeded to be back to life the computer I’ve followed that sequence by any chance. Who knows!!
Changing energy parameters
Other solution I’ve read about is just change the way your Mac sleeps. You Mac can be sent to sleep in two ways, simple sleep or Safe Sleep —the last one is/was called hibernation in windows— so macOS has three different setups for sleeping —only simple sleep, only safe sleep or both. You can see your config using the command:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 $ sudo pmset -g custom Battery Power: lidwake 0 standbydelay 4200 standby 0 ttyskeepawake 1 hibernatemode 0 gpuswitch 1 hibernatefile /var/vm/sleepimage displaysleep 2 sleep 10 acwake 0 halfdim 1 sms 1 lessbright 1 disksleep 10 AC Power: lidwake 0 standbydelay 4200 standby 0 ttyskeepawake 1 hibernatemode 0 gpuswitch 1 hibernatefile /var/vm/sleepimage womp 0 displaysleep 10 networkoversleep 0 sleep 0 acwake 0 halfdim 1 sms 1 disksleep 10
The variable that holds this setting is
0 is simple sleep,
3 is both and
25 is just safe sleep. In essence what is going on here is:
- Simple Sleep — `hibernatemode 0`: Your computer keeps all the info in the RAM and stops all the rest of the computer. The RAM still has power and if you happen to run our of battery —after quite long time— you lose everything —not really, but let’s be catastrophical and think in the worse picture. However, you usually you don’t let your Mac sleeping and unplugged for more than a week, do you? I think the battery in this state can last more than a week, let be conservative here. This mode is the quickest, and usually your Mac is sleeping just after a couple of seconds you close the lid.
- Both —
hibenatemode 3: This is the standard mode and how most of the MacBooks behave. When you close the lid the Mac just normally sleep, but before it’s going to save its state in the
sleepimage. If it doesn’t run out of battery, it usually wakes up normally, from the info in the RAM and you continue working as usually. If it runs out of battery it’s going to switch to safe sleep before it loses power. In this case when you open the lid you have to push the power button and your Mac is going to recover from the
sleepimage. This is the safest… since it’s redundant, but it’s is slower than just sleep. This in modern MacBooks with SSD is call Standby Mode, and instead of waiting till the total lost of power between 1 h or 3h —depending on the year model— it goes to safe sleep.
- Safe Sleep —
hibernatemode 25: This is the hibernation mode in windows, in other words, the computer saves everything to the
sleepimageand them disconnect power from everything. This mode is also really safe, perhaps safer than the previous one for some people and cases, but it’s the slowest. Usually the sleep process is the same than in the previous one, but it’s always going to wake up from the sleepimage, regardless of it has run out of battery or not. So it’s going to take more or less time depending of the capacity of your machine to read the
There is more info about the sleep modes here.
Some people argue that the back screen problem is related to the sleep image or the
hibernatemode 3, so you have two options, change to
hibernatemode 0 —the one I have right now— or to
hibernatemode 25. If the problem is in the
sleepimage the obvious candidate is the zero mode, but I’ve tried it and I’ve just woken up to a back screen. On the other hand, while I was trying to fix the dGPU problem I had set the 25 mode for long, but sometimes it also woke up to the back screen. So this isn’t working for me.
To change the sleep behavior you can run the following commands
1 2 3 4 5 6 # Just sleep mode $ sudo pmset -a hibernationmode 0 # Sleep mode + safe sleep $ sudo pmset -a hibernationmode 3 # Just safe sleep $ sudo pmset -a hibernationmode 25
-a is for all —when you are on power ac and battery— but you can specify different settings.
-b for battery and
-c wall power.
If you decide to go for
hibernatemode 0 you can also delete de
sleepimage and sabe some space in your hard drive.
1 $ sudo rm -f /var/vm/sleepimage
The lidwake (on test)
Since some people say that the problem is related to the lid I’ve decided to change the way the computer wakes up. Instead of waking it up when I open the lid I going to wake up it pushing a key after opening the lid.
You can achieve this changing the
lidwake parameter to
1 $ sudo pmset -a lidwake 0
The normal value is
Let’s see how this pan out and I’m able to stop the back screen wake up.
The issue isn’t incredible problematic, even more right now that in modern system is really difficult to lose data because a force reboot. However, isn’t a normal behavior and is something that Apple should take a look to it. Seems that the problem extents across several generation of Macs and for some people has become more acute with High Sierra. Perhaps this is my case, but I don’t really know. I’ve installed High Sierra around beginning of November and in the beginning of December my dGPU crashed. So it’s difficult for me if this behavior has increased due to the crash, due to High Sierra or just because my Mac is old.