How to disable sleep mode in Windows 7? Walkthrough for disabling hibernation in Windows 7

Hibernation puts the computer in a state of economical energy consumption and allows you to quickly restore work. This mode can be activated both at the request of the user, and automatically. The latter occurs if no actions are performed on the computer for some time.

After the PC (personal computer) is put to sleep, the control system will turn off the output of the image on the monitor, and the operation of the hard drives and peripheral devices will be suspended. These actions can reduce energy consumption while the computer is not used by the user or the system.

Power Saver Options for Windows 7

In Windows 7, the following energy-saving options are available: this is hibernation, hibernation, and a mixed mode option.

  • How to disable sleep mode in Windows 7
    Sleeping mode. In this option, before entering the computer (laptop) into power saving mode, all open programs, windows, documents and other parameters are stored in its memory. Upon transition to an operational state, all stored data is restored by the system automatically.
  • Hibernation. Unlike sleep mode, in this version all the programs, parameters and documents involved are not stored in memory, but on the hard disk itself. Then the computer shuts down. Most often, hibernation is used on laptops, because this mode consumes little power, which significantly saves battery power.
  • Hybrid, or mixed, sleep mode. When using this option, all working documents and open programs are stored simultaneously on the hard drive and in the computer's memory. After which it is switched to power saving mode. In the event of a power failure, all saved data will be restored from the hard drive.

In all of the listed options for energy saving Windows 7, disabling sleep mode is simple and quick by pressing any key on the keyboard.

How to disable sleep mode in Windows 7 - the main ways

Of course, the mode of economical energy consumption is a convenient thing, but there are cases when it is simply necessary to remove the sleep mode of Windows 7. So, in this mode, you will not be able to connect remotely to the computer. And sometimes it’s not at all convenient to work when your car “falls asleep” at the first opportunity, especially if it is not a laptop, and you do not need to save battery power.

how to disable sleep mode in windows 7

Therefore, very often a problem arises for users: how to disable sleep mode in Windows 7. This dilemma can be solved in the following ways:

  • disable hibernation using the control panel;
  • use of the command line;
  • Modify HiberFileSizePercent and HibernateEnabled file entries in the registry.

Consider in more detail all of these methods.

Disabling hibernation using the control panel

Disabling Windows 7 hibernation by disabling it using the control panel is the easiest and most understandable way that does not require deep knowledge. This option is recommended for beginners or inexperienced users.

Consider turning off hibernation step by step.

  1. Open the "Start".
  2. Go to the "Control Panel".
  3. Next, open the "Power" if you are viewing large icons. Otherwise, you must enter the "System and Security". Then you search and open the "Power Options". You will be presented with a choice of power plan.
    sleep prohibition in windjws 7
  4. The next step is to open the "Power Plan Settings" where you have a circle.
    how to disable sleep mode in windows 7
  5. In the window that opens, it will be necessary to change the parameters that are responsible for the computer entering sleep mode from the battery and from the network. In the appropriate windows, you will need to set the value of the parameter "Never".
  6. After which it will be necessary to save the changes.
    remove windows 7 sleep mode

Additionally, you can turn off the sleep function by selecting "Change advanced power settings." After that we find the item "Sleep" and set the value 0 in the appropriate fields. In order for the changes to take effect, click "Apply" and "OK."

And what is this amazing hiberfil.sys?

First, we’ll figure out why a file called hiberfil.sys is needed, and only then we’ll look at how to disable sleep mode in Windows 7.

During the transition of the computer to hibernation, all data about running programs, open documents and other information is stored on the hard drive by writing it to the hiberfil.sys file. After the system wakes up from sleep mode, all data is restored to the computer’s memory at the time of “falling asleep”.

Hibernation mode saves battery power on the laptop. But on stationary computers, this mode is rarely used, while hiberfil.sys occupies a significant amount of hard disk, because its size can amount to several gigabytes. However, when you turn off sleep mode using the control panel, a file named hiberfil.sys will be automatically created by the system again and again.

How can I turn off Windows 7 hibernation using the command line

To completely disable hibernation, open the cmd.exe console.

  1. In the "Start" menu in the search, type cmd.exe and click search.
  2. The cmd.exe console opens.
  3. We start it with Administrator rights. To do this, move the cursor to cmd and click on the right mouse button. In the expanded menu, you must select the start from the administrator.
  4. At the command prompt, type powercfg.exe -h off. After which hiberfil.sys will be deleted automatically.

If you need to re-enable hibernation, you need to open a dialog box with a command line (repeat steps 1 to 3). In the window that opens, write powercfg.exe -h on to the command line. Then, in the settings of the power plans, set the necessary values.

Modifying registry entries for HiberFileSizePercent and HibernateEnabled in the registry

Now, let's see how to disable hibernation in Windows 7 using the registry by changing the file entries HiberFileSizePercent and HibernateEnabled. To do this, you must:

  1. The registry editor starts. To do this, simultaneously press win and R.
  2. At the command prompt, regedit is entered.
  3. Next, you need to navigate to the following registry branch - HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Control \ Power
  4. We change the parameters of the HiberFileSizePercent file by clicking on the right mouse button and selecting the "Change" item, where the value 0 should be specified in the field that opens.
  5. Change the settings of the HibernateEnabled file in the same way.
  6. You must close the registry editor window and restart the computer.

After all the above, even a novice user can turn off hibernation in Windows 7.

Source: https://habr.com/ru/post/C46613/


All Articles