Friday, June 27, 2008

Re-enabling hibernation in Windows Vista after disk cleanup

Windows Vista Cleanup tool, which enables you to clear your disk of unnecessary files, one of the main reason why we run out of space on C:\ partition.

After having cleanup the files I cannot see the Hibernate option in Power Options anymore.This problem occurs when the Disk Cleanup Tool disables the hibernation file. The hibernation file must be enabled to access the hybrid sleep feature and the hibernation feature in Windows Vista. When the hibernation file is disabled, and the hybrid sleep feature is enabled, a backup of open programs and open files will not be saved to the disk when you use the sleep feature in Windows Vista. Additionally, if the computer loses power while the Windows is in sleep mode, open programs and open files will not be recovered, and any unsaved work will be lost.
In order to get the Hibernate option back in the Power Options mode you should take following steps:

1. Click Start , click All Programs, and then click Accessories.
2. Right-click Command Prompt, click Run as administrator, type powercfg -h on, and then press ENTER.

The command line tool powercfg.exe enables users to control the power settings on the system. An overview of all parameters that can be passed to the cool can be found by running the command "C:\Windows\system32>powercfg /?" from the command prompt.

For the hibernation we need the following:
-HIBERNATE, -H Enables-Disables the hibernate feature. Hibernate timeout is notsupported on all systems.
Usage: POWERCFG -H

After running the command above with the hibernation parameter - powercfg -h - the problem is solved and I can again hibernate my Windows Vista system. This applies to all Windows Vista editions.

0 comments: