Issue:
On my desktop Macs, I typically have the Energy Saver Preferences set to put the display to sleep after a specified amount of inactive time. For no obvious reason, the 24-inch Apple Cinema display attached to my Mac Mini running Snow Leopard (10.6.3) abruptly stopped going to sleep, ever.
Solution:
I've described my trouble-shooting process chronologically here; for the impatient, scroll down to the bottom of this page for the solutions (especially see the 02/14/12 update for Lion).
Both the Shift-Control-Eject keyboard shortcut and setting a “Sleep Display” hot corner in the Mission Control (10.7) or Exposé (10.6, 10.5) System Preferences still work, so it's not a problem with the display sleeping process itself. I tried setting various different idle times in the Energy Saver Preferences and waiting the specified time – no luck. (I should add that I have allowed “Wake for network access” and set the screen saver to “never”.) I tried using pmset to set the sleep display idle time, and confirmed that this change was also reflected in the Energy Saver System Preferences panel; e.g.,
sudo pmset -a displaysleep 3
Still no luck. Next, I used the Plist Editor (start this by double-clicking on a .plist file in a Finder window – you must have Xcode installed for this to work) to examine the Energy Saver preferences; this file is located at /Library/Preferences/SystemConfiguration/com.apple.PowerManagement.plist
I confirmed that the settings from the slider bar in the Energy Saver System Preferences panel were being stored correctly in the plist. Yep, they were. Finally, out of desperation, I deleted /Library/Preferences/SystemConfiguration/com.apple.PowerManagement.plist
then logged out and back in. I then reset the Energy Saver preferences in the System Preferences panel from the defaults to my desired values (using a 1 minute display sleep time for testing). Voilà! It worked. I then set the display sleep time up to a more reasonable value (e.g., 30 minutes), and it continued to work. By the way, if you are still using a screen saver on your LCD display (which I assume is because you just really like watching flying toasters, since a screen saver serves no purpose on a non-CRT display), then my subsequent googling of this problem suggests that sometimes the “display not sleeping” problem is accompanied by a similar “screen saver not starting” problem. In this case, the conventional wisdom is to delete ~/Library/Preferences/ByHost/com.apple.screensaver.*.plist
then log out and back in. There might be several corresponding plist files, for which the * represents a long identifying string of numbers and letters, either alone or with a specific screen saver name (e.g., “Cosmos”). I have not personally tried this (I find that the better solution to this problem is: don't use a screen saver), but have some confidence that it will work based on the similarity to the “display not sleeping” solution. In fairness I should note that my googling also turned up some instances for which it is claimed that both of these solutions did not solve their respective problems. At the moment, I don't have any additional advice in that case – let me know if it happens to you. UPDATE (08/12/11): So, this problem of the display not sleeping still happens to me every once in a while. I think it must be triggered by some software that is running on my computer, but I haven't managed to track down exactly what is causing it. However, I did find a nicer variant of the procedure for fixing it, that saves having to completely log out (thereby having to quit all running s/w, etc.): UPDATE for Lion (02/14/12): So, the display-not-sleeping problem has now reared its ugly head under Lion. I tried the solution described above (which worked under Leopard and Snow Leopard) to no avail. I tried a few other things (e.g., manually deleting and re-creating the Energy Saver (i.e., Power Management) preferences file, logging completely out and back in, etc), stopping just short of rebooting the computer (which, in hindsight, probably would have resolved the issue). But read on...
OS Version Compatibility: Lion, Snow Leopard, Leopard
Update Status: 14 February 2012
|