Disable hibernate


D

DevilsPGD

I have apparently installed one or more device drivers which don't allow
my desktop to go into Standby or Hibernate anymore. I'm not really sure
which driver, I swapped a fair amount of hardware in a relatively short
period of time, but I suspect it's my new SATA controller (The one piece
of hardware I cannot simply disable to see if Hibernate comes back)

Long story short, I don't care about getting Hibernate back, at this
point I would simply like to disable the Hibernate feature and delete
the 2GB hiberfil.sys file on the root of C:\ -- Unfortunately the
Hibernate (And other Standby-features too) have disappeared from the
Power Management dialog.

I can't find any information on how to enable or disable hibernation
from the registry (or any way other then through the GUI)

Can anybody give me any clues?
 
Ad

Advertisements

W

Wesley Vogel

Navigate to C:\hiberfil.sys in Windows Explorer and delete hiberfil.sys.

Or open a command prompt...
Start | Run | Type: cmd | Click OK |
In the the command prompt, type or paste:

del C:\hiberfil.sys

Hit the Enter key.

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
 
D

DevilsPGD

In message <[email protected]> "Wesley Vogel"
Navigate to C:\hiberfil.sys in Windows Explorer and delete hiberfil.sys.

Or open a command prompt...
Start | Run | Type: cmd | Click OK |
In the the command prompt, type or paste:

del C:\hiberfil.sys

Hit the Enter key.

The file is locked and cannot be deleted.

C:\>attrib hiberfil.sys A SH C:\hiberfil.sys

C:\>attrib -s -h hiberfil.sys Unable to change attribute -
C:\hiberfil.sys
C:\>del hiberfil.sys Could Not Find C:\hiberfil.sys
C:\>handle hiberfil.sys
Handle v3.01 Copyright (C) 1997-2005 Mark Russinovich Sysinternals -
www.sysinternals.com
System pid: 4 C:\hiberfil.sys

In other words, the system is still using hiberfil.sys (likely because
it was still active when I installed whatever hardware+driver
combination is preventing me from disabling it), but all the GUI
elements are hidden that would assist me in correcting this problem.
 
D

DevilsPGD

In message <[email protected]> "Wesley Vogel"
If you have XP SP2, this will turn hibernation off.

Open a Command Prompt...
Start | Run | Type: cmd | Click OK |
Type or paste:

powercfg /hibernate off

Hit the Enter key.

Powercfg
http://www.microsoft.com/technet/pr...elp/0d90be55-cc9d-423d-8e49-8a79a4d6bcd4.mspx

I tried that too actually (Sorry, I should have mentioned -- I did do my
research before posting)

c:\utils>powercfg /hibernate off
System does not support hibernation

HKEY_CURRENT_USER\Control Panel\PowerCfg
and
HKEY_USERS\.DEFAULT\Control Panel\PowerCfg

That just seems to contain the power profiles, not the standby/hibernate
options.

I did find one article discussing how to enable hibernation, but it just
involes copying registry entries AND a hiberfil.sys from an identical
system and doesn't discuss how to set the options manually. The keys
which were involved were at
KHLM\SYSTEM\CurrentControlSet\Control\Session Manager\Power

I've currently got the following, none of which is especially clear as
to which one controls hibernation.

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Power]
"AcProcessorPolicy"=hex:01,00,00,00,00,00,00,00,00,00,00,00,03,00,00,00,a0,86,\

01,00,a0,86,01,00,a0,86,01,00,28,32,00,00,02,00,00,00,a0,86,01,00,a0,86,01,\

00,a0,86,01,00,28,3c,00,00,03,00,00,00,a0,86,01,00,a0,86,01,00,a0,86,01,00,\
28,50,00,00,01,00,00,00
"DcProcessorPolicy"=hex:01,00,00,00,03,00,00,00,00,00,00,00,03,00,00,00,a0,86,\

01,00,a0,86,01,00,a0,86,01,00,0a,14,00,00,02,00,00,00,a0,86,01,00,a0,86,01,\

00,a0,86,01,00,14,28,00,00,03,00,00,00,a0,86,01,00,a0,86,01,00,a0,86,01,00,\
14,46,00,00,01,00,00,00
"AcPolicy"=hex:01,00,00,00,00,00,00,00,03,00,00,00,10,00,00,00,00,00,00,00,03,\

00,00,00,08,00,00,00,00,00,00,00,01,00,00,00,00,00,00,80,01,00,00,00,20,d2,\

98,87,00,00,00,00,01,00,00,00,00,00,00,00,00,00,00,00,32,00,58,48,02,00,00,\

00,02,00,00,00,02,00,00,00,01,00,00,00,b0,4f,16,00,00,00,00,00,03,00,00,00,\

01,00,00,00,03,00,00,00,00,00,00,00,04,00,00,c0,01,00,00,00,05,00,00,00,01,\

00,00,00,0a,00,00,00,00,00,00,00,03,00,00,00,01,00,01,00,01,00,00,00,00,00,\

00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,02,00,00,00,00,00,00,00,00,\

