Jump to content

Windows 7 x64 recently cannot hibernate


Grantcr

Recommended Posts

Hi all,

 

I have recently ran into a problem where my computer will not stay in sleep mode.  This is something that used to work, but has stopped working recently.

 

What has changed?

I have been testing out new backup solutions:

  • Paragon Hard Disk Manager Suite 15.
  • Acronis True Image 2015.

What have I tried

The following steps failed to allow the computer to sleep properly (S3 I believe) monitors switch off, but PC doesn't.

  • Uninstalled Paragon Hard Disk Manager, and uninstalled and reinstalled Acronis True Image 2015 (with and without the cleaner tool for Acronis).
  • Uninstalled and reinstalled Kaspersky Internet Security 2015.
  • Uninstalled and clean installed the latest Nvidia Geforce drivers: 347.52-desktop-win8-win7-winvista-64bit-international-whql.exe.
  • Closed down all desktop sidebar gadgets.
  • Turned off "Allow this device to wake the computer" on the mouse.
  • Unplugged every USB device connected to the computer (front and back) apart from the mouse.  I clicked sleep on the start menu with the mouse, and unplugged the mouse straight after.
  • Tried to turn off "Allow this device to wake the computer" on the Network adapter (there is only one listed, Atheros), but couldn't because it is greyed out.
  • Killed Samsung Magician and stopped it from running on Windows startup.
  • sfc /scannow came back with no problems.
  • Tried changing the Bios power management from auto to S3, I am using an Asus P5Q motherboard.

I ran the following powercfg commands with output:

powercfg -lastwakeWake History Count - 0.
powercfg -requestsDISPLAY:None.SYSTEM:None.AWAYMODE:None.
powercfg -devicequery wake_armedMicrosoft USB IntelliMouse Explorer 3.0 (Mouse and Keyboard Center)Microsoft USB Natural Ergonomic Keyboard 4000 (Mouse and Keyboard Center) (001)

I have also checked in the event viewer for Power-Troubleshooter messages, but they are almost all messages that I expect, either USB hub (i.e. mouse / keyboard) or power button.

 

I then ran the Windows Performance Toolkit with the commands given in the sticky post here.  The command was xbootmgr -trace hibernate -traceFlags BASE+CSWITCH+DRIVERS+POWER -resultPath C:\TEMP.

 

I have attached the summary_boot.xml and the summary_hibernation.xml file.  The ETL file is too big to upload here.

 

I cannot seem to attach the xbootmgr.log file ("You aren't permitted to upload this kind of file") so I will paste it in here as text:

