mirror of
https://github.com/microsoft/PowerToys
synced 2025-08-22 10:07:37 +00:00
## Summary of the Pull Request Accumulated information from internal transition about the modules development, and reworked it to be added in dev docs. Also the dev docs intself was restructured to be more organized. New pages was verified by transition team. ## PR Checklist - [x] **Dev docs:** Added/updated --------- Co-authored-by: Zhaopeng Wang (from Dev Box) <zhaopengwang@microsoft.com> Co-authored-by: Hao Liu <liuhao3418@gmail.com> Co-authored-by: Peiyao Zhao <105847726+zhaopy536@users.noreply.github.com> Co-authored-by: Mengyuan <162882040+chenmy77@users.noreply.github.com> Co-authored-by: zhaopeng wang <33367956+wang563681252@users.noreply.github.com> Co-authored-by: Jaylyn Barbee <51131738+Jaylyn-Barbee@users.noreply.github.com>
2.3 KiB
2.3 KiB
Awake
Public overview - Microsoft Learn
Quick Links
Overview
Awake is a PowerToys utility designed to keep your computer awake without permanently modifying system power settings. It prevents the computer from sleeping and can keep the monitor on, providing a convenient alternative to changing system power configurations.
Key Features
- Temporarily override system sleep settings
- Keep monitor on (prevent display from turning off)
- Set time intervals for keeping the system awake
- One-time setup with no need to revert power settings afterward
Advantages Over System Power Settings
- Convenience: Easy UI for quick toggling of sleep prevention
- Flexibility: Support for different time intervals (indefinitely, for specific duration)
- Non-persistent: Changes are temporary and don't require manual reversion
- Quick Access: Available directly from the system tray
Architecture
Components
- System Tray UI: Provides user interface for controlling Awake settings
- Backend Threads: Manages the power state prevention functionality
- Command Line Interface: Supports various commands for controlling Awake functionality programmatically
Technical Implementation
Awake works by preventing system sleep through Windows power management APIs. The module runs as a background process that interfaces with the Windows power management system to keep the device awake according to user preferences.
User Experience
Users can access Awake through the PowerToys system tray icon. From there, they can:
- Toggle Awake on/off
- Set a specific duration for keeping the system awake
- Choose whether to keep the display on or allow it to turn off
- Access additional configuration options
Command Line Support
Awake includes command-line functionality for power users and automation scenarios, allowing programmatic control of the utility's features.