Hardware & Infrastructure
Commentary
9/27/2002
03:41 PM
Fred Langa
Fred Langa
Commentary
50%
50%

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.

Previous
1 of 2
Next
Comment  | 
Print  | 
More Insights
Register for InformationWeek Newsletters
White Papers
Current Issue
InformationWeek Tech Digest, Nov. 10, 2014
Just 30% of respondents to our new survey say their companies are very or extremely effective at identifying critical data and analyzing it to make decisions, down from 42% in 2013. What gives?
Video
Slideshows
Twitter Feed
InformationWeek Radio
Archived InformationWeek Radio
Join us for a roundup of the top stories on InformationWeek.com for the week of November 16, 2014.
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.