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

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

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






 

Attachments

  • thumb_14728231780Power_Options.png
    thumb_14728231780Power_Options.png
    12.3 KB · Views: 393
Last edited by a moderator:
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 Computer

System One

  • Manufacturer/Model
    Dell Inspiron 1545
    CPU
    Intel Core 2 Duo T6400 @ 2.00 GHz
    Motherboard
    DELL - 27d90219 Phoenix ROM BIOS PLUS Version 1.10 A05
    Memory
    4 GB
    Graphics card(s)
    Mobile Intel(R) 4 Series Express Chipset Family
    Sound Card
    IDT High Definition Audio CODEC
    Monitor(s) Displays
    Generic PnP Monitor (DPMS), 15.3" (34cm x 19cm)
    Screen Resolution
    1366x768
    Hard Drives
    Internal 320 GB Portable 320 GB used for separate storage of media, plugged into USB port as needed.
    Cooling
    Single built in fan
    Mouse
    Touchpad, + Logitech wireless mouse (USB)
    Keyboard
    Built in
    Internet Speed
    ~150 kilobytes/sec DL
    Other Info
    Usually have low HD free space left (<10 GB), often left on overnight. I really push its capabilities.
SFC or repair install would work , right ? short of that, ya got me .
 

My Computer

System One

  • Manufacturer/Model
    Emachine ET 1161-05
    CPU
    AMD Athlon 64 LE-1640
    Motherboard
    eMachines MCP61PM-GM (Socket AM2 )
    Memory
    2.00 GB Dual-Channel DDR2 @ 387MHz (6-6-6-18)
    Graphics card(s)
    Acer E181H (1280x768@60Hz) 128MB GeForce 6150SE nForce 430 (
    Sound Card
    Realtek High Definition Audio
    Monitor(s) Displays
    Name Acer E181H on NVIDIA GeForce 6150SE nForce 430
    Screen Resolution
    1280x768 pixels
    Hard Drives
    ST316081 5AS SCSI Disk Device
    PSU
    MCP61PM-GM 9000 NVIDIA Chipset Model MCP61 Chipset Revisio
    Case
    Tower
    Cooling
    Fan Speed 1247 RPM
    Mouse
    PS/2 Compatible Mouse
    Keyboard
    Standard PS/2 Keyboard
    Internet Speed
    http://www.speedtest.net/result/1538974261.png
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 Computer

System One

  • Manufacturer/Model
    Dell Inspiron 1545
    CPU
    Intel Core 2 Duo T6400 @ 2.00 GHz
    Motherboard
    DELL - 27d90219 Phoenix ROM BIOS PLUS Version 1.10 A05
    Memory
    4 GB
    Graphics card(s)
    Mobile Intel(R) 4 Series Express Chipset Family
    Sound Card
    IDT High Definition Audio CODEC
    Monitor(s) Displays
    Generic PnP Monitor (DPMS), 15.3" (34cm x 19cm)
    Screen Resolution
    1366x768
    Hard Drives
    Internal 320 GB Portable 320 GB used for separate storage of media, plugged into USB port as needed.
    Cooling
    Single built in fan
    Mouse
    Touchpad, + Logitech wireless mouse (USB)
    Keyboard
    Built in
    Internet Speed
    ~150 kilobytes/sec DL
    Other Info
    Usually have low HD free space left (<10 GB), often left on overnight. I really push its capabilities.
The other thing that comes to mind, is the extract files from the OEM or Install disk trick
 

My Computer

System One

  • Manufacturer/Model
    Emachine ET 1161-05
    CPU
    AMD Athlon 64 LE-1640
    Motherboard
    eMachines MCP61PM-GM (Socket AM2 )
    Memory
    2.00 GB Dual-Channel DDR2 @ 387MHz (6-6-6-18)
    Graphics card(s)
    Acer E181H (1280x768@60Hz) 128MB GeForce 6150SE nForce 430 (
    Sound Card
    Realtek High Definition Audio
    Monitor(s) Displays
    Name Acer E181H on NVIDIA GeForce 6150SE nForce 430
    Screen Resolution
    1280x768 pixels
    Hard Drives
    ST316081 5AS SCSI Disk Device
    PSU
    MCP61PM-GM 9000 NVIDIA Chipset Model MCP61 Chipset Revisio
    Case
    Tower
    Cooling
    Fan Speed 1247 RPM
    Mouse
    PS/2 Compatible Mouse
    Keyboard
    Standard PS/2 Keyboard
    Internet Speed
    http://www.speedtest.net/result/1538974261.png

My Computer

System One

  • Manufacturer/Model
    Dell XPS420
    Memory
    6 gig
    Graphics card(s)
    ATI Radeon HD3650 256 MB
    Sound Card
    Intergrated 7.1 Channel Audio
    Monitor(s) Displays
    Dell SP2009W 20 inch Flat Panel w Webcam
    Hard Drives
    640 gb
    Cooling
    Fan
    Mouse
    Dell USB 4 button optical
    Keyboard
    Dell USB
    Other Info
    DSL provided by ATT
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 Computers

System One System Two

  • Operating System
    Windows 10 Pro 64-bit
    Manufacturer/Model
    Custom
    CPU
    Intel i7-8700K 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz (F4-3600C18D-32GTZR)
    Graphics card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G7 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 990 PRO M.2, 4TB Samsung 990 PRO PRO M.2, 8TB WD MyCloudEX2Ultra NAS
    PSU
    Seasonic Prime Titanium 850W
    Case
    Thermaltake Core P3
    Cooling
    Corsair Hydro H115i
    Mouse
    Logitech MX Master 3
    Keyboard
    Logitech wireless K800
    Internet Speed
    1 Gb/s Download and 35 Mb/s Upload
    Other Info
    Logitech Z625 speaker system, Logitech BRIO 4K Pro webcam, HP Color LaserJet Pro MFP M477fdn, APC SMART-UPS RT 1000 XL - SURT1000XLI, Galaxy S23 Plus phone
  • Operating System
    Windows 10 Pro
    Manufacturer/Model
    HP Envy Y0F94AV
    CPU
    i7-7500U @ 2.70 GHz
    Memory
    16 GB DDR4-2133
    Sound Card
    Conexant ISST Audio
    Monitor(s) Displays
    17.3" UHD IPS touch
    Screen Resolution
    3480 x 2160
    Hard Drives
    512 GB M.2 SSD
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 Computer

System One

  • Manufacturer/Model
    Dell Inspiron 1545
    CPU
    Intel Core 2 Duo T6400 @ 2.00 GHz
    Motherboard
    DELL - 27d90219 Phoenix ROM BIOS PLUS Version 1.10 A05
    Memory
    4 GB
    Graphics card(s)
    Mobile Intel(R) 4 Series Express Chipset Family
    Sound Card
    IDT High Definition Audio CODEC
    Monitor(s) Displays
    Generic PnP Monitor (DPMS), 15.3" (34cm x 19cm)
    Screen Resolution
    1366x768
    Hard Drives
    Internal 320 GB Portable 320 GB used for separate storage of media, plugged into USB port as needed.
    Cooling
    Single built in fan
    Mouse
    Touchpad, + Logitech wireless mouse (USB)
    Keyboard
    Built in
    Internet Speed
    ~150 kilobytes/sec DL
    Other Info
    Usually have low HD free space left (<10 GB), often left on overnight. I really push its capabilities.
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 Computers

System One System Two

  • Operating System
    Windows 10 Pro 64-bit
    Manufacturer/Model
    Custom
    CPU
    Intel i7-8700K 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz (F4-3600C18D-32GTZR)
    Graphics card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G7 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 990 PRO M.2, 4TB Samsung 990 PRO PRO M.2, 8TB WD MyCloudEX2Ultra NAS
    PSU
    Seasonic Prime Titanium 850W
    Case
    Thermaltake Core P3
    Cooling
    Corsair Hydro H115i
    Mouse
    Logitech MX Master 3
    Keyboard
    Logitech wireless K800
    Internet Speed
    1 Gb/s Download and 35 Mb/s Upload
    Other Info
    Logitech Z625 speaker system, Logitech BRIO 4K Pro webcam, HP Color LaserJet Pro MFP M477fdn, APC SMART-UPS RT 1000 XL - SURT1000XLI, Galaxy S23 Plus phone
  • Operating System
    Windows 10 Pro
    Manufacturer/Model
    HP Envy Y0F94AV
    CPU
    i7-7500U @ 2.70 GHz
    Memory
    16 GB DDR4-2133
    Sound Card
    Conexant ISST Audio
    Monitor(s) Displays
    17.3" UHD IPS touch
    Screen Resolution
    3480 x 2160
    Hard Drives
    512 GB M.2 SSD
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 Computer

System One

  • Manufacturer/Model
    Dell Inspiron 1545
    CPU
    Intel Core 2 Duo T6400 @ 2.00 GHz
    Motherboard
    DELL - 27d90219 Phoenix ROM BIOS PLUS Version 1.10 A05
    Memory
    4 GB
    Graphics card(s)
    Mobile Intel(R) 4 Series Express Chipset Family
    Sound Card
    IDT High Definition Audio CODEC
    Monitor(s) Displays
    Generic PnP Monitor (DPMS), 15.3" (34cm x 19cm)
    Screen Resolution
    1366x768
    Hard Drives
    Internal 320 GB Portable 320 GB used for separate storage of media, plugged into USB port as needed.
    Cooling
    Single built in fan
    Mouse
    Touchpad, + Logitech wireless mouse (USB)
    Keyboard
    Built in
    Internet Speed
    ~150 kilobytes/sec DL
    Other Info
    Usually have low HD free space left (<10 GB), often left on overnight. I really push its capabilities.
LOL, well that certainly could still be true though. ;)
 

My Computers

System One System Two

  • Operating System
    Windows 10 Pro 64-bit
    Manufacturer/Model
    Custom
    CPU
    Intel i7-8700K 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz (F4-3600C18D-32GTZR)
    Graphics card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G7 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 990 PRO M.2, 4TB Samsung 990 PRO PRO M.2, 8TB WD MyCloudEX2Ultra NAS
    PSU
    Seasonic Prime Titanium 850W
    Case
    Thermaltake Core P3
    Cooling
    Corsair Hydro H115i
    Mouse
    Logitech MX Master 3
    Keyboard
    Logitech wireless K800
    Internet Speed
    1 Gb/s Download and 35 Mb/s Upload
    Other Info
    Logitech Z625 speaker system, Logitech BRIO 4K Pro webcam, HP Color LaserJet Pro MFP M477fdn, APC SMART-UPS RT 1000 XL - SURT1000XLI, Galaxy S23 Plus phone
  • Operating System
    Windows 10 Pro
    Manufacturer/Model
    HP Envy Y0F94AV
    CPU
    i7-7500U @ 2.70 GHz
    Memory
    16 GB DDR4-2133
    Sound Card
    Conexant ISST Audio
    Monitor(s) Displays
    17.3" UHD IPS touch
    Screen Resolution
    3480 x 2160
    Hard Drives
    512 GB M.2 SSD
I've created a batch file to enable hibernation quickly and easily. Just save it and run it as an administrator by right clicking on it and clicking "Run as administrator".
 

Attachments

Last edited:

My Computer

System One

  • Manufacturer/Model
    Dell XPS 15 L502x
    CPU
    Intel Core i7 2630QM @ 2.00GHz
    Memory
    6GB DDR3
    Graphics card(s)
    Intel Integrated Graphics 3000, nVidia GT525M
    Screen Resolution
    1366x768
    Hard Drives
    750GB Seagate HDD @ 7200RPM
    Mouse
    Microsoft Wireless Mobile Mouse 4000
    Internet Speed
    2.5 mb/s down, 0.36 up
Back
Top