[2015/02/23-15:11:05.259] Performance Analyzer Power Transition Performance Testing Utility (Microsoft® Windows® Performance Analyzer) Version 6.3.9600 - © 2013 Microsoft Corporation. All rights reserved.[2015/02/23-15:11:05.261] Detected inactive Win7 physical (ReadyBoot) prefetcher (the SysMain service start type is 4).[2015/02/23-15:11:05.280] Starting trace...[2015/02/23-15:11:05.776] Enabled user-mode logging to 'C:\TEMP\hibernate_BASE+CSWITCH+DRIVERS+POWER_1_um_premerge.etl' for flags '0063715b-eeda-4007-9429-ad526f62696e+06184c97-5201-480e-92af-3a3626c5b140+dbe9b383-7cf3-4331-91cc-a3cb16a3b538+9c205a39-1250-487d-abd7-e831c6290539:2093088:0+5322d61a-9efa-4bc3-a3f9-14be95c144f8+43e63da5-41d1-4fbf-aded-1bbed98fdd1d+de7b24ea-73c8-4a09-985d-5bdadcfa9017+aea1b4fa-97d1-45f2-a64c-4d69fffd92c9+a68ca8b7-004f-d7b6-a698-07e2de0f1f5d+030f2f57-abd0-4427-bcf1-3a3587d7dc7d+49c2c27c-fe2d-40bf-8c4e-c3fb518037e7+d781ca11-61c0-4387-b83d-af52d3d2dd6a+6ad52b32-d609-4be9-ae07-ce8dae937e39:0:4+d8975f88-7ddb-4ed0-91bf-3adf48c48e0c:0:4+83ed54f0-4d48-4e45-b16e-726ffd1fa4af+8c416c79-d49b-4f01-a467-e56d3aa8234c:4194304:0+30336ed4-e327-447c-9de0-51b652c86108+63d2bb1d-e39a-41b8-9a3d-52dd06677588+1fd7c1d2-d037-4620-8d29-b2c7e5fcc13a+e23b33b0-c8c9-472c-a5f9-f2bdfea0f156+4ee76bd8-3cf4-44a0-a0ac-3937643e37a3+67fe2216-727a-40cb-94b2-c02211edb34a+e6307a09-292c-497e-aad6-498f68e2b619+2a274310-42d5-4019-b816-e4b8c7abe95c:96:0+a6ad76e3-867a-4635-91b3-4904ba6374d7:64:0+15ca44ff-4d7a-4baa-bba5-0998955e531e+206f6dea-d3c5-4d10-bc72-989f03c8b84b+e8316a2d-0d94-4f52-85dd-1e15b66c5891+331c3b3a-2005-44c2-ac5e-77220c37d6b4+9d55b53d-449b-4824-a637-24f9d69aa02f+0a002690-3839-4e3a-b3b6-96d8df868d99+8e92deef-5e17-413b-b927-59b2f06a3cfc+751ef305-6c6e-4fed-b847-02ef79d26aef+cfeb0608-330e-4410-b00d-56d8da9986e6'.[2015/02/23-15:11:05.776] Enabled regular logging to 'C:\TEMP\hibernate_BASE+CSWITCH+DRIVERS+POWER_1_km_premerge.etl'[2015/02/23-15:11:05.777] Changing power state...[2015/02/23-15:11:08.048] SetSystemPowerState failed with 0x00000002.[2015/02/23-15:11:08.059] Stopping trace...[2015/02/23-15:11:08.064] Stopping trace...[2015/02/23-15:11:08.910] Stopped kernel logger.[2015/02/23-15:11:09.068] Stopped user-mode logger.[2015/02/23-15:11:09.075] The trace you are capturing "C:\TEMP\hibernate_BASE+CSWITCH+DRIVERS+POWER_1.etl" may contain personally identifiable information, including but not necessarily limited to paths to files accessed, paths to registry accessed and process names. Exact information depends on the events that were logged. Please be aware of this when sharing out this trace with other people.[2015/02/23-15:11:25.614] Merged ETL file to 'C:\TEMP\hibernate_BASE+CSWITCH+DRIVERS+POWER_1.etl'[2015/02/23-15:11:25.621] Couldn't enter power state.

The strange thing was the Performance Toolkit could not successfully call SetSystemPowerState.  I got a dialog box back showing me the text highlighted in red.  I haven't got around to writing my own program to test what happens when I call that system call.

 

What worked (kind of)

Through some more digging I found that either running powercfg -h off or by changing the power settings to disable hybrid sleep would allow the computer to sleep correctly.  I then tried to hibernate the computer from the start menu, but I get the same result.  Instant wake up.  Switching on powercfg -h on or enabling hybrid sleep would bring back the problem instantly.  I have rebooted inbetween running these commands and without and it has made no difference.

 

I have 670GB free out of 1TB on my SSD drive so there is plenty of space for the hiberfil.sys file and it is currently sitting at 12.5GB

 

What next?

It seems that the Windows system call SetSystemPowerState is failing, and I don't know why, I did try searching in google for the error message in the xbootmgr.log file, but I didn't see anything useful

 

Also if someone wants to analyse my etl file I would be grateful too.

 

 

Anymore ideas I would be glad to hear them.

 

Thanks

Grant

summary_boot.xml

summary_hibernation.xml

Edited by Grantcr
Link to comment
Share on other sites


I have attached the summary_boot.xml and the summary_hibernation.xml file.  The ETL file is too big to upload here.

 

I cannot seem to attach the xbootmgr.log file ("You aren't permitted to upload this kind of file") ...

Instead of attaching any file, in any forum, not just MSFN, it is usually better and more reliable to first compress the files with something like 7-Zip, then upload the files to the file hosting service of your choice, there are many free and anonymous ones, then include a link to the files in your post using the 'Link' button.

 

Cheers and Regards

Link to comment
Share on other sites

@bphlpt, I have uploaded a zip file now

 

If anyone wants to take a look at it you can find it here: http://ul.to/nyj2lthu

 

The following files are included:

hibernate_BASE+CSWITCH+DRIVERS+POWER_1.etl

summary_boot.xml

summary_hibernation.xml

xbootmgr.log

 

@Tripredacus, I do have another disk, but it looks like it is not possible to move the hibernation file, see https://technet.microsoft.com/en-us/magazine/2007.11.windowsconfidential.aspx for more details.

Edited by Grantcr
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...