Mac – How to the Mac still be falling asleep with Caffeinate

high sierramacsleep-wake

After long-running problems where my Mac mini (Late 2012 unibody) won't wake up from sleep, I started running caffeinate -s. But even this doesn't fix it. My Mac claims to still be running, flickering lights on my external hard drive, etc., but the monitor is asleep and says there is no signal.

My only options are to hard-boot, or weirdly to turn the hard drive off and on. This brings the monitor back awake "the Mac will shortly restart".

What can be going on? Is something sleeping and failing to wake? Is my Mac just dying? Is my DP-based monitor trying to be too smart? It's a Dell U2715H.

Best Answer

Missing some information, but I'll make some guesses:

  1. caffeinate -s only applies when system is running on ac power

So maybe assume this is an iMac? (from your reference to a "DP-based monitor")

  1. caffeinate -d might be worth trying, but it's hard to say if an iMac can keep a non-Apple monitor from sleeping.

The fact that you're seeing activity lights on your external drive may or may not mean something... I have an external drive that blinks when it goes into idle mode :)

  1. You might also try this: Start an app on your Mac, get its PID (e.g. 123) from Activity Monitor, and then run caffeinate - w 123

A couple of other things to try that would verify the true state of your Mac: initiate a VNC connection to your Mac from another Mac or PC, or alternatively enable the remote login service for your Mac, and make an SSH connection to it. This would allow you to verify whether your Mac is really sleeping, or whether something else is going on. Simply pinging your Mac might also give some indications.