Windows Vista Forums

Hibernation - Enable or Disable
  1. #1
    <!-- google_ad_section_start -->Hibernation - Enable or Disable<!-- google_ad_section_end -->

    Hibernation - Enable or Disable
    How to Enable or Disable Hibernation in Vista
    Published by Brink is online now
    21 May 2007
    Hibernation - Enable or Disable

    How to Enable or Disable Hibernation in Vista

    information   Information
    If you accidentally wiped out the Hibernation file Cleaner in Disk Cleanup and caused your hybrid sleep or hibernate mode to stop working, then you accidentally disabled the hiberfil.sys file. By default, the size of the hiberfil.sys file is 75% of the total amount of installed RAM (memory) when hibernate is enabled in Vista.

    For more information, see: Microsoft Help and Support: KB929658 and Microsoft Help and Support: KB928897

    Note   Note
    If you cleaned (disabled) this, all Hybrid and Hibernate settings will also be removed from the Advanced Power Options window. You will still be able to use normal Sleep mode though.

    Tip   Tip
    To set your computer to either use or not use Hybrid or Hibernate sleep mode, make sure that the Power Plan Options in steps 7 and 8 in STEP TWO here: How to Troubleshoot a Vista Sleep Mode Problem and Find a Solution, then either enable (use) or disable (not use) hibernation below.








    METHOD ONE

    Using an Elevated Command Prompt

    1. Open a Elevated Command Prompt.

    2. Click on Continue in the UAC prompt.

    3. To Enable or Restore the Hibernation File
    A) In the elevated command prompt, type powercfg -h on and press Enter. (See screenshot below step 4)

    B) Set the recommended settings for Hibernation in STEP TWO here.

    C) Go to step 5.
    4. To Disable or Remove the Hibernation File
    NOTE: Using Disk Cleanup in METHOD TWO below is another way to disable or remove the hibernation file.
    A) In the elevated command prompt, type powercfg -h off and press Enter.
    5. Close the elevated command prompt when it is finished.
    NOTE: The Hibernation File Cleaner is now added back or removed from Disk Cleanup and the hibernate sleep mode is enabled or disabled again.
    command_prompt.jpg



    METHOD TWO

    Using Disk Cleanup

    1. Open Disk Cleanup.

    2. To Disable or Remove the Hibernation File
    A) Check the Hibernation File Cleaner box and click OK. (See screenshot below)
    disk_cleanup.jpg
    B) Click on Delete Files to confirm. (See screenshot below)
    NOTE: Disk Cleanup will now delete the Hibernation file and close.
    confirmation.jpg
    That's it,
    Shawn






    Published by


    Brink's Avatar
    Administrator

    Join Date: Apr 2007
    Location: Texas, USA
    Posts: 30,532
    Array

    Tutorial Tools


    Applies to

    All Vista Versions
    64 Bit & 32 Bit

  2. #1
    Slammer's Avatar

    Destroyer of Tyranny
    Join Date : Jun 2011
    New Mexico, USA!
    Posts : 478
    Vista Home Premium x64, with others on VMware for fun!
    Local Time: 05:41 PM
    usa us new mexico

    Re: Hibernation - Enable or Disable

    Is there any way to bring hibernation back if that hiberfil.sys file gets deleted, accidentally or on purpose? Short of a complete reinstall?


      My System SpecsSystem Spec

  3. #2
    Yard Dog's Avatar

    Senior Member



    Join Date : Oct 2011
    Central Florida in a small town
    Posts : 2,174
    Vista Home Basic. 32 bit SP 2
    Local Time: 07:41 PM
    usa us florida

     

    Re: Hibernation - Enable or Disable

    SFC or repair install would work , right ? short of that, ya got me .

      My System SpecsSystem Spec

  4. #3
    Slammer's Avatar

    Destroyer of Tyranny
    Join Date : Jun 2011
    New Mexico, USA!
    Posts : 478
    Vista Home Premium x64, with others on VMware for fun!
    Local Time: 05:41 PM
    usa us new mexico

     

    Re: Hibernation - Enable or Disable

    Hmmm. SFC is a good idea.

    I ask because I'm currently doing some research on this for a problem I have with hibernation, and have read that Windows puts that file in a reserved space at the beginning of your installation partition. So I got the impression that if it gets deleted (and then replaced by other files, since the whole point is to free up some space) that it couldn't be set back up since those other files would be taking up that space it needs. So I'm curious about if I'm right about that or if it can be put anywhere on the partition, or if once you delete it you're just out of luck.

    I don't actually have this problem though, so I can't test out your SFC idea. Darn

      My System SpecsSystem Spec

  5. #4
    Yard Dog's Avatar

    Senior Member



    Join Date : Oct 2011
    Central Florida in a small town
    Posts : 2,174
    Vista Home Basic. 32 bit SP 2
    Local Time: 07:41 PM
    usa us florida

     

    Re: Hibernation - Enable or Disable

    The other thing that comes to mind, is the extract files from the OEM or Install disk trick

      My System SpecsSystem Spec

  6. #5
    richc46's Avatar

    BSOD Squad




    Join Date : Dec 2008
    Fairfield County, CT
    Posts : 19,259
    Windows 7 SP1 x64
    Local Time: 07:41 PM
    usa us connecticut

     

    Re: Hibernation - Enable or Disable

    IM not sure if the SFC would work in that situation. If it does not, I think this would do the trick
    Extract Files from Vista Installation DVD

    Maybe even a repair install
    Repair Install For Vista

      My System SpecsSystem Spec

  7. #6
    Brink's Avatar

    Administrator


    Join Date : Apr 2007
    Texas, USA
    Posts : 30,532
    64-bit Vista Ultimate SP2, Windows 7 Ultimate SP1, Windows 8 Enterprise
    Local Time: 06:41 PM
    usa us texas

      Thread Starter

    Re: Hibernation - Enable or Disable

    Quote Originally Posted by Slammer View Post
    Is there any way to bring hibernation back if that hiberfil.sys file gets deleted, accidentally or on purpose? Short of a complete reinstall?
    Hello Adam,

    The hiberfil.sys file is only the file where memory is stored at when the system goes into hibernation. To restore it, you would just need to disable and enable hibernation to reset it. Afterwards, it will be restore the next time the system goes into hibernation.

      My System SpecsSystem Spec

  8. #7
    Slammer's Avatar

    Destroyer of Tyranny
    Join Date : Jun 2011
    New Mexico, USA!
    Posts : 478
    Vista Home Premium x64, with others on VMware for fun!
    Local Time: 05:41 PM
    usa us new mexico

     

    Re: Hibernation - Enable or Disable

    Oh ok, thanks Brink. I didn't think it would be that easy. It must have much less stringent rules for using it than the darn page file does.

    And thanks to Yard Dog and Rich for the info about extracting the files, I had no idea you could do that!

      My System SpecsSystem Spec

  9. #8
    Brink's Avatar

    Administrator


    Join Date : Apr 2007
    Texas, USA
    Posts : 30,532
    64-bit Vista Ultimate SP2, Windows 7 Ultimate SP1, Windows 8 Enterprise
    Local Time: 06:41 PM
    usa us texas

      Thread Starter

    Re: Hibernation - Enable or Disable

    You're most welcome Adam.

    Nar, you could pretty much do the same with the page file except it requires a restart after each off/on.

      My System SpecsSystem Spec

  10. #9
    Slammer's Avatar

    Destroyer of Tyranny
    Join Date : Jun 2011
    New Mexico, USA!
    Posts : 478
    Vista Home Premium x64, with others on VMware for fun!
    Local Time: 05:41 PM
    usa us new mexico

     

    Re: Hibernation - Enable or Disable

    Well I'll be darned. Here I was thinking that these two files could hardly be looked at without causing some sort of system failure.

      My System SpecsSystem Spec

Page 1 of 2 12 LastLast
Hibernation - Enable or Disable problems?

Similar Threads
Tutorial Tutorial Starter Category Comments Last Post
How To Disable Hibernation with GPO 95huskers Vista General 0 24 Jun 2009
Hibernation got BSOD 0x01 ...disable DWM.exe seems ok Anj Vista General 0 26 Feb 2008
Disable sleep (and hibernation) for all users Karen G Vista account administration 5 22 Mar 2007
Disable Hibernation & Delete hiberfil.sys Mike Vista General 4 28 Jan 2007
Disable hibernation Jeff Vista installation & setup 1 23 Jun 2006