Jump to content
Allan

Sleep, Hibernation - How it works? and How to use?

4 posts in this topic

Recommended Posts

Advertisement

I'll buy an SSD, is good use the Hibernation mode?

Well, we know that SSDs can boot up very fast in comparison with traditional HDD drivers, and maybe we think when we buy an SSD: "Uh, if i use Hibernation mode, all the things will be more fast!!  :w00t: "

Yes but if you already read about how the new SSD's technologies works, you'll see that use Hibernation mode can destroy your new toy.

But why this happens?

The short explanation: "Hibernation copies everything in RAM into the SSD drive that sometimes results in wearing out the SSDs."

Questions:

#1 - Q: But using SSD + Hibernation mode, will be good to my Battery life, why i need disable it?
A: Using an SSD is very different when you use a HDD drive, consider that using a SSD the power consumption is very low than HDD, you don't need worry about it.  ;)

#2 - Q: I don't care about this stuff, i want use Hibernation mode anyway!!
A: Ok, ok, relax!  ^_^
You can move the sleepimage file to another drive, maybe an old HDD/SSD.

How? Terminal is the answer bro!

Run pmset -g command and you can check the current configuration for hibernate.

 

Screen Shot 2016-03-23 at 6.32.35 PM.png

 

The important informations here are: standbydelay and hibernatefile. The first one say us that our Mac/Hack will wait 4200 seconds before entering the "real' hibernate mode (before any information is written to the disk). The hibernate file is the location where RAM content are stored.

For example I decided just to relocate my sleepimage file.

 

Create folder on the second driver:

Allans-MacBook-Pro:~ allan$ mkdir -p /Volumes/YourHDD/System/vm

Change the hibernatefile property

sudo pmset -a hibernatefile /Volumes/YourHDD/System/vm/sleepimage

Check your currents settings

Allans-MacBook-Pro:~ allan$ sudo pmset -g 
Active Profiles: 
Battery Power -1* 
AC Power -1 
Currently in use: 
standbydelay 4200 
standby 0 
halfdim 1 
sms 1 
hibernatefile /Volumes/YourHDD/System/vm/sleepimage 
disksleep 10 
sleep 10 
hibernatemode 29 
ttyskeepawake 1 
displaysleep 15 
acwake 0 
lidwake 1

Now any time your Mac/Hack enters in hibernate mode, the RAM content is written in /Volumes/Media drive (your second internal HDD/SSD).

PS: This "other drive" can be an external HD or a USB3 thumb drive.
PS 2: This tip is valid for Mac users that have SSDs.  :)

PS 3: You can also move the image to a null device:

sudo pmset -a hibernatefile /dev/null

Creditis to: Simply Meahmed_ais and AskDifferent

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By M_Furtwangler
      嗨,大家好
      Hi, everybody
      After successfully installing the Catalina and Opencore bootloaders, I encountered a problem that some applications would crash after waking up,
      Such as Chrome and Tencent QQ, these applications will become unresponsive and only be quited by force, even the system could not power off normally.
      However, none of these problems occurred before sleep.
      In addition, all of these issues occur when SMBIOS is iMac and iGPU is enabled in the BIOS, but not when SMBIOS is iMac Pro or iGPU is disabled in the BIOS.
      I am thinking that the problem may be iGPU related and I cannot fix it.
      please help me.
       
      I have attached my EFI and IOReg files
       
      My specifications:
      Asus Z170i Pro gaming
      Intel i5-8600k
      Radeon RX580 8GB
      Radeon RX580 8GB
       
      OC.zip
      iMac.ioreg
    • By JochiePiet
      Hi,
       
      I have upgraded from Mojave to Catalina 10.15.1. It went almost flawlessly. The only issue is the computer  not waking up from sleep. Just a grey screen. Hard reset is required. Of course I have been searching the Internet but to no avail.
      The sleep-awake cycle did work on Mojave.
       
      I have noted that it is now impossible to boot in save mode. Trying to do so produces  the message: " error loading kernel (0xe)" .
      Since I use Clover  I have  tried the bootflags -f en UseCache=no (in addition to -v en -x) .  I wonder if the last one is a Clover bootflag?
       
      Here are my specs:
      Motherboard Gigabyte GA H77 D3H  rev 2.0
      MacOS Catalina Version 10.15.1 (Build 19B88)
      Kernel                         Darwin 19.0.0 x86_64
      RAM                            4.00 GB
      Model Identifier        iMac14,2
      CPU                            Intel(R) Core(TM) i3-3225 CPU @ 3.30GHz
      Intel Generation      Ivy Bridge

       
      Any help is of course much appreciated!
      config.plist
    • By jamesxxx1997
      Hi everyone~
      My machine is thinkpad x1 yoga 2018 , uhd620 , WQHD resolution , with macos 10.14.6 installed.
       
      My efi patch seems to have some problems related improper graphic patch.
      1. The screen sometimes have flickers , especially on safari browser.
      2. Sometimes kernel panic happens after wake from sleep , black screen then reboot.
      3. I cannot enable specific resolution(1920*1080) in hidpi , using hackintool or FixEDID+DarwinDumper
       
      Any help is appreciated , thanks~
       
       
       
      28525.zip
    • By plasticduck35
      I have a hackintosh running 10.13.5 (High Serria) that works except it doesn't shutdown properly and it doesn't seem to be going to sleep. 
       
      Here are some diagnostics that I gathered 
       
      Davids-MacBook-Air-2:~ davidozersky$ sudo pmset -g Password: System-wide power settings: Currently in use: hibernatemode 0 womp 0 networkoversleep 0 sleep 5 (sleep prevented by diskmanagementd, UserEventAgent, mds, diskarbitrationd, coreaudiod, mds_stores, Disk Utility) Sleep On Power Button 1 ttyskeepawake 1 hibernatefile /var/vm/sleepimage disksleep 10 displaysleep 5  
      And I've attached files from a RunMe utility app I've found online. 
       
       
      Any ideas? 
       
      Thank you, 
      David
      runmereport.ioreg
×