Меню Рубрики

Windows 7 turn off but save windows state

How to Enable or Disable Hibernation in Windows 7

Windows 7 provides power saving features in the shutdown options. If you do not want to shut down your computer (you just want to step off your computer temporarily), windows gives you the sleep and hibernation feature to save power while you are away. You can go to the hibernation or sleep mode directly from your start menu, under the power options.

Hibernation is a power-saving state designed primarily for laptops but is available for other PCs too. By default, if you leave your computer unattended for too long, it will turn off the screen and some hardware (e.g. USB, Wi-Fi) and go to sleep mode to save power. If it stays in sleep mode for too long, it will save all your data into a system file and then power down. This is the hibernation mode, and it does not need your computer to be powered anymore. Unlike the sleep mode, it will take you longer to get out of the hibernation mode, but still faster than booting the computer. The combination of the sleep mode and hibernation mode is known as hybrid sleep setting.

There is a hidden system file named Hiberfil.sys located in the root folder of the drive where the operating system is installed. The Windows Kernel Power Manager reserves this file when you install Windows. The size of this file is approximately equal to how much random access memory (RAM) is installed on the computer. So if you have a 4GB RAM the Hiberfil.sys file will be between 2 and 4GB depending on the data stored in it. The computer uses the Hiberfil.sys file to store a copy of the system memory on the hard disk when the hybrid sleep setting is turned on such that everything that is loaded to the RAM will not be lost. If the Hiberfil.sys file is not present, the computer cannot hibernate.

You can view if the Hiberfil.sys file is present by going to.

  1. Open my computer and go to local disk (c:)
  2. On the top left corner, click on organize, and select ‘folder and search options’
  3. Go to the view tab
  4. From the advanced options, go to hidden files and folders and select ‘Show Hidden files folders and files’
  5. Also uncheck the ‘Hide protected operating system files’
  6. Click apply then OK

If the hybrid sleep setting is on, you will be able to see the Hiberfil.sys file on the root of your operating system drive.

It is obvious that hibernation uses a substantial amount of your hard disk space, and if you are someone that is bent on saving time, hibernating can cost you a little. So how do you disable hibernation such that your computer will never hibernate? This article describes how to disable and then re-enable hibernation on a computer that is running Windows.

Method 1: Disable and enable hibernation using command prompt

Using command prompt, we can disable hibernation. You will need an administrator account for this operation since you will have to run command prompt as an administrator.