00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,03,00,00,00,00,00,84,03,00,00,\

71,fb,90,7c,e8,f1,06,00,fe,e1,90,7c,a8,f2,06,00,84,03,00,00,00,64,64,00,00,\
00,00,00,04,00,00,c0,00,00,00,00
"DcPolicy"=hex:01,00,00,00,00,00,00,00,03,00,00,00,10,00,00,00,00,00,00,00,03,\

00,00,00,08,00,00,00,00,00,00,00,01,00,00,00,00,00,00,80,01,00,00,00,e0,38,\

00,00,03,00,00,00,00,00,00,00,00,00,00,00,84,03,00,00,32,03,2d,00,02,00,00,\

00,02,00,00,00,02,00,00,00,01,00,00,00,35,00,32,00,00,00,00,00,03,00,00,00,\

01,00,00,00,03,00,00,00,00,00,00,00,04,00,00,c0,01,00,00,00,05,00,00,00,01,\

00,00,00,0a,00,00,00,00,00,00,00,03,00,00,00,01,00,01,00,01,00,00,00,00,00,\

00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,02,00,00,00,00,00,00,00,00,\

00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,03,00,00,00,00,00,2c,01,00,00,\

01,eb,56,80,48,0e,00,e1,6c,0b,00,00,20,d2,98,87,58,02,00,00,00,64,64,00,00,\
00,00,00,04,00,00,c0,00,00,00,00
"Heuristics"=hex:05,00,00,00,00,01,01,00,00,00,00,00,00,00,00,00,3f,42,0f,00
"HiberElapsedTime"=dword:00001532
"HiberIoTime"=dword:0000066d
"HiberCopyTime"=dword:00000071
"HiberCopyBytes"=dword:1989e860
"HiberPagesWritten"=dword:00006cd6
"HiberPagesProcessed"=dword:00018ebc
"HiberDumpCount"=dword:0000155c
"HiberFileRuns"=dword:00000003
 
W

Wesley Vogel

No SP2, huh? Me either.

Your key...
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Power
"Heuristics"=hex:05,00,00,00,00,01,01,00,00,00,00,00,00,00,00,00,3f,42,0f,00

The seventh value is 01, as near as I can tell, that means Hibernate is ON.

Back up the key and then delete Heuristics.
-----

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Power
[[So it would follow that the setting is contained in the Heuristics key
looking at my system i would hazard a guess its the 7th byte in the key
which is 01 for enabled and 00 for disabled.
HTH (not tested as i cant reboot at present i am busy with something) ]]

[[but just for the heck of it I checked for registry changes when
Hibernation is enabled using RegShot. steven is right in saying that the 7th
byte in the key he mentions is changed from 00 to 01. The same change is
made in a similar key except it's CurrentControlSet002 -- the values are the
same as in the first key. The values are changed in five other keys (four of
which contain "Enum" in their addresses), and two values are added. ]]
http://www.theeldergeek.com/forum/index.php?act=Print&client=printer&f=2&t=8289

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Power
[[The Heuristics value only exists when the Hibernate feature is enabled.]]
HOW TO: How to Manually Enable the Hibernate Feature During an Unattended
Install of Windows 2000
http://support.microsoft.com/default.aspx?scid=kb;en-us;293399

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
DevilsPGD said:
In message <[email protected]> "Wesley Vogel"
If you have XP SP2, this will turn hibernation off.

Open a Command Prompt...
Start | Run | Type: cmd | Click OK |
Type or paste:

powercfg /hibernate off

Hit the Enter key.

Powercfg
http://www.microsoft.com/technet/pr...elp/0d90be55-cc9d-423d-8e49-8a79a4d6bcd4.mspx

I tried that too actually (Sorry, I should have mentioned -- I did do my
research before posting)

c:\utils>powercfg /hibernate off
System does not support hibernation

HKEY_CURRENT_USER\Control Panel\PowerCfg
and
HKEY_USERS\.DEFAULT\Control Panel\PowerCfg

That just seems to contain the power profiles, not the standby/hibernate
options.

I did find one article discussing how to enable hibernation, but it just
involes copying registry entries AND a hiberfil.sys from an identical
system and doesn't discuss how to set the options manually. The keys
which were involved were at
KHLM\SYSTEM\CurrentControlSet\Control\Session Manager\Power

I've currently got the following, none of which is especially clear as
to which one controls hibernation.

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session
Manager\Power]
"AcProcessorPolicy"=hex:01,00,00,00,00,00,00,00,00,00,00,00,03,00,00,00,a0,8
6,\01,00,a0,86,01,00,a0,86,01,00,28,32,00,00,02,00,00,00,a0,86,01,00,a0,86,01,\00,a0,86,01,00,28,3c,00,00,03,00,00,00,a0,86,01,00,a0,86,01,00,a0,86,01,00,\
28,50,00,00,01,00,00,00
"DcProcessorPolicy"=hex:01,00,00,00,03,00,00,00,00,00,00,00,03,00,00,00,a0,8
6,\01,00,a0,86,01,00,a0,86,01,00,0a,14,00,00,02,00,00,00,a0,86,01,00,a0,86,01,\00,a0,86,01,00,14,28,00,00,03,00,00,00,a0,86,01,00,a0,86,01,00,a0,86,01,00,\
14,46,00,00,01,00,00,00
"AcPolicy"=hex:01,00,00,00,00,00,00,00,03,00,00,00,10,00,00,00,00,00,00,00,0
3,\00,00,00,08,00,00,00,00,00,00,00,01,00,00,00,00,00,00,80,01,00,00,00,20,d2,\98,87,00,00,00,00,01,00,00,00,00,00,00,00,00,00,00,00,32,00,58,48,02,00,00,\00,02,00,00,00,02,00,00,00,01,00,00,00,b0,4f,16,00,00,00,00,00,03,00,00,00,\01,00,00,00,03,00,00,00,00,00,00,00,04,00,00,c0,01,00,00,00,05,00,00,00,01,\00,00,00,0a,00,00,00,00,00,00,00,03,00,00,00,01,00,01,00,01,00,00,00,00,00,\00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,02,00,00,00,00,00,00,00,00,\00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,03,00,00,00,00,00,84,03,00,00,\71,fb,90,7c,e8,f1,06,00,fe,e1,90,7c,a8,f2,06,00,84,03,00,00,00,64,64,00,00,\
00,00,00,04,00,00,c0,00,00,00,00
"DcPolicy"=hex:01,00,00,00,00,00,00,00,03,00,00,00,10,00,00,00,00,00,00,00,0
3,\00,00,00,08,00,00,00,00,00,00,00,01,00,00,00,00,00,00,80,01,00,00,00,e0,38,\00,00,03,00,00,00,00,00,00,00,00,00,00,00,84,03,00,00,32,03,2d,00,02,00,00,\00,02,00,00,00,02,00,00,00,01,00,00,00,35,00,32,00,00,00,00,00,03,00,00,00,\01,00,00,00,03,00,00,00,00,00,00,00,04,00,00,c0,01,00,00,00,05,00,00,00,01,\00,00,00,0a,00,00,00,00,00,00,00,03,00,00,00,01,00,01,00,01,00,00,00,00,00,\00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,02,00,00,00,00,00,00,00,00,\00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,03,00,00,00,00,00,2c,01,00,00,\01,eb,56,80,48,0e,00,e1,6c,0b,00,00,20,d2,98,87,58,02,00,00,00,64,64,00,00,\
00,00,00,04,00,00,c0,00,00,00,00
"Heuristics"=hex:05,00,00,00,00,01,01,00,00,00,00,00,00,00,00,00,3f,42,0f,00
"HiberElapsedTime"=dword:00001532
"HiberIoTime"=dword:0000066d
"HiberCopyTime"=dword:00000071
"HiberCopyBytes"=dword:1989e860
"HiberPagesWritten"=dword:00006cd6
"HiberPagesProcessed"=dword:00018ebc
"HiberDumpCount"=dword:0000155c
"HiberFileRuns"=dword:00000003



--
Our enemies are innovative and resourceful...They never
stop thinking about new ways to harm our country and
our people, and neither do we.
-- George W. Bush 08/05/2004
 
Ad

Advertisements

D

DevilsPGD

In message <#[email protected]> "Wesley Vogel"
No SP2, huh? Me either.

Yeah, I'm running SP2...
Your key...
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Power
"Heuristics"=hex:05,00,00,00,00,01,01,00,00,00,00,00,00,00,00,00,3f,42,0f,00

The seventh value is 01, as near as I can tell, that means Hibernate is ON.

Back up the key and then delete Heuristics.

I'll give it a shot, thanks!
 
W

Wesley Vogel

No powercfg.exe?

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
 
W

Wesley Vogel

Have you rebooted to see if hibernate is off and hiberfil.sys is still gone?

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
 
D

DevilsPGD

In message <[email protected]gp13.phx.gbl> "Wesley Vogel"
No powercfg.exe?

I tried powercfg...

c:\>powercfg /hibernate off
System does not support hibernation

It seems to check whether or not hibernation is supported before trying
to enable/disable it, similar to the GUI.
 
Ad

Advertisements

W

Wesley Vogel

Glad to hear it. Keep having fun. :)

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
 
W

Wesley Vogel

That's good to know.

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
 
D

DevilsPGD

In message <[email protected]> "Wesley Vogel"
That's good to know.

btw, I was able to confirm it's my new Promise SATA card which is
causing the problem since a friend purchased one and his
Standby+Hibernate options disappeared at the same time.

Lucky me, it was the one device I could not disable for testing since
I'm now booting from a drive on that card (and I'm much too lazy to take
the system apart again) :)

Thanks again for all your assistance.
 
Ad

Advertisements

W

Wesley Vogel

Well, keep having fun.

I prefer creamed alligator on toast. ;-) Tastes like, you guessed it.

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
 
Ad

Advertisements


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top