• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Performance & Maintenance Hibernation - Enable or Disable

Brink

Staff member
mvp
Messages
32,199
Location
Oklahoma, USA
Hibernation - Enable or Disable How to Enable or Disable Hibernation in Vista
This will show you how to enable or disable Hibernate in Vista. This can be easily done if you accidentally wiped out the hiberfil.sys file Cleaner in Disk Cleanup.
Published by Brink Category: Performance & Maintenance 
#1
ByLine
How to Enable or Disable Hibernation in Vista
Synopsis
This will show you how to enable or disable Hibernate in Vista. This can be easily done if you accidentally wiped out the hiberfil.sys file Cleaner in Disk Cleanup.
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






 
Last edited by a moderator:

My Computers

System One System Two

  • Show second system?
    Yes
    Operating System
    Windows 10 Pro 64-bit
    Manufacturer/Model
    Custom
    CPU
    Intel i7-8700K 5 GHz
    Motherboard
    ASUS Maximus X Code Z370
    Memory
    16 GB (8GBx2) G.SKILL TridentZ DDR4 3200 MHz
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
    Sound Card
    Integrated
    Monitor(s) Displays
    3 x 27" Asus VE278Q
    Screen Resolution
    1920x1080
    Hard Drives
    250GB Samsung 960 EVO M.2,
    256GB OCZ Vector,
    6TB WD Black WD6001FZWX
    PSU
    Seasonic Prime Titanium 850W
    Case
    Corsair Air 740
    Cooling
    Corsair Hydro H115i
    Mouse
    Logitech MX Master
    Keyboard
    Logitech wireless K800
    Internet Speed
    300 Mb/s Download and 30 Mb/s Upload
    Other Info
    Logitech Z625 speaker system,
    Creative F200 webcam,
    HP Color LaserJet Pro MFP M477fdn,
    Linksys EA9500 router,
    Arris SB6190 cable modem,
    APC SMART-UPS RT 1000 XL,
    Lumia 1520 phone
  • Operating System
    Windows 10 Pro
    Manufacturer/Model
    HP Envy Y0F94AV
    CPU
    i7-7500U @ 2.70 GHz
    Memory
    16 GB DDR4-2133
    Graphics card(s)
    NVIDIA GeForce 940MX
    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

Slammer

Destroyer of Tyranny
Vista Guru
Messages
467
Location
New Mexico, USA!
#2
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.

Yard Dog

Vista Guru
Gold Member
Messages
2,169
Location
Central Florida in a small town
#3
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

Slammer

Destroyer of Tyranny
Vista Guru
Messages
467
Location
New Mexico, USA!
#4
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.

Yard Dog

Vista Guru
Gold Member
Messages
2,169
Location
Central Florida in a small town
#5
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

richc46

Staff member
Vista Guru
Gold Member
Messages
20,105
Location
Fairfield County, CT
#6

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

Brink

Staff member
mvp
Messages
32,199
Location
Oklahoma, USA
#7
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

  • Show second system?
    Yes
    Operating System
    Windows 10 Pro 64-bit
    Manufacturer/Model
    Custom
    CPU
    Intel i7-8700K 5 GHz
    Motherboard
    ASUS Maximus X Code Z370
    Memory
    16 GB (8GBx2) G.SKILL TridentZ DDR4 3200 MHz
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
    Sound Card
    Integrated
    Monitor(s) Displays
    3 x 27" Asus VE278Q
    Screen Resolution
    1920x1080
    Hard Drives
    250GB Samsung 960 EVO M.2,
    256GB OCZ Vector,
    6TB WD Black WD6001FZWX
    PSU
    Seasonic Prime Titanium 850W
    Case
    Corsair Air 740
    Cooling
    Corsair Hydro H115i
    Mouse
    Logitech MX Master
    Keyboard
    Logitech wireless K800
    Internet Speed
    300 Mb/s Download and 30 Mb/s Upload
    Other Info
    Logitech Z625 speaker system,
    Creative F200 webcam,
    HP Color LaserJet Pro MFP M477fdn,
    Linksys EA9500 router,
    Arris SB6190 cable modem,
    APC SMART-UPS RT 1000 XL,
    Lumia 1520 phone
  • Operating System
    Windows 10 Pro
    Manufacturer/Model
    HP Envy Y0F94AV
    CPU
    i7-7500U @ 2.70 GHz
    Memory
    16 GB DDR4-2133
    Graphics card(s)
    NVIDIA GeForce 940MX
    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

Slammer

Destroyer of Tyranny
Vista Guru
Messages
467
Location
New Mexico, USA!
#8
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.

Brink

Staff member
mvp
Messages
32,199
Location
Oklahoma, USA
#9
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

  • Show second system?
    Yes
    Operating System
    Windows 10 Pro 64-bit
    Manufacturer/Model
    Custom
    CPU
    Intel i7-8700K 5 GHz
    Motherboard
    ASUS Maximus X Code Z370
    Memory
    16 GB (8GBx2) G.SKILL TridentZ DDR4 3200 MHz
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
    Sound Card
    Integrated
    Monitor(s) Displays
    3 x 27" Asus VE278Q
    Screen Resolution
    1920x1080
    Hard Drives
    250GB Samsung 960 EVO M.2,
    256GB OCZ Vector,
    6TB WD Black WD6001FZWX
    PSU
    Seasonic Prime Titanium 850W
    Case
    Corsair Air 740
    Cooling
    Corsair Hydro H115i
    Mouse
    Logitech MX Master
    Keyboard
    Logitech wireless K800
    Internet Speed
    300 Mb/s Download and 30 Mb/s Upload
    Other Info
    Logitech Z625 speaker system,
    Creative F200 webcam,
    HP Color LaserJet Pro MFP M477fdn,
    Linksys EA9500 router,
    Arris SB6190 cable modem,
    APC SMART-UPS RT 1000 XL,
    Lumia 1520 phone
  • Operating System
    Windows 10 Pro
    Manufacturer/Model
    HP Envy Y0F94AV
    CPU
    i7-7500U @ 2.70 GHz
    Memory
    16 GB DDR4-2133
    Graphics card(s)
    NVIDIA GeForce 940MX
    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

Slammer

Destroyer of Tyranny
Vista Guru
Messages
467
Location
New Mexico, USA!
#10
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.

Brink

Staff member
mvp
Messages
32,199
Location
Oklahoma, USA
#11
LOL, well that certainly could still be true though. ;)
 

My Computers

System One System Two

  • Show second system?
    Yes
    Operating System
    Windows 10 Pro 64-bit
    Manufacturer/Model
    Custom
    CPU
    Intel i7-8700K 5 GHz
    Motherboard
    ASUS Maximus X Code Z370
    Memory
    16 GB (8GBx2) G.SKILL TridentZ DDR4 3200 MHz
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
    Sound Card
    Integrated
    Monitor(s) Displays
    3 x 27" Asus VE278Q
    Screen Resolution
    1920x1080
    Hard Drives
    250GB Samsung 960 EVO M.2,
    256GB OCZ Vector,
    6TB WD Black WD6001FZWX
    PSU
    Seasonic Prime Titanium 850W
    Case
    Corsair Air 740
    Cooling
    Corsair Hydro H115i
    Mouse
    Logitech MX Master
    Keyboard
    Logitech wireless K800
    Internet Speed
    300 Mb/s Download and 30 Mb/s Upload
    Other Info
    Logitech Z625 speaker system,
    Creative F200 webcam,
    HP Color LaserJet Pro MFP M477fdn,
    Linksys EA9500 router,
    Arris SB6190 cable modem,
    APC SMART-UPS RT 1000 XL,
    Lumia 1520 phone
  • Operating System
    Windows 10 Pro
    Manufacturer/Model
    HP Envy Y0F94AV
    CPU
    i7-7500U @ 2.70 GHz
    Memory
    16 GB DDR4-2133
    Graphics card(s)
    NVIDIA GeForce 940MX
    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
Messages
55
#12
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".
 
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

Users Who Are Viewing This Thread (Users: 1, Guests: 1)