Troubleshooting Windows Vista Sleep and Hibernate
Microsoft Windows Vista Sleep and Hibernate
What is the difference between Vista's sleep and hibernate? Sleep awakens quicker than hibernate. Also sleep stores the information in RAM, thus complete loss of power means loss of unsaved data. Hibernate on the other hand, saves the contents of memory into a physical file called hiberfil.sys, thus you would not lose unsaved data in a power outage.
One more point, Vista has a setting called 'Hybrid sleep', which combines sleep and hibernate as described above.
Topics for Vista Hibernate
Getting Started, Finding Your Power Settings
Two initial questions:
1) 'What do you want to achieve with power management?'
2) 'Where can you configure the settings?' Four possible answers:
Plan D (Only if you have battery!)
Plan X (For Laptops only)
Desktops and laptops
Vista desktops and laptops have significantly different power management needs, options and configurations. Just remember that battery is the keyword. By configuring power management, you can have completely different settings depending if the laptop is plugged into the mains, or running on battery. Thanks to sensors, Vista can detect a mains supply and also a battery. If there is no mains electricity then Vista instantly connects to the battery, and then applies your battery power management settings.
As you examine the Power Options, decide what Vista should do when you press the power button, also, what do you expect to happen when you close the laptop lid? Investigate each link on the task list show by the screenshot on the right.
If I work non-stop with the Aero graphics at maximum brightness, my Sony Vaio's battery will not last much more than an hour. Therefore, anything that I can do to conserve battery power, will increase the time I can use my laptop away from the mains electricity. As with all task's, micro-management is counter-productive, in the case of the laptop you have to balance the hesitations from coming out of 'Sleep', with the battery wastage when you switch to a non-computing task, yet leave the laptop on full power.
Vista's Sleep saves data to memory and then switches to minimal power mode. The disadvantage is a 5 second delay while Vista manages the switch back to normal power mode. In the event of a power failure you would lose any unsaved data which is stored in RAM. You may also have to re-enter your password to resume after sleep, however that is another configurable setting. See 'Require a password on wakeup' from the task list menu.
Encouraging computers to sleep when they're not in use is a great idea - until you are away from your desk and need a file on that remote sleeping machine!
WOL also has business uses for example, rousing machines so that they can have update patches applied. My real reason for recommending you download this free tool is because it's so much fun sending those 'Magic Packets'. Give WOL a try - it's free.
Vista's Hibernation stores a user's unsaved data, including information about open programs, to a special file called hiberfil.sys. This means that your data is safe even if you switch of the mains and take out the battery. When the machine restarts, it loads the data stored in hiberfil.sys and thus returns the machine to the precise state when you set it to hibernate. Incidentally, hiberfil.sys is a hidden file, which is always found in the root of the c: drive. To see the file, you may need to adjust your Explorer's settings. Press the Alt key, then click on the View tab and now scroll down to Hidden files and folders. Select the radio button next to Show hidden files and folders.
If you figure out the role of Microsoft's hiberfil.sys, then you understand why Hibernation sometimes is not an option. For example, there may be insufficient disk space on the c: drive to create this huge file, or some older Bios software cannot manage suspend to disk or suspend to RAM. You if you wish to use the Hibernate option, be careful that a Disk Cleanup operation does not delete hiberfil.sys, and thus at least temporarily, remove the option to hibernate. (Solution issue the command line instruction: powercfg -h on)
Hybrids are always more vigorous than their parents. In the case of Hybrid Sleep, it gives you the speed of Sleep, combined with the resilience of Hibernation. If all goes well then your machine comes out of Hybrid Sleep in less than 5 seconds, if all goes badly, then it takes relatively ages for the desktop to return, but at least you can recover your unsaved data from hiberfil.sys.
If you were of a mind, you could choose a different combination of Power Settings everyday of the year, and never repeat the same setting twice. For this reason, Vista groups settings into Plans for example, Power Saver, High Performance, or Balanced. The advantaged of these pre-configured Plans is that you get consistent and compatible settings for: 'Turn off the Display', 'Put the Computer to Sleep' and 'Adjust Display Brightness'.
SolarWinds' Orion performance monitor will help you discover what's happening on your network. This utility will also guide you through troubleshooting; the dashboard will indicate whether the root cause is a broken link, faulty equipment or resource overload.
What I like best is the way NPM suggests solutions to network problems. Its also has the ability to monitor the health of individual VMware virtual machines. If you are interested in troubleshooting, and creating network maps, then I recommend that you try NPM now.
Let us face facts, Sleep and Hibernate will never be 100% reliable. For any given machine, they either work 99.9% of the time, or their failure rate is so high you have to abandon power management. In my experience, Sleep works much better on laptops than desktops.
All troubleshooting should start by inspecting Microsoft's Event Logs. In the case of Vista, begin with a review of Critical Errors in the last 24 hours. Follow up by filtering the System Log for 'Kernel-Power' entries. Interesting items would include 'The last sleep transition was unsuccessful', or 'The system is entering sleep'.
I am willing to bet that 60% of all Sleep and Hibernate problems are due to inappropriate settings in the Mobility Center (Laptop) or the Power Options (Control Panel, Laptop and Desktop). For example, no Hibernate on the Shutdown menu, results from 'Allow hybrid sleep' being set to 'on'. You could start this line of troubleshooting by pressing the Windows key +x on a laptop, or Start Search, powercfg.cpl on a desktop. See screen shot of Allow hybrid sleep
Provided the computer has the 'Certified for Windows Vista' or 'Premium' Logo, then all the power management features are guaranteed to work. It's just up to you to configure Sleep or Hybrid Sleep, or else complain to the supplier / manufacturer.
To check the Bios you need to interrupt the initial boot phase. For this inspection, seek a special key, it maybe
F2, or maybe spacebar, it could even be the delete key. If all else fails read the boot screen! Once you have intercepted the bios boot, just carefully examine any options which could enable / disable Sleep. What you are looking for is settings
1) Navigate to the 'Power Options' (Start Search
The situation is there is no Hibernate option on the Vista Shut Down menu. There could be several reasons for this absence.
1) The least alarming reason for this absence is that 'Allow hybrid sleep' is set to: On. (See screenshot).
The point is that by design, hybrid incorporates Sleep and Hibernate, thus you only see Sleep on the menu. Also, by default, desktops are set to 'Allow hybrid sleep :on'. To troubleshooting this setting start at Power Options.
2) Does Microsoft Vista have enough free disk space for hiberfil.sys? My machine needed 2GB, the size of my RAM.
3) Another cause of the disappearing Hibernate option is an over-active Disk Cleanup
program. If Hibernate does not appear on the menu, then open a command prompt and check with:
Next turn on Hibernate with:
If this was your problem, for future reference you could remove the tick next to 'Hibernation File Cleaner' in the Disk Cleanup settings.
Here is an utility where you can review firewall settings such as access control lists (ACL), or troubleshoot problems with network address translation (NAT).
Other reasons to download this SolarWinds Firewall Browser include managing requests to change your firewall settings, testing firewall rules before you go live, and querying settings with the browser's powerful search options.
Guy recommends that you download a copy of the SolarWinds free Firewall Browser.
Forget Standby. Vista replaces Standby with Sleep.
All manner of software and hardware can trigger Vista to wakeup from Sleep or Hibernate. Thus the first question is the old chestnut: 'Is this problem Hardware or Software?'
USB memory sticks, and also USB mice are common culprits for prematurely waking up the computer. In the case of accidental mouse activation, consider laying the mouse on its back.
To troubleshoot the problem visit the Device Manager
Hardware Example: The Network adapter --> Advanced menu
Plan A) Blame the Task Scheduler! Start Search, Task Scheduler. (Else look in Administrative Tools)
Plan B) Blame a virus checker.
Try a completely different strategy, investigate recording what is happening with Performance, however, this is a black art.
Microsoft has released at least 12 hotfixes to solve problems caused when Vista resumes from sleep or hibernate. Symptoms include devices hanging, also a USB port maybe involved, worse still, you could also see one of these STOP messages:
Solution, research your specific symptoms and then download the appropriate hotfix from Microsoft's site.
That Vista Hibernate or Vista Sleep
will work, is an act of faith. It is taking a long time for Microsoft to get these power setting working reliably. I can vouch for numerous false starts caused by incompatible Bios, flaky procedures,
deleting hiberfil.sys. This is the cycle that I have been though:
Yet, despite these tribulations, I am convinced that one day it will be how we use all computers in Sleep mode.
It is self evident that power management is more important on a laptop than a desktop. What is less self evident is that laptops have different setting an options, for example if you close the lid does the machine hibernate or sleep?
If you like this page then please share it with your friends
Windows Vista Troubleshooting: