Tip to Prevent Mac from Powering Off in Sleep:
From the OS X Terminal app, try these PMSET changes:
sudo pmset autopoweroff 0
sudo pmset standby 0
Verify the settings by entering "pmset -g" (without quotes).
(The above settings tip was reported to still work as recent as summer 2015.)
BTW: This is for later Macs that support Standby. [Before Disabling BOTH autopoweroff and standby, I had tried setting both autopoweroffdelay and standbydelay from the default 4200 (seconds) to 86400 (i.e. 24 Hours). Did not try a number like 9999999.]
(Update: 4/4/2014 reply to news post on new Cylinder Mac Pros also turning off in sleep)
"Re: About Modern Macs Not Waking after Hours of Sleep
No idea why, but I've now seen at least 2 cases where "sudo pmset autopoweroff 1" and "sudo pmset standby 1" worked but "sudo pmset autopoweroff 0" & "sudo pmset standby 0" didn't!?
(What mac models and OS X version were those 2 using?)
Agreed that does seem odd (opposite of expected setting), but if any readers find that helps (where 0/disabling didn't), let me know.
(previous/older posts follow)
FYI on sleepimage file (created by hiberate):
If your Mac goes into hibernate and you don't plan to ever let that happen again (i.e. with desktop macs) you can save Gigabytes of disk space (especially important for SSD users) by removing the "sleepimage" file written when the mac hiberates. (This was covered here years ago in a 2009 post Tips for OS X SSD Users on Disabling Hibernate mode/deleting sleepimage file.) The sleepimage file is written to the /var/vm/ directory. Using the Terminal, cd to that directory and sudo rm the file to delete it. (Size of the Sleepimage file depends on amount of RAM installed.)
(Update) Sleepimage File Keeps Reappearing despite Hibernate Disabled:
I just noticed this recently (mini w/Mtn Lion 10.8.4) but I hadn't checked earlier for the sleepimage file 'reappearing' after deleting it. Regardless of hibernate mode being disabled and deleting the sleepimage file, it will later reappear. Deleted it via sudo rm (file located in /private/var/vm/ or /var/vm/) - ls check shows file is gone. I verify (via pmset) that hibernate mode is disabled yet the sleepimage file reappears - even if the mac had not been in sleep at all. In fact, I noticed the file was recreated again after a few minutes. (System/drives, even Display were set to never sleep - deleted the Sleepimage file, let the mini sit idle for 5-10 minutes (no wifi/internet connection active, only the terminal open). Checking /private/var/vm/ again showed the sleepimage file was back (with a new timestamp.)
My first thought was to create a small sleepimage file and write protect it, but curious if anyone has a better suggestion. (For now I'm just leaving it alone.)
Double your Mac mini, MacBook, or MacBook Pro's Capacity
Amazon: Download Cloud Player for iPad, but don't download iOS Kindle update
VirnetX vs Apple judge upholds $368M patent suit verdict
What 'New Categories' Could Apple Be Considering?
Tim Cook on 2012: 'We had the mother of all years'
Spotify iOS Update Revamps Interface, Fixes Bugs
New/Updated Apple Support/How-To/Troubleshooting Articles:
- Complete List of Apple Thunderbolt cables and adapters
- Mountain Lion: About Power Nap
- Mac Basics: Set your preferences
- About Windows Migration Assistant
- iTunes 11: Frequently used features
- iTunes in the Cloud and iTunes Match Availability
- iTunes and iOS: Change the name of your iPhone, iPad, or iPod
- iOS: Understanding Notifications
- iOS: Troubleshooting Personal Hotspot
- iOS and iPod: Syncing photos using iTunes