Sleep mode

Standard power symbol by IEEE 1621

Sleep mode is a low power mode for electronic devices such as computers, televisions, and remote controlled devices. These modes save significantly on electrical consumption compared to leaving a device fully on and, upon resume, allow the user to avoid having to reissue instructions or to wait for a machine to reboot. Many devices signify this power mode with a pulsed or red colored LED power light.

Computers

In computers, entering a sleep state is roughly equivalent to "pausing" the state of the machine. When restored, the operation continues from the same point, having the same applications and files open.

Sleep

Sleep mode has gone by various names, including Stand By (for Microsoft Windows 98-Server 2003), Sleep (for Mac OS 8-Mac OS X, Windows Vista, Windows 7, Windows 8, Windows 10, Windows Server 2008), Suspend (Windows 95) and Suspend to RAM (Linux). Machine state is held in RAM and, when placed in sleep mode, the computer cuts power to unneeded subsystems and places the RAM into a minimum power state, just sufficient to retain its data. Because of the large power saving, most laptops automatically enter this mode when the computer is running on batteries and the lid is closed. If undesired, the behavior can be altered in the operating system settings.

A computer must consume some energy while sleeping in order to power the RAM and to be able to respond to a wake-up event. A sleeping PC is a case of a device on standby power, and this is covered by regulations in many countries, for example in the United States limiting such power under the One Watt Initiative, from 2010. In addition to a wake-up press of the power button, PCs can also respond to other wake cues, such as from keyboard and mouse.

Hibernation

Hibernation, also called Suspend to Disk on Linux, saves all computer operational data on the hard disk before turning the computer off completely. On switching the computer back on, the computer is restored to its state prior to hibernation, with all programs and files open, and unsaved data intact. In standby mode, computer's state is saved in RAM; in hibernation mode, computer's state is saved on the hard disk.

Hybrid sleep

Sleep mode and hibernation can be combined: the contents of RAM are first copied to non-volatile storage like for regular hibernation, but then, instead of powering down, the computer enters sleep mode. This approach combines the benefits of sleep mode and hibernation: The machine can resume instantaneously, but it can also be powered down completely (e.g. due to loss of power) without loss of data, because it is already effectively in a state of hibernation. This mode is called "hybrid sleep" in Microsoft Windows other than Windows XP.

A hybrid mode is supported by some portable Apple Macintosh computers,[1] compatible hardware running Microsoft Windows Vista or newer, as well as Linux distributions running kernel 3.6 or newer.

ACPI

ACPI is the current standard for power management, superseding APM and providing the backbone for sleep and hibernation on modern computers. Sleep mode corresponds to ACPI mode S3. When a non-ACPI device is plugged in, Windows will sometimes disable stand-by functionality for the whole operating system. Without ACPI functionality, as seen on older hardware, sleep mode is usually restricted to turning off the monitor and spinning down the hard drive.

Reliability

When sleep mode was first introduced, not all PC hardware supported it correctly, which could cause problems with peripherals that didn't detect the transition. This is rarely a problem with newer hardware and newer versions of Windows.

Microsoft Windows

Microsoft Windows 2000 and later support sleep at the operating system level (OS-controlled ACPI S4 sleep state) without special drivers from the hardware manufacturer. Windows Vista's Fast Sleep and Resume feature saves the contents of volatile memory to hard disk before entering sleep mode (aka Hybrid sleep). If power to memory is lost, it will use the hard disk to wake up. The user has the option of hibernating directly if they wish.

In older versions prior to Windows Vista, sleep mode was under-used in business environments as it was difficult to enable organization-wide without resorting to third-party PC power management software.[2] As a result, these earlier versions of Windows were criticized for wasting energy.[3]

There remains a market in third-party PC power management software for newer versions of Windows, offering features beyond those built into the operating system.[4][5][6] Most products offer Active Directory integration and per-user/per-machine settings with the more advanced offering multiple power plans, scheduled power plans, anti-insomnia features and enterprise power usage reporting. Vendors include 1E NightWatchman,[7][8] Data Synergy PowerMAN (Software)[9] and Verdiem SURVEYOR.[10]

Mac OS X

Sleep on Macintoshes running on OS X consist of the traditional sleep, Safe Sleep, and Power Nap. In System Preferences, Safe Sleep[11] is referred to as sleep. Since Safe Sleep also allowed state to be restored in an event of a power outage, unlike other operating systems, hibernate was never offered as an option.

In 2005, some versions of Macs running Mac OS X v10.4 began to support Safe Sleep. The feature saves the contents of volatile memory to the system hard disk each time the Mac enters Sleep mode. The Mac can instantaneously wake from sleep mode if power to the RAM has not been lost. However, if the power supply was interrupted, such as when removing batteries without an AC power connection, the Mac would wake from Safe Sleep instead, restoring memory contents from the hard drive.[12]

Safe Sleep capability is found in Mac models starting with the October 2005 revision of the PowerBook G4 (Double-Layer SD). Mac OS X v10.4 or higher is also required. A hack enabled the feature as well on older Macs running Mac OS X v10.4.[13]

In 2012, Apple introduced Power Nap with OS X Mountain Lion (10.8) and select Mac models. Power Nap allows the Mac to perform tasks silently, such as iCloud syncing and Spotlight indexing. Only low energy tasks are performed when on battery power, while higher energy tasks are performed with AC power.

See also

References

This article is issued from Wikipedia - version of the Friday, April 29, 2016. The text is available under the Creative Commons Attribution/Share Alike but additional terms may apply for the media files.