Langa Letter: To Sleep, Perchance To Hibernate... - InformationWeek

InformationWeek is part of the Informa Tech Division of Informa PLC

This site is operated by a business or businesses owned by Informa PLC and all copyright resides with them.Informa PLC's registered office is 5 Howick Place, London SW1P 1WG. Registered in England and Wales. Number 8860726.

Hardware & Infrastructure
03:41 PM
Fred Langa
Fred Langa

Langa Letter: To Sleep, Perchance To Hibernate...

Fred Langa sorts out your PC's sleep, standby, suspend, and hibernate modes, and also explains how choosing the right power state saves you money.

I regularly get E-emails like this:

Hi, Fred, You've used the terms "sleep mode," "suspend mode," "standby," and "hibernate." What's the difference? - Jennie K

They're all descriptive terms for varying levels of power management on a PC, but the reason it's confusing is that what one vendor calls "sleep" another may call "standby." Or, even more confusingly, different vendors may both use the same term to mean very different power states.

But things become clearer when you substitute industry-standard terms in place of the descriptive English words. For example, most PCs today support six distinct power modes, or "sleep states," commonly defined as S0 through S5.

You can see the logic of the naming convention if you think of S0 as "sleep state zero," or "sleep zero"; in other words, no sleep at all. In fact, S0 is indeed a system's normal full-power state, or what we'd usually simply call "on." Modes S1-S4 offer increasing levels of power savings, which we'll fully explore in a moment. S5 is the highest power-savings mode, representing a complete power-off such as that achieved by a shut down command.

OK, S0 and S5--on and off--are pretty obvious, but what about the states in between?

S1, S2, and S3 all are low-power, energy-saving states from which the PC can be awakened by jiggling the mouse or tapping a key. (Other external events, such as a special kind of LAN packet or an inbound modem call, also can trigger a wake-up, depending on how the system is set up.) When the PC awakens, it picks up from where it left off when the low-power mode kicked in--the same files will be open, the same apps will be running, etc.

Beyond this broad similarity, the three modes differ:

S1 is the simplest energy-saving state, often used in older systems whose drivers or hardware won't behave well with more sophisticated levels of power management. A system at the S1 power level simply shuts down the hard drive(s) and monitor, but leaves everything else running normally. Different vendors call S1 by different names, but sleep or standby are perhaps the most common.

S2 offers greater power savings because it not only powers down the monitor and drives, it also cuts power to the CPU and its cache. Confusingly, this level also is sometimes called sleep or standby.

S3 is a deeper power-savings mode that shuts down almost everything except for the barest trickle of power needed to keep the contents of RAM from fading away and to listen for a wake-up action. In a way, you can think of S3 as a "suspend to RAM" state. In fact, many vendors do refer to S3 as "suspend" mode, but others (alas) may call it standby, sleep, instant on, on now, and the like.

Note that, although states S1, S2, and S3 all save energy compared with a full-on PC, they still need at least a trickle of electricity to enable the PC to watch for a wake-up event, and to preserve the contents of RAM. That's a key point: If your PC loses power while it's in mode S1, S2, or S3, any information held in RAM--for example, open and unsaved documents or files--will be lost or damaged.

Level S4 is fundamentally different from levels S1 to S3. It's hibernation, where the system stops all activity, just as if you had shut it off. But S4 is also different from the simple power-off of level S5 because, before powering down, the S4 hibernation system writes the contents of RAM and some CPU settings to a special file on your hard drive (often called something like "hiberfil.sys"). Because the PC is truly off--drawing no power--it can't watch for a key press or mouse movement to wake up; you usually have to hit the power switch to bring the system out of hibernation. But when the PC awakens from hibernation, it doesn't have to go through a full reboot. Instead, it reads the contents of the hibernation file back into memory, and thus restores itself to the exact same condition it was in when hibernation started. Although this takes longer than waking from a sleep or standby or suspend mode, it's usually much faster than a full boot. Plus, because the PC is truly off during hibernation, there's nothing live in RAM, so a power failure will have no effect on the system because all the normally volatile information in the system is safely stored in the hibernation file on your hard drive.

Although S0 through S5 are the main power states we need to consider, to be technically complete I should point out that there are actually more power states and variations for different components or situations, depending on (for example) whether a system is powered off mechanically or by software such as in a "warm reboot." All these power states are defined in the industry-standard Advanced Configuration and Power Interface specification, developed by Compaq, Intel, Microsoft, Phoenix, and Toshiba. It's a published spec, and you can read it online at the ACPI consortium's home page. Two of the original collaborators of the ACPI spec--Microsoft and Intel--also have excellent ACPI information online.

We welcome your comments on this topic on our social media channels, or [contact us directly] with questions about the site.
1 of 2
Comment  | 
Print  | 
More Insights
The State of Cloud Computing - Fall 2020
The State of Cloud Computing - Fall 2020
Download this report to compare how cloud usage and spending patterns have changed in 2020, and how respondents think they'll evolve over the next two years.
InformationWeek Is Getting an Upgrade!

Find out more about our plans to improve the look, functionality, and performance of the InformationWeek site in the coming months.

11 Things IT Professionals Wish They Knew Earlier in Their Careers
Lisa Morgan, Freelance Writer,  4/6/2021
Time to Shift Your Job Search Out of Neutral
Jessica Davis, Senior Editor, Enterprise Apps,  3/31/2021
Does Identity Hinder Hybrid-Cloud and Multi-Cloud Adoption?
Joao-Pierre S. Ruth, Senior Writer,  4/1/2021
Register for InformationWeek Newsletters
Current Issue
Successful Strategies for Digital Transformation
Download this report to learn about the latest technologies and best practices or ensuring a successful transition from outdated business transformation tactics.
White Papers
Twitter Feed
Sponsored Live Streaming Video
Everything You've Been Told About Mobility Is Wrong
Attend this video symposium with Sean Wisdom, Global Director of Mobility Solutions, and learn about how you can harness powerful new products to mobilize your business potential.
Sponsored Video
Flash Poll