Posted: 1 minute read

Note: Just you all to know, that I don’t have this mac anymore and that this solution never really worked for long time. In the end I got really mixed results and the issue arise again sometimes. My best advice for you all is just replace the dGPU or even better buy a new mac.

A couple of weeks ago I wrote about the problem I have with my old MacBook Pro wakening from sleeping to a black screen. I also pointed out that I was testing a solution related to the lid. I can tell that since I’ve testing this solution I haven’t suffered any wake up to a black screen, so I guess that the problem is related to the lid, either to the hinge or to the magnet that trigger the wake up and the sleep processes.

I’m doing two things to prevent the black screen behavior. First I’m sleeping the computer using the command line:

1
sudo shutdown -s now

I’ve also change the hibernation mode of the machine to zero, in other words, it doesn’t save the state in a file in the hard drive. I’ve also deleted that file from my hard drive.

1
sudo rm -f /var/vm/sleepimage

Finally I’ve disable the options to wake up the computer when you connect to power source and when you open the lid.

1
sudo pmset -a lidwake 0

So, now to wake up the computer I have to hit any key on the computer keyboard or the trackpad after I’ve open the lid.

So far it has been working great.

Leave a comment