To Disable Hibernation

  1. Click Start, and then type cmd in the Start Search box. (Don’t use run since it won’t allow you to run as an administrator.
  2. In the search results list, right-click Command Prompt or CMD, and then click Run as Administrator.
  3. When you are prompted by User Account Control, click Continue.
  4. At the command prompt, type powercfg.exe /hibernate off, and then press Enter.
  5. Type exit, and then press Enter to close the Command Prompt window.

From the system root, you will notice that the Hiberfil.sys file is no longer available.

To Enable Hibernation

  1. Click Start, and then type cmd in the Start Search box.
  2. In the search results list, right-click Command Prompt or CMD, and then click Run as Administrator.
  3. When you are prompted by User Account Control, click Continue.
  4. At the command prompt, type powercfg.exe /hibernate on, and then press Enter.
  5. Type exit, and then press Enter to close the Command Prompt window.

From the system root, you will notice that the Hiberfil.sys file is now available

Method 2: Use Registry Edit to enable and disable hibernate

  1. Press the Windows + R keys to open the Run dialog, type regedit, and hit enter.
  2. In registry edit window, navigate to the location below.HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power
  3. In the right pane of the Power key, double click on HibernateEnabled, and do step 4 or 5 below for what you would like to do
  4. To enablehibernation type in 1 (one) in the value data box, and click OK.
  5. To disablehibernation type 0 (zero) in the value data box and click OK
  6. Restart your PC for effect to take place

Method 3: Turn Hibernate On or Off in Advanced Power Options

  1. Press the Windows + R keys to open the Run dialog, type powercfg.cpl, and click on OK.
  2. From your current power plan (shown as selected by a radio button), click on change plan settings.
  3. In the next window, click on change advanced power settings
  4. To enable hibernation, you first have to use method 1 or 2 to enable hibernation (if you had previously disabled hibernation using these methods) otherwise these options will be grayed out.
  5. From the advanced power options settings, expand the Sleep option
  6. Under Hibernateafter, set the Setting (Minutes) to how many minutes you want your computer to sit idle for before it goes into hibernation
  7. Click on Apply, then OK
  8. To Turn Off Hibernate
  9. From the Advanced Power Plan Settings for your power plan, expand the Sleep option
  10. Under Hibernate after, set the Setting (Minutes) to Never
  11. Under Allow hybrid sleep, set Setting to Off.
  12. Click on Apply, then OK

If your PC or laptop changes power plans, you need to do this for the other plan. Laptops always switch power plans depending on whether the AC is plugged in or not.

Of all the power-saving states in Windows, hibernation uses the least amount of power (virtually no power is used in this mode). On a laptop, use hibernation when you know that you won’t use your laptop for an extended period and won’t have an opportunity to charge the battery during that time. You may lose data if you make hibernation unavailable and a power loss occurs while the hybrid sleep setting is turned on. Remember, when you make hibernation unavailable, hybrid sleep does not work.

Источник

Корректная перезагрузка зависшего при выключении Windows сервера

Уже не первый раз сталкиваюсь с такой проблемой в Windows Server 2008 R2 / Windows Server 2012/R2: после установки обновлений или неких ролей/компонентов сервер запрашивает перезагрузку, во время которой на экране появляется надпись “ Preparing to configure Windows. Do not turn off your computer ” или “ Подготовка к настройке Windows. Не выключайте компьютер ”. На этом этапе сервер замирает и эта надпись может висеть часами. При этом сервер продолжает быть доступен по сети, но часть служб, в том числе доступ к RDP, не доступны.

Как правило, в этом случае самый быстрый способ решить проблему – перезагрузить сервер по питанию (хардрезет). Например, удаленно перезагрузить физический сервер можно из консоли HP ILO , Dell iDRAC и .т.п, или из консоли Hyper-V , vSphere для виртуальных машин. Но в таком случае есть вероятность нарушить работу ОС. Лучше использовать более «мягкий» способ сброса зависшего при перезагрузке сервера.

С другого компьютера при помощи оснастки Службы (Services) – services.msс удаленно подключимся к зависшему серверу.

В списке служб сервера несложно найти службу Windows Modules Installer (Установщик модулей Windows), находящуюся в состоянии Stopping . Очевидно, именно эта служба мешает выполнению процедуры корректной перезагрузки сервера.

Кнопки управления службой при этом не доступны. В свойствах службы можно узнать имя исполняемого файла: C:\Windows\servicing\TrustedInstaller.exe

Наша задача – принудительно завершить данный процесс. Проще всего воспользоваться сценарием, описанным в статье Как принудительно завершить зависшую службу с учетом того, что эти действия придется выполнить удаленно.

На любом компьютере откройте окно командой строки и для завершения процесса TrustedInstaller.exe на сервере с именем corp-man02 выполнить следующую команду.

taskkill.exe /s corp-man02 /u corp\admin_name /p P@ssw0rd! /im TrustedInstaller.exe

То же самое действие можно выполнить с помощью утилиты Pskill из набора PSTools:

pskill.exe \\corp-man02 TrustedInstaller.exe

psexec \\corp-man02 taskkill /IM TrustedInstaller.exe /F

После этого на экране зависшего сервера должна появиться надпись Shutting down и через несколько мгновений он должен корректно перезагрузится.

Проблема встречается не только на серверных версиях Windows, но и на клиентских Windows 7 / Windows 8 / Windows 10.

Источник

Shut down, sleep, or hibernate your PC

There are many ways to shut down your PC—you can turn the PC off completely, you can make it sleep, or you can hibernate the PC.

Turn your PC off completely

Select Start and then select Power > Shut down.

For Windows 8.1 / Windows RT 8.1

Move your mouse to the lower left-hand corner of the screen and right-click the Start button or press Windows logo key + X on your keyboard. Tap or click Shut down or sign out and choose Shut down.

Click the Start button and then click the Shut down button.

Sleep

This uses very little power, your PC starts up faster, and you’re instantly back to where you left off. You don’t have to worry that you’ll lose your work because of your battery draining, because Windows automatically saves all your work and turns off the PC if the battery is too low. Use sleep when you’re going to be away from your PC for just a little while—like when you’re taking a coffee break.

For a lot of PCs (especially laptops and tablets), your PC goes to sleep when you close your lid or press the power button.

To make your PC sleep:

Open power options:

For Windows 10, select Start , then select Settings > System > Power & sleep > Additional power settings.

For Windows 8.1 / Windows RT 8.1, swipe in from the edge of the screen, tap Search (or if you’re using a mouse, point to the upper-right corner of the screen, move the mouse pointer down, and then click Search), enter Power options in the search box, and then tap or click Power options.

For Windows 7, click the Startbutton , click Control Panel, click System and Security, and then click Power Options.

Do one of the following:

If you’re using a desktop, tablet, or laptop, select Choose what the power buttons do. Next to When I press the power button, select Sleep, and then select Save changes.

If you’re using only a laptop, select Choose what closing the lid does. Next to When I close the lid, select Sleep, and then select Save changes.

When you’re ready to make your PC sleep, just press the power button on your desktop, tablet, or laptop, or close your laptop’s lid.

On most PCs, you can resume working by pressing your PC’s power button. However, not all PCs are the same. You might be able to wake it by pressing any key on the keyboard, clicking a mouse button, or opening the lid on a laptop. Check the documentation that came with your computer or go to the manufacturer’s website.

Hibernate

This option was designed for laptops and might not be available for all PCs. (For example, PCs with InstantGo don’t have the hibernate option.) Hibernate uses less power than sleep and when you start up the PC again, you’re back to where you left off (though not as fast as sleep).

Use hibernation when you know that you won’t use your laptop or tablet for an extended period and won’t have an opportunity to charge the battery during that time. First check to see if this option is available on your PC and if it is, turn it on.

To hibernate your PC:

Open power options:

For Windows 10, select Start , then select Settings > System > Power & sleep > Additional power settings.

For Windows 8.1 / Windows RT 8.1, swipe in from the edge of the screen, tap Search (or if you’re using a mouse, point to the upper-right corner of the screen, move the mouse pointer down, and then click Search), enter Power options in the search box, and then tap or click Power options.

For Windows 7, click the Start button , click Control Panel, click System and Security, and then click Power Options.

Select Choose what the power button does, and then select Change settings that are currently unavailable. Under Shutdown settings, select the Hibernate checkbox (if it’s available), and then select Save changes.

Now you’ll be able to hibernate your PC in a few different ways:

For Windows 10, select Start , and then select Power > Hibernate. You can also press the Windows logo key + X on your keyboard, and then select Shut down or sign out > Hibernate.

For Windows 8.1 / Windows RT 8.1, move your mouse to the lower left-hand corner of the screen and right-click the Start button or press Windows logo key + X on your keyboard. Tap or click Shut down or sign out and choose Hibernate. Or, swipe in from the right edge of the screen and then tap Settings. (If you’re using a mouse, point to the lower-right corner of the screen, move the mouse pointer up, and then click Settings.) Tap or click Power > Hibernate.

For Windows 7, click the Start button , click the arrow next to the Shut down button, and then click Hibernate.

Note: If devices connected to your PC (like monitors, printers, or scanners) aren’t working properly after waking up from sleep or hibernate, you might need to disconnect and reconnect your device or restart your PC. You should also make sure that you have the most current drivers for all of your devices.

Источник

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *

  • Windows 7 turkce dil paketi indir gezginler
  • Windows 7 trust e nosignature 0x800b0100
  • Windows 7 transformation pack для ubuntu
  • Windows 7 transformation pack for xp rus
  • Windows 7 theme pirates of the caribbean