I found this article from Macworld.com that talks about the different sleep settings. I have decided to copy down what I did here in the event that the above article does not exist the next time I reinstall my OS or want to change the sleep mode setting.
Check your current sleep mode:
Open terminal and run this command to determine the current setting:
This will display the current setting. In my case the return was 3.
The sleep modes are described as follows:
Use the following command to change the mode to whatever you want, in this case I am switching to 0.
Note: Restart is not required for this to take effect
Delete the sleepimage file:
If you are switching to mode 0 you can delete the sleepimage file to recover some drive space with the following command:
As I am just doing this now, I don't know how this will effect my system but if things get weird I'll edit this post accordingly.
$ pmset -g | grep hibernatemode
This will display the current setting. In my case the return was 3.
The sleep modes are described as follows:
- 0 = The old style sleep mode. RAM remains powered, safe sleep is disabled. Allows for superfast wake and sleep.
- 1 = Hibernation mode. RAM is fully written to disk and the machine actually shuts down.
- 3 = The default setting on most computers. RAM is powered on while sleeping but contents are still written to the hard disk. If the system looses power it will enter hibernation mode automatically.
- 5 = Same as mode 1 but for people with secure virtual memory turned on
- 7 = Same as mode 3 but again, for secure virtual memory.
Use the following command to change the mode to whatever you want, in this case I am switching to 0.
sudo pmset -a hibernatemode 0
Note: Restart is not required for this to take effect
Delete the sleepimage file:
If you are switching to mode 0 you can delete the sleepimage file to recover some drive space with the following command:
sudo rm /var/vw/sleepimage
As I am just doing this now, I don't know how this will effect my system but if things get weird I'll edit this post accordingly.
No comments:
Post a Comment