0

I am running a localized (Italian) version of Windows 7. At the bottom of the start menu, when I click the arrow next to "Shut Down", here is what I see (I have listed the correspondence between the entries in Italian and those in English below the image):

enter image description here

  • Arresta il sistema: Shut down
  • Cambia utente: Switch user
  • Disconnetti: Log off
  • Blocca: Lock
  • Riavvia il sistema: Restart
  • Sospendi: Sleep
  • Ibernazione: Hibernate

Judging from the following pictures, found on the Internet, it seems like some Windows systems come with both a Sleep option and a Hibernate option, whereas others only have a Sleep option.

enter image description here

enter image description here

I've always thought that the difference between Sleep and Hibernate is that Sleep makes the screen go blank, while the hard drive keeps spinning. Whereas Hibernate copies the contents of memory to disk, and restores them to disk once a keyboard key or mouse button has been clicked.

However, what I find is that in both cases the screen goes balnk and the session is immediately locked (so that the user has to log in again once they want to resume work on the computer), and in both cases, after approximately the same amount of time (perhaps 8 minutes), the hard drive stops spinning and the computer becomes completely silent. This appears to contradict what I thought. So, really, what is the real difference between Sleep and Hibernate (and why do some systems only have the former option and not the latter)?

4

The reason why both are the same for you is the hybrid sleep since Vista. Here Windows also copies the data to the hibernation file, so if the power is cut, the data are not lost and Windows can resume like it would resume from a normal hibernation.

  • OK, I am running Windows 7 not Vista, but I guess the feature stuck. So I guess you're right, Windows 7 sleep mode is the hybrid sleep feature. Thanks. – John Sonderson Feb 16 '15 at 17:32
  • Anyways, I still don't understand the difference between hybrid sleep and hibernation. In both cases the system state is copied to disk, so why would we need to consume any battery at all when the computer could be powered off? How much quicker does hybrid sleep make resuming the system, and is it really worth it under any circumstances at all? Thanks. – John Sonderson Feb 16 '15 at 17:50
  • Also, if the computer is not powered down, and a user doesn't use it for some time, does it enter sleep, hybrid sleep, or hibernation? Thanks. – John Sonderson Feb 16 '15 at 17:51
  • the difference is that by selecting hibernation, the PC is shutdown and no longer uses power, this is why I only use hibernation. – magicandre1981 Feb 17 '15 at 5:47
  • Yes, but if your computer supports hybrid sleep, and there is a power outage and the battery is missing from your laptop, then you can still restore the login screen from disk and you will still see all of the windows that were open and their data. Regards. – John Sonderson Feb 17 '15 at 17:39
3

You are correct about hibernation: it copies the current state of your PC to hard disk, then switches off completely. It will no longer use battery power and should return to the same state when you un-hibernate it.

The sleep function however is slightly different: it does not copy the current state to disk, and instead keeps it in memory, which in turn is kept active by a low amount of power coming from the battery. So when your machine is asleep, it still uses power and will eventually decharge.

The idea is that the computer can wake up quicker than from a hibernated state, and can also go to sleep quicker than it could hibernate.

The sleep and hibernate options can be disabled via the Windows Registry. Here's how to bring them back: http://www.sevenforums.com/tutorials/85194-sleep-disable-shut-down-menu.html

  • So, when sleeping, even though the hard drive stops spinning and everything goes silent, some energy is still being consumed, whereas with hibernate the amount of energy used up is zero. – John Sonderson Feb 16 '15 at 17:28
  • @JohnSonderson correct. – Cole Johnson Feb 16 '15 at 19:09
2

On a Windows 7 system, you can enable and disable the hibernate feature by issuing the command powercfg -h <on|off> at a command prompt, e.g., powercfg -h on to enable hibernation. You may have to reboot to have the option appear. Many systems don't have it enabled by default.

Putting the system in hibernate mode is advantageous if the system is going to be without external power for a prolonged period, but you don't want to save all open files before shutting it down. You can just put the system in hibernate mode and then power it back on later to get back to the same state it was in when you hibernated it with all the applications and files you had open previously open again.

Sleep mode is a power saving feature where the system state is saved to memory, but power can be reduced by stopping the disk drive from spinning, blanking the monitor, etc. while still providing power to keep memory refreshed. However, if you are on battery power when you put the system to sleep, though it may be hours later, eventually the battery charge will be depleted and you will lose the system state unless it is hibernated before all power is lost.

With hibernate mode, the contents of memory are written to a file, hiberfil.sys, in c:\. If a system has been hibernated, when you power it back on, the contents of hiberfil.sys are read from disk into memory, so bringing a system up from hibernate mode will take longer than bringing it back from sleep mode.

  • Interesting. I wonder how many hours a laptop would last on a fully charged battery if someone accidentally puts the machine in sleep mode rather than hibernate. – John Sonderson Feb 16 '15 at 17:30
  • 2
    @JohnSonderson It may last up to a week. I've seen it a few times. – Ismael Miguel Feb 16 '15 at 18:26
  • Well, that's not bad, but given the fact that Windows Vista and above implement hybrid sleep instead of sleep (as pointed out), I don't see much point to hybrid sleep (resuming from hibernate seems to take the same amount of time when I tried it. Can you please confirm this?) – John Sonderson Feb 16 '15 at 22:32
0

I've done some testing on my machine. Here are the consecutive tests I've tried:

  • Hibernate (time required for hard drive to power down): 2:25
  • Hibernate (time for login screen to appear): 0:30
  • Sleep (time required for hard drive to power down): 1:40
  • Sleep (time for login screen to appear): happens immediately
  • Hibernate (time required for hard drive to power down): 4:30
  • Hibernate (time for login screen to appear): 0:30
  • Sleep (time required for hard drive to power down): 5:40
  • Sleep (time for login screen to appear): happens immediately

So, the times for the hard drive to power down are comparable for hibernate and (hybrid) sleep, but there is a slight difference in the time to resume and display the login screen. So, presumably, hybrid sleep copies memory contents to disk and powers down the hard drive, taking the same average time as hibernate to do so. But then hybrid sleep keeps powering memory so that it can preserve its contents, whereas hibernate powers off memory as well, and such memory is thus zeroed and its contents lost until the system restores such contents from hibernation. It takes about 30 seconds on my system to restore memory contents from disk after hibernation.

Here is the quote from Wikipedia about Hybrid sleep:

Sleep mode and hibernation can be combined: The contents of RAM are copied to the non-volatile storage and the computer enters sleep mode. This approach combines the benefits of sleep mode and hibernation: The machine can resume instantaneously, and its state, including open and unsaved files, survives a power outage. Hybrid sleep consumes as much power as sleep mode while hibernation powers down the computer.

One of the advantages of sleep (and hybrid sleep) over hibernation is that external devices such as mobile phones can still be charged in sleep mode but will not charge in hibernation mode.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.