Recent from talks
Contribute something
Nothing was collected or created yet.
Sleep mode
View on Wikipedia
Sleep mode (or suspend to RAM or stand by) is a low-power mode for electronic devices such as computers, televisions, and remote controlled devices. Sleep modes save significantly on electrical consumption compared to leaving a device fully on and, upon resuming to a working state, allow the user to avoid having to reissue instructions or wait for a machine to boot.
Many devices signify this power mode with a pulsed or red-colored LED power light.
Computers
[edit]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
[edit]Sleep mode has gone by various names, including Stand By, Suspend and Suspend to RAM. 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 of the computer.
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 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, mouse, incoming telephone call on a modem, or local area network signal.[citation needed]
A real-time clock alarm can schedule the computer to wake from sleep mode.[1]
Hibernation
[edit]Hibernation, also called Suspend to Disk on Linux, saves all computer operational data on the fixed 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 contrast with standby mode, hibernation mode saves the computer's state on the hard disk, which requires no power to maintain, whereas standby mode saves the computer's state in RAM, which requires a small amount of power to maintain.
Hybrid sleep
[edit]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 starting in Windows Vista.
A hybrid mode is supported by some portable Apple Macintosh computers,[2] compatible hardware running Windows Vista or newer, and Linux distributions running kernel 3.6 or newer.[citation needed]
ACPI
[edit]ACPI (Advanced Configuration and Power Interface) is the current standard for power management, superseding APM (Advanced Power Management) 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.
Microsoft Windows
[edit]Microsoft Windows 2000 and later support sleep at the operating system level (ACPI S3 state) without special drivers from the hardware manufacturer, with the exception of video adapters. Windows Vista's Hybrid sleep feature saves the contents of volatile memory to hard disk before entering sleep mode. 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. On PCs that enable Modern Standby, Hybrid sleep feature is unavailable.
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 software.[3] As a result, these earlier versions of Windows were criticized for wasting energy.[4]
A variety of third-party PC power management software exists for newer versions of Windows, offering features beyond those built into the operating system.[5][6][7] 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.
macOS
[edit]Sleep on macOS consists of the traditional sleep, Safe Sleep, and Power Nap. In System Preferences, Safe Sleep[8] 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 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.[9]
Safe Sleep capability is found in Mac models starting with the October 2005 revision of the PowerBook G4 (Double-Layer SD[vague]). Mac OS X v10.4 or higher is also required.[10]
In 2012, Apple introduced Power Nap with OS X Mountain Lion (10.8) and select Mac models.[11] 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.[12]
Smartphones
[edit]Smartphone platforms, such as iPhone, Android and Windows Phone can support smart standby method. If power button pressed, screen is turned off, but it still can retrieve notifications and play sound.[13]
Unicode
[edit]Because of widespread use of this symbol, a campaign was launched to add a set of power characters to Unicode.[14] In February 2015, the proposal was accepted by Unicode and the characters were included in Unicode 9.0.[15] The characters are in the "Miscellaneous Technical" block within code point range 23FB–23FE.[16]
Wake-on-LAN
[edit]Wake-on-LAN (WoL)[a] is an Ethernet or Token Ring computer networking standard that allows a computer to be turned on or awakened from sleep mode by a network message. The message is usually sent to the target computer by a program executed on a device connected to the same local area network (LAN). It is also possible to initiate the message from another network by using subnet directed broadcasts or a WoL gateway service. It is based upon AMD's Magic Packet Technology, which was co-developed by AMD and Hewlett-Packard, following its proposal as a standard in 1995. The standard saw quick adoption thereafter through IBM, Intel and others.
If the computer being awakened is communicating via Wi-Fi, a supplementary standard called Wake on Wireless LAN (WoWLAN) must be employed.[17]
The WoL and WoWLAN standards are often supplemented by vendors to provide protocol-transparent on-demand services, for example in the Apple Bonjour wake-on-demand (Sleep Proxy) feature.[18]See also
[edit]Notes
[edit]- ^ Equivalent terms include wake on WAN, remote wake-up, power on by LAN, power up by LAN, resume by LAN, resume on LAN and wake up on LAN.
References
[edit]- ^ "systemd.timer". freedesktop.org. Retrieved 27 October 2014.
- ^ "About safe sleep". Apple Inc. Archived from the original on April 2, 2012.
- ^ "PowerMAN PC Power Management Software Documentation". www.datasynergy.co.uk.
- ^ "EcoGeek - How Windows XP Wasted $25 Billion of Energy". Archived from the original on 2006-11-27. Retrieved 2011-04-19.
- ^ "Power Management Software for Windows Workstations".
- ^ "Activating Power Management: Commercial Software Packages". www.energystar.gov. Archived from the original on 2019-01-30. Retrieved 2020-10-20.
- ^ The Headmasters' and Headmistresses' Conference. "HMC: A Practical Guide to Sustainable Building for Schools". Archived from the original on 2012-03-15.
- ^ "OS X Lion: What is safe sleep?".
- ^ "What is safe sleep on Mac?". Apple Support.
- ^ "How to Safe Sleep (Hibernate) Your Mac - AndrewEscobar.com". January 5, 2008. Archived from the original on 2008-01-05.
- ^ LLC, Kyle Media. "What is Power Nap? Power Nap Macs & Hack Possibilities @ EveryMac.com". www.everymac.com. Retrieved 2017-02-02.
- ^ "How Power Nap works on your Mac". Apple Support. Retrieved 2017-02-02.
- ^ "How to Keep iOS 17 Standby Always On (Fix StandBy Turn Off Issue)". Nerd's Chalk. 2023-09-20. Retrieved 2025-05-01.
- ^ "Unicode Proposal 14009 Power Symbol" (PDF). Unicode. Unicode Consortium. Retrieved Dec 23, 2015.
- ^ West, Andrew (2016-01-10). "What's new in Unicode 9.0?". Archived from the original on 2016-01-07. Retrieved 2016-06-22.
- ^ "Unicode Chart - Miscellaneous Technical - Range: 2300–23F" (PDF). 2016-06-22.
- ^ von Nagy, Andrew (8 November 2010). "Wake on Wireless LAN". Revolution Wi-Fi Blog. Retrieved 28 October 2015.
- ^ Fleishman, Glenn (28 August 2009). "Wake on Demand lets Snow Leopard sleep with one eye open". Macworld. Archived from the original on 16 September 2009. Retrieved 15 September 2009.
How it works, Energy Saver preference pane
Sleep mode
View on GrokipediaFundamentals
Definition and Purpose
Sleep mode is a low-power state implemented in electronic devices, such as computers, smartphones, and televisions, designed to conserve energy by preserving the system's current state in low-power RAM or auxiliary storage while powering down non-essential components like the processor, display, and peripherals. In this mode, the device suspends most operations but retains the ability to quickly resume full functionality—typically within seconds for RAM-based preservation or up to a few minutes if stored to disk—upon receiving a wake signal from user input, timer, or network event. This contrasts with complete shutdown, which clears memory and requires a full boot process.[5][7] The primary purpose of sleep mode is to drastically cut energy use during periods of inactivity, transitioning devices from higher idle power draws—often exceeding 100 watts for desktops—to minimal levels under 5 watts, thereby minimizing electricity waste and heat buildup. By reducing continuous operation of power-hungry elements, sleep mode also extends hardware lifespan through lower thermal stress and fewer full power cycles, which can otherwise accelerate component degradation. Furthermore, it aligns with global energy efficiency standards, such as the International Energy Agency's One Watt Initiative, launched in 1999 and updated through policies like the EU's 2013 ecodesign requirements limiting standby power to 0.5 watts, promoting widespread adoption to curb unnecessary consumption.[8][9][10][11] Key benefits encompass environmental protection and user economics, with sleep mode enabling substantial reductions in carbon emissions by lowering overall electricity demand from devices left unattended. For example, ENERGY STAR-certified power management features, including sleep, have saved over 500 TWh cumulatively in the US, avoiding the release of millions of metric tons of CO2 equivalent. While individual users can expect electricity bill reductions of up to $30 per device yearly. Mechanisms like Wake-on-LAN further enhance utility by permitting remote reactivation without exiting sleep, balancing efficiency with connectivity.[12][13][14]History and Evolution
The origins of sleep mode in computing trace back to the late 1980s, driven by the need for battery conservation in early portable devices. As laptops emerged, such as the IBM PC Convertible in 1986, basic power-saving techniques like screen dimming and processor clock throttling were introduced to extend limited battery life, though these were rudimentary and hardware-dependent without standardized software support.[15] By the early 1990s, Intel's 386SL processor in 1990 incorporated explicit sleep states to reduce power draw during idle periods, marking a shift toward more systematic low-power modes in mobile computing.[16] A major milestone came in 1992 with the release of Advanced Power Management (APM) by Intel and Microsoft, an API designed for DOS and early Windows systems (like Windows 3.x) to enable coordinated power control across hardware components, including suspend-to-RAM states for laptops.[17] However, APM's BIOS-centric approach limited its flexibility and OS integration, leading to inconsistent adoption. This evolved in December 1996 when Intel, Microsoft, and Toshiba jointly released the Advanced Configuration and Power Interface (ACPI) specification version 1.0, which shifted power management to OS-directed control for more efficient states like sleep and introduced plug-and-play compatibility.[18] The transition from APM to ACPI accelerated in the late 1990s, with Windows 98 in 1998 providing native ACPI support, enabling finer-grained power states but revealing hardware limitations in pre-2000 systems that often underutilized sleep modes due to incompatible peripherals and BIOS issues. Hibernation, a disk-based evolution of RAM sleep, emerged in the late 1990s as part of ACPI implementations.[19] By the early 2000s, critiques highlighted significant energy waste from underutilized power management; for instance, EPA reports noted that many office computers were left running overnight, contributing to unnecessary electricity use and emissions equivalent to millions of tons of CO2 annually, as hardware and software inertia prevented widespread sleep activation.[20] The 2007 launch of the Climate Savers Computing Initiative by the EPA, Google, and Intel addressed this by promoting advanced sleep features and efficient power supplies in PCs, aiming to cut idle energy consumption by up to 50% through better standby management.[21] Hybrid sleep modes, combining RAM retention with disk backups for reliability during power loss, were introduced in Windows Vista in 2006, enhancing desktop usability while minimizing risks.[22] In the 2010s, adaptations for mobile devices advanced with Android 6.0 (Marshmallow) in 2015 introducing Doze mode, which uses sensors to detect idle states and aggressively restrict background activity for extended battery life, reducing drain by up to 30% during sleep.[23] Recent developments in 2024-2025 incorporate machine learning for predictive power states; for example, HP's OmniBook Ultra employs AI to dynamically adjust CPU, GPU, and NPU loads based on usage patterns, optimizing sleep transitions for efficiency in AI PCs.[24]Power Management States
Suspend to RAM (Sleep)
Suspend to RAM, also known as sleep mode, is a low-power state in which the system's current state, including open applications and data in memory, is preserved in volatile RAM while nearly all other components are powered down. This allows for quick resumption of activity without losing progress, making it suitable for short periods of inactivity. Defined in the ACPI specification as the S3 sleeping state, it contrasts with hibernation by maintaining the system context solely in RAM rather than saving it to non-volatile storage, enabling faster wake times at the cost of higher power draw during the state.[25][26] The mechanics of entering Suspend to RAM involve flushing CPU caches to RAM, halting CPU clocks, and asserting the SLP_S3 signal to power down peripherals, buses, and the processor while keeping DRAM refreshed to retain the system context. All external clocks are turned off except for the real-time clock (RTC), and power is supplied only to essential circuits for memory retention and wake detection. This process results in minimal power consumption, typically drawing 1-5 W to refresh RAM and maintain basic oversight functions, significantly lower than active operation but higher than fully off states.[26][2][27] Resumption from Suspend to RAM occurs through various wake mechanisms, including pressing the power button, input from a keyboard or mouse, expiration of a timer set via the RTC, or signals from a modem or network interface if configured for wake-on-LAN. The wake process de-asserts the SLP_S3 signal, restores power to components, and restarts the processor from its reset vector, typically completing in under 1 second for low-latency recovery. Wake capabilities depend on hardware support, with only RAM context preserved while CPU and chipset states must be reinitialized.[25][2][26] A key limitation of Suspend to RAM is the risk of complete data loss if power is interrupted, as RAM is volatile and lacks a persistent backup unlike hibernation. Additionally, its ongoing power usage, even if low, can drain batteries over extended periods, making it less ideal for prolonged absences compared to power-off states. Hardware often indicates this mode with a pulsing power LED or a fully off screen, signaling the system is in a low-power standby rather than fully shut down.[2][25]Suspend to Disk (Hibernation)
Suspend to Disk, commonly known as hibernation, is a power management state in which the contents of the system's RAM are saved to non-volatile storage, such as a hard drive or SSD, before the device powers off completely. This process preserves the current state of the operating system, running applications, and open documents in a file—known as hiberfil.sys in Microsoft Windows—allowing the system to resume exactly where it left off upon powering back on. The hibernation file size is configured by type: in the default 'full' mode, it is 40% of physical RAM to support hibernation; in 'reduced' mode, it is 20% of RAM but only supports fast startup, not hibernation.[3][28] During hibernation, the device draws nearly zero power, similar to a full shutdown, making it suitable for extended periods of inactivity without draining batteries.[3] The mechanics involve the operating system compressing and writing the RAM contents to the storage device, followed by a complete power-down of all components, including DRAM. Upon resumption, the system performs a power-on self-test (POST), reads and decompresses the hibernation file back into RAM, and reinitializes devices, typically taking 5 to 30 seconds depending on hardware like SSD speed and RAM size.[3] This state evolved from suspend-to-RAM methods in the 1990s to address battery life limitations in laptops during prolonged non-use. Hibernation has been supported in Windows since the Windows 2000 release.[29] Key advantages include zero power consumption during the hibernated state, which is ideal for laptops or devices left idle for hours or days, thereby extending battery life compared to active or sleep modes.[3] It also enables quick restoration of the work environment without the need for a full boot process. However, drawbacks encompass slower resume times relative to suspend-to-RAM (which can wake in seconds), significant storage space usage equivalent to the configured file size, and potential wear on SSDs from repeated large writes, though modern SSDs mitigate this with high endurance ratings (e.g., thousands of write cycles per cell).[3][30] In Linux, hibernation is referred to as suspend-to-disk and is implemented through the kernel's power management subsystem, utilizing mechanisms like swap suspend to store the memory image on disk before powering off.[31][32] The process requires a dedicated swap partition or file at least as large as physical RAM to accommodate the image.[32]Hybrid and Safe Sleep
Hybrid sleep is an advanced power management state that combines elements of suspend-to-RAM and hibernation by first saving the system's memory state to disk before entering a low-power RAM-maintained sleep mode. This approach ensures rapid resumption from RAM under normal conditions while providing a fallback to disk-based recovery in the event of power loss, such as a sudden shutdown on battery-powered devices. Introduced in Windows Vista in 2006, hybrid sleep was designed to simplify user experience by automatically handling the transition without requiring manual selection between sleep and hibernation options.[33] In practice, upon entering hybrid sleep, the operating system writes the active session data to a hibernation file on the storage drive, then suspends the system to RAM, keeping essential components powered at a minimal level to refresh memory. If power is interrupted, the system can resume from the disk image upon restart, preventing data loss. This dual-storage mechanism builds on basic suspend-to-RAM and hibernation states to enhance reliability for desktops and laptops.[33] Safe sleep, a variant specific to macOS, operates similarly by mirroring the contents of RAM to the internal storage drive as the system enters sleep mode, ensuring that the full memory state is preserved on disk from the outset. Introduced by Apple in October 2005 alongside updated PowerBook models running Mac OS X Tiger, safe sleep automatically initiates this mirroring process to protect against data loss from battery depletion or unexpected shutdowns during sleep. If the battery level drops critically low while in safe sleep, the system seamlessly transitions to full hibernation mode, powering off completely while retaining the saved state for later resumption.[34][35] Modern implementations of hybrid sleep have expanded beyond proprietary systems. In Linux, true hybrid suspend—where the system simultaneously saves to both disk and RAM—was integrated starting with kernel version 3.6, released in October 2012, enabling users to invoke it via commands likesystemctl hybrid-sleep for balanced performance in diverse hardware environments.[36]
These hybrid approaches offer a trade-off between the fast wake times of RAM-based sleep (typically under 2 seconds) and the power efficiency and safety of disk-based hibernation, but they introduce added complexity in implementation, including longer initial entry times due to disk writes (often 10-30 seconds depending on RAM size) and requirements for sufficient storage space.[33]
Standards and Specifications
ACPI Framework
The Advanced Configuration and Power Interface (ACPI) is an open standard that enables operating system-directed power management and hardware configuration in computing systems.[19] Initially released as ACPI 1.0 in December 1996 by Intel, Microsoft, and Toshiba, it defines a framework for controlling power states, device enumeration, and resource allocation through a combination of hardware registers, system description tables, and ACPI Machine Language (AML) bytecode.[37] ACPI supersedes the earlier Advanced Power Management (APM) specification from 1992, shifting power management control from BIOS to the operating system for greater flexibility and efficiency.[19] ACPI organizes system power into global states that describe the overall platform behavior and system states that specify detailed operational modes. The global states include G0 (working), where the system is fully operational with software executing; G1 (sleeping), a low-power mode with context preserved and variable wake latency; G2 (soft off), where the system is powered down but can restart without a full boot; and G3 (mechanical off), a complete power-off state requiring manual intervention. System states range from S0 (working), fully active with high power use, to S1-S4 (sleeping substates under G1) with progressive power savings and wake latencies, and S5 (soft off), equivalent to G2 with minimal power for wake logic.| Global State | Description | Key Characteristics |
|---|---|---|
| G0 (Working) | System performs work via OS and applications. | Full power, no reboot needed on transitions. |
| G1 (Sleeping) | Low-power idle, context maintained. | Subdivided into S1-S4; wake via events. |
| G2 (Soft Off) | Powered down, restart possible. | Equivalent to S5; minimal wake power. |
| G3 (Mechanical Off) | Fully off, no software execution. | RTC powered; longest latency. |
| System State | Description | Key Characteristics |
|---|---|---|
| S0 (Working) | All components active. | High power; normal operation. |
| S1 (Power on Suspend) | CPU context preserved, caches off. | Fastest wake among sleep states. |
| S2 (CPU Power Suspend) | CPU powered off, some context lost. | Slower wake than S1. |
| S3 (Suspend to RAM) | Memory self-refresh, most devices off. | Moderate wake latency from RAM. |
| S4 (Suspend to Disk) | State saved to storage, full shutdown. | Longest latency; no RAM power. |
| S5 (Soft Off) | No context saved, reboot required. | Minimal power for wake events. |