How can Mac OS X hibernation mode be turned off to free up more memory


The hibernation mode of MAC is very annoying to many users with small hard disk, because it will occupy a lot of our hard disk space. How to prohibit the hibernation mode has become a difficult problem for many users. After looking for a long time, Xiaobian finally found a way to solve this problem. Now let’s share it with you.

 如何关闭Mac OS X冬眠模式释放更多内存

It was previously introduced to disable hibernation mode by using the command line method. Just run sudo pmset – a hibernatemode 0 in the terminal.

But it doesn’t seem to work on Mac OS X 10.7 (lion). Delete sleepimage after disabling it, and it will revive soon.

I tried a software called smartsleep, and it didn’t work.

Finally, a folk prescription was found on the Internet and the problem was solved.

Open TextEdit, create an empty text file named sleepimage, and save it to the desktop.

Go to the finder to find this file, select it, and press return to delete the suffix (. RTF or. Txt).

Press Command + Shift + G in finder, enter / private / var / VM, and press enter.

Open a new finder window and drag the sleepimage file of the desktop into the window in step 3 above. At this time, the system will ask you to enter the administrator account password.

Select sleep image in / private / var / VM, press Command + I, and check locked.


(the principle of this recipe is to put a very small file with the same name into the directory where sleepimage is located (/ private / var / VM), and prohibit the system from writing to the file.)

With this recipe, we finally solved a big stone in our heart, allowing us to expand our small hard disk space. Users who suspect that their MAC memory is occupied can also learn from it《How to force Mac OS X memory cleanup》Cleaning methods in.