How to remove hibernation. Disabling sleep mode on a laptop

Buying a computer for your home is a whole event! From this moment on, a person’s entire life is conventionally divided into two periods - “Before” and “After”. A novice user has to master completely new areas: learn how to disable hibernation, how to work with the Start button menu, how to launch applications and solve many other related issues. If you can quite successfully figure out some of the main aspects of the work on your own, others require reading relevant literature and searching for answers on websites and forums. One of these “slippery” questions is about how to disable hibernation.

Frankly speaking, the author of this article, being a user with many years of experience, believed that since the basic principles of operating systems in lately change very insignificantly, then nothing can arise in principle: knowing how to ride passenger car, you can safely get behind the wheel of a truck. It turned out that this is not entirely true. Developers from Microsoft, starting with the infamous Vista, have added a hibernation mechanism to their operating systems. It differs radically from classic falling asleep.

When activated, almost all hardware components of the computer are disabled: hard drive stops, the video adapter stops, the processor goes into starvation mode, consuming minimum required etc. Only the memory controller supports the circulation of current through the circuits in the modules, ensuring the safety of the data recorded in the cells. If components can be compared to sleeping soldiers, then RAM is a duty worker who does not sleep a wink. Once you press the power button, you can almost instantly continue working from the same place where “Sleep” was activated. Even the famous SSD drives are slower in this regard (by at least, Bye). The disadvantage of this mode is the computer's dependence on external source nutrition. If you use sleep, you cannot pull the plug of the system unit from the socket, because the memory controller will lose the ability to support current (where to get it from?). In laptops it is powered by a battery. If Windows 7 does not work, then the procedure for fixing the problem is as follows:

Needs to be enabled in BIOS this mode(S1-S4);

You need to install the driver for the chipset;

The use of sleep must be enabled in the power manager settings.

Hibernation is a natural evolutionary development of an idea. The difference from sleep is that the data RAM are written to the hard drive in the hiberfil.sys file. Because of this, restarting is slower than from sleep mode, but the computer's power can be turned off completely.

It is worth noting that the user can disable it at any time at his own request. This is also possible in Vista and G8. In other words, Microsoft is not forcing everyone to use this mode. But why, in this case, does the question arise about how to disable hibernation? There are several reasons for this:

The size of a hiberfil file is equal to the amount of memory, in other words, measured in gigabytes. It's irrational to lose disk space, especially if you do not use this mode;

You cannot simply delete the file - it is a system file and therefore blocked;

After disabling all sleep and hibernation related items in the power manager settings, this huge file will not disappear.

It's no wonder people ask about how to disable hibernation. After all, there is no “turn off” button. The Win+R combination comes to the rescue. Click this combination and run as administrator cmd command, in the window we write powercfg -h off and press Enter. That's it. After these actions, the file disappears.

Hi all! My topic of the day today is hibernation, my head has already been occupied with it all day. Therefore, I decided to write an article about it before the knowledge gained today is lost.

For detailed information about hibernation, and what it actually is, read our dictionary -.

This mode is enabled in Windows 10 by default, and it is not necessary to disable it if you do not use it. However, when hibernation is enabled, it reserves hard drive space for the Hiberfil.sys file. 75% of the RAM installed on the computer is allocated for it. If you have 8 GB of RAM, then the hiberfil.sys file will take 6 GB on your hard drive, and if you have 16 GB of RAM, then it will take 12 GB.

Thus, the main reason to disable hibernation on a computer is when you really need these extra gigabytes hard drive memory back. If you disable hibernation, you won't be able to use it (well, obviously), but you also won't be able to use it, which combines hibernation and reduced boot time.

How to disable hibernation in Windows 10

We will do this using the command line. You need to open it in administrator mode. To do this, click right click Click on the Start menu icon and select “Command Prompt (Admin)” from the pop-up menu.

When the User Account Control window appears, select “Yes” to continue.

In the Command Prompt window, enter:

powercfg.exe /hibernate off

