SleepRight is a Windows sleep management tool that helps configure Windows 11 PCs for reliable sleep mode and troubleshoot sleep-related issues.
- Wake Event Analysis: Reads and displays information about the last wake events from Windows Event Log
- Power Settings Overview: Shows current power scheme settings, sleep timeouts, wake device configuration, and hibernate settings
- Power Configuration: Configures the PC so that only keyboard and Ethernet can wake it, with 30 minutes of inactivity before sleep mode
- Hibernate Timeout: Configurable hibernate timeout via command-line parameter
git clone https://github.com/janmz/SleepRight.git
cd SleepRight
go buildOr use prepareBuild to build with version information:
prepareBuildDisplay wake events and current power settings:
SleepRight -info
# or
SleepRight -iConfigure power settings with default values (30 minutes sleep timeout, Balanced power scheme):
SleepRight -configure
# or
SleepRight -cConfigure power settings with a custom hibernate timeout (in minutes):
SleepRight -configure -wait 60
# or
SleepRight -c -w 60Enable verbose output for detailed information:
SleepRight -info -verbose
# or
SleepRight -i -vDisplay version and build time:
SleepRight --version-info,-i- Show wake events and current power settings-configure,-c- Configure power settings-wait,-w <minutes>- Set hibernate timeout in minutes (e.g.,-w 60for 60 minutes)-verbose,-v- Verbose output--version- Show version and exit
When you run SleepRight -configure, it will:
- Wake Devices: Enable wake only for keyboard and Ethernet adapter, disable all other wake devices
- Sleep Timeout: Set sleep timeout to 30 minutes of inactivity (both AC and battery)
- Power Scheme: Set power scheme to "Balanced"
- Hibernate Timeout: Configure hibernate timeout if
-waitparameter is provided
- Windows 11 (may work on Windows 10)
- Administrator rights required for power configuration
- Go 1.23 or later (for building from source)
SleepRight -infoOutput:
SleepRight v1.0.0.0 (Build: 2025-01-12 00:00:00)
=== Wake Events ===
Last Wake Event:
Wake History Count - 1
Wake History [0]
Wake Source Count - 0
=== Power Settings ===
Active Power Scheme:
Power Scheme GUID: 381b4222-f694-41f0-9685-ff5bb260df2e (Balanced)
Sleep Settings (AC Power):
Timeout: 30 minutes
Hibernate Settings:
Timeout: 0 seconds (disabled)
Devices that can wake the computer:
- HID Keyboard Device
- Realtek PCIe GbE Family Controller
SleepRight -configure -w 60This will configure all power settings and set hibernate timeout to 60 minutes.
Some operations require administrator rights. If you see errors about permissions, run the program as administrator:
- Right-click on
SleepRight.exe - Select "Run as administrator"
If SleepRight cannot find your keyboard or Ethernet adapter, you can manually enable wake for specific devices:
powercfg /deviceenablewake "Device Name"To see all available devices:
powercfg /devicequery wake_programmableMIT License with attribution. Donationware for CFI Kinderhilfe.
Copyright (c) 2024-2025 VAYA Consulting
Contributions are welcome! Please feel free to submit a Pull Request.
For issues and feature requests, please use the GitHub Issues page.