And press Enter. Close the command prompt. After this, space on your hard drive will be freed up (usually on drive C, where Windows is installed).

How to enable hibernation in Windows 10

To turn hibernation back on, open a command prompt and type:

powercfg.exe /hibernate on

Then press Enter.

How to add a hibernation button to the shutdown menu

And this is for those who want to start using this mode.

Open Power Options by right-clicking on the Start menu icon and selecting the appropriate item.

In the window that opens, click on “Power button actions” in the left column of links.

The settings window will open. At the bottom of the window, check the box next to “Hibernation Mode” and click “Save Changes.”

While performing a task on your computer, you often need to take a break for a few minutes, hours, or even days. Moreover, after resuming, you want to start working exactly from the moment at which it was interrupted. Just for such situations in Windows 7/10 there are at least two modes - and “Hibernation”. In this article, we will figure out what the difference is between them, and also try to enable and disable hibernation.

What is “Hibernation” and how is it different from “Sleep”

So, hibernation is energy saving mode computer or laptop, in which all data about the state of the OS and programs is copied from RAM to special file hiberfil.sys on your hard drive. The file is located in the root system disk and is hidden by default. We'll talk more about hiberfil.sys later, but now let's return to the features of hibernation. The computer can be switched to this mode using the Start menu by selecting the corresponding item in the list possible options completion of work.

Hibernation can also be set as the mode into which the computer is switched when you press the power button (Control Panel - Power Options - Power button action).

After entering the “Hibernation” state, the computer turns off completely and does not consume electricity, i.e. it can be completely disconnected from the power source. In this case, before shutting down, a exact copy RAM data at the time the computer was turned off. Essentially, this is an image of the system - its state with all open applications and tabs. When you turn on the computer in the usual way using the button on system unit information from the disk is loaded back into RAM, and after loading you see the desktop with all running programs in the same form as he was in when he went into hibernation mode. Comfortable? Certainly.

The fundamental difference between Sleep and Hibernation is that the computer continues to consume power when it enters Sleep mode. Voltage is supplied to the RAM, processor and a number of other components. At the same time, the hard drive, cooling systems and monitor are de-energized and do not consume electricity, that is, in general, the computer operates in a significantly more economical mode. All information about running applications and their state continues to be stored in RAM, as we remember, still receiving power. Accordingly, when you start a computer or laptop, the data is read from memory and, just as in the case of hibernation, we can continue working from where we left off without having to open everything again.

Since access to RAM is much faster than to hard drive, then exiting the “Sleep” mode fits into a much shorter time frame than exiting the “Hibernation” mode. For example, if in the first case it takes up to 10 seconds to load, then in the second – up to 30-60, or even more, depending on the volume used memory. This is another, albeit not so significant, difference between Sleep and Hibernation.

How to enable or disable hibernation in Windows 7/10

Hibernation mode is primarily relevant for laptops and other portable devices which are powered by battery, prone to rapid discharge. For stationary computers that do not experience power shortages, the “Sleep” mode is quite sufficient. As a rule, hibernation in Windows 7/10 is disabled by default, but if it is still active and visible in the Start menu, you can disable it.

The easiest way to disable hibernation is to use the command line. We launch it through the Start menu with administrator rights and enter the command in the window powercfg -h off. Press Enter. After completing these steps, not only will the corresponding item in the Start menu disappear, but the hiberfil.sys file will also be deleted.

The mode is enabled using the powercfg -h on command, however, in order for the required item to appear in the Start menu, you will need to carry out some more manipulations. We'll tell you about them later.

You can also disable hibernation through the Registry Editor. To enter it, press the Win+R key combination and enter regedit. Next, press the OK or Enter button on the keyboard. Let's go to the address and find a parameter named HibernateEnabled.

Double-click on it and assign the value 0. Accordingly, to enable hibernation, instead of 0, enter 1.

Adding a Hibernate option to the Start menu

If you enabled hibernation using one of the methods above (command line or registry), but it does not appear in the Shutdown list, you need to do the following. Go to the Panel Windows management, and then to the “Power Options” section. On the left, click on the item “Action of the power button”. Next, click on the link “Change settings that are currently unavailable.”

In the list of shutdown options, check the box next to “Hibernate Mode” and click “Save Changes.”

We check whether the line “Hibernation” appears in “Start”.

A little about the hiberfil.sys file

When entering hibernation mode, all information from RAM is written to a file hiberfil.sys. It is located at the root of the drive on which the operating system is installed (often drive C). However this system file, which means it is hidden by default. To make it visible, go to Control Panel – Folder Options. On the “View” tab, uncheck the “Hide protected system files (recommended)” option, and just below set the switch to the “Show hidden files, folders and drives” position. Save the changes with the “Apply” button.

We make sure that the file has become visible.

Hibernation is often disabled precisely because of the large volume of hiberfil.sys. Typically its size is about 75% of the computer's RAM size, but it can be reduced.

The first way to reduce is the command line. We write the command in it powercfg /h /type reduced and press Enter. Return original size produced by the command powercfg /h /type full.

The second method is the Windows 7/10 registry. Let's move along the branch HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power and find the parameter HiberFileSizePercent, located next to HibernateEnabled. We double-click on it with the left mouse button, select the number system “Decimal” instead of “Hexadecimal” and in the “Value” field enter a number indicating the new size of the hiberfil.sys file as a percentage of its original size.

For example, if source file takes up 3 GB and we set the HiberFileSizePercent parameter to 50, this means that the new size will be 50% of 3 GB, i.e. 1.5 GB. After making changes to the registry, reboot the operating system.

Please note that setting HiberFileSizePercent too small may result in an error BSOD 0x000000A0: INTERNAL_POWER_ERROR. In this case, you need to increase the number.

We hope that the information provided will not leave you with any questions about hibernation mode in Windows 7/10, and you can enable or disable this mode without any problems.

In operating rooms Windows systems, I have already told you on the pages of the site. Therefore, I will briefly repeat: this is an energy-saving mode operating system computer, which allows you to save the contents of the RAM on the hard drive until the power is turned off. Moreover, unlike the standby mode, here the power supply is completely stopped, however, if the device is turned on, the contents of the memory are restored and the user can begin work from the place where he left off.

If for some reason you decide to disable this mode (usually this is due to the presence of a file that is responsible for hibernation and tends to grow greatly in volume), then you are welcome. Since there are several ways to disable hibernation mode, I will start with the simplest and most convenient.

First way

The easiest way to disable hibernation mode is to use . It will take no more than a couple of minutes.

Click the Start button, then select All Programs - Accessories. Here you will see the “Command Line” item. Right-click on it, then select “Run as administrator.” Yes, yes, run the command line in in this case It is necessary only on behalf of the administrator, otherwise nothing will work.

After launching the command line, write in it the phrase powercfg /hibernate off(without any additional characters such as quotes and other things) and press Enter.

That's it, hibernation mode is disabled.

Second way

Click the "Start" button and select the "Control Panel" section. Here we need the “Power Options” item - click on it.

You will see which power mode is being used. For example, “Balanced”, as in this case. Click Power Plan Settings.

In the window that opens, select “Edit additional options nutrition."

In the window, select the section “Sleep” - “Hibernation after” and set it to 0 minutes. Don't forget to click OK.

Now if you look at this item, it will say “Never”.

Third way

There is another way to disable hibernation mode - by editing. It needs to be used carefully, so I recommend that novice users stick to the first or second method.

Click on the “Start” button and in the “Search programs and files” line write the word regedit. Then we move the mouse cursor over it and click “Run as administrator.”

Follow the path HKEY LOCAL MACHINE - SYSTEM - CurrentControlSet - Control - POWER. On the right side of the window there are parameters HiberFileSizePercent and HibernateEnabled.

Click on each of these parameters in turn twice with the left mouse button, set the value to 0 and click on the OK button.

You don't need to do anything else.

I repeat once again - if possible, use the first or second method.

After Windows installations 7, quite a lot of gigabytes are consumed on the hard drive/SSD. One of the files that "eats" free space- is a file for hibernation mode (Hibernation), it is created on the disk by default and its size is approximately 70-75 percent of the total amount of installed random access memory (RAM) in your computer. Hibernation mode is needed mainly for mobile PCs (laptops), because dumps the RAM image to disk and the laptop’s power can be turned off completely, and then successfully restore the work session (exit sleep mode). How to completely disable hibernation and delete the file that is responsible for it - you will learn in this article.

Just delete the hibernation file ( hiberfil.sys) from the disk does not work because it is a system and hidden file. On the disk it looks like this in the screenshot below.

When you disable hybrid sleep mode, the hibernation file still remains on the disk, taking up free space. If you do not use this mode (do not confuse it with sleep mode), you can special team which will disable hibernation and delete the hibernation file (hiberfil.sys). But at the same time, sleep mode will remain and you will be able to use it as before.

By the way, disabling hibernation and deleting the hiberfil.sys file is quite useful and current solution, if you have an SSD drive in your computer or laptop. As you know, everything modern SSDs have a certain recording resource, and the less information is written to the disk, the better for the SSD as a whole. If, for example, you have 8 GB of RAM installed, then every time you put your computer/laptop into hybrid sleep mode, as much information is written to the HDD/SSD as the amount of RAM you had occupied at that moment. Let's say that out of 8 GB of RAM (random access memory), you had 5 GB occupied and you decided to send the laptop to sleep, but before the laptop goes to sleep, it will write the entire contents of the RAM to the HDD/SSD - that is, approximately 5 GB. If you disable hibernation mode, the contents of the RAM will not be written to the HDD/SSD, thus the recording resource on the SSD will be consumed less. With review good SSD can be found at this link. I talk there in more detail about the recording resource and other points in SSD operation.

So, to completely disable hibernation mode and delete the hiberfil.sys file, you need to go to the command line and enter a special command. To get to the command line, you need to click on the button Start and enter in search cmd, you will immediately see this file in the search results. You need to run it as an administrator by right-clicking on it and selecting the appropriate item - “Run as administrator.” Another way to get to the command line: Click Start -> All Programs -> Accessories -> Command Prompt -> (right click) “Run as administrator”. A command line will open in front of you, in which you need to enter the following command and press Enter:
powercfg.exe -h off


Entering a command in command line.

You can enter a command on the keyboard, but it’s easier to copy and paste it using the mouse, and then press Enter on the keyboard.

Then you can close the command prompt window, restart your computer, and look at the results. Hibernation mode will be disabled, the file will be deleted, and the gigabytes on your hard drive/SSD will be returned to you.

If you need to activate hibernation mode again, then in the command line (you will also need to run it in the “Run as administrator” mode) type the following command and click Enter:
powercfg.exe -h on

If you did everything correctly and nothing helped, then the change in the hibernation state is probably not recorded in the registry. To fix this, you will need to edit the registry.

Follow these steps:
1. Open the editor Windows registry 7 (press the Windows button + R > write regedit > OK).

2. Go to this registry branch:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power
(Power only needs to be selected, but not expanded). In the right column you will see the values ​​for the Power parameter. Parameter HibernateEnabled is responsible for enabling/disabling hibernation. You need to double-click on the HibernateEnabled parameter and set the value equal to zero(0), then click OK, close Registry Editor and restart your computer.
SSD HyperX Savage
3. Parameter HiberFileSizePercent- is responsible for the size of the hibernation file. As mentioned at the beginning of the article, it is usually equal to 70-75% of the total amount of RAM. If this parameter is set to 75, this means that the hibernation file is equal to 75% of the amount of RAM. Just in case, you can change this parameter (set it to 0), if you definitely decide to turn off hybrid sleep mode and delete the hibernation file. But, usually there is no need to change this parameter, just change the value of the HibernateEnabled parameter.

That's all, thanks for your attention!