A lightweight, completely native Windows background utility that prevents your computer and monitor from going to sleep while audio is playing.
Have you ever been watching a long video, listening to a podcast, or playing a game with a controller where you aren't touching the mouse or keyboard, and your screen randomly turns off? AudioKeepAwake silently runs in the background and fixes this by ensuring your system stays awake whenever there is sound playing!
No external dependencies, Python installations, or third-party libraries required. It relies entirely on the built-in Windows Core Audio APIs.
AudioKeepAwake runs invisibly in your system tray. Every 60 seconds, it checks your default audio output device.
- If it detects sound, it sends a signal to Windows (
SetThreadExecutionState) to prevent the system from sleeping and the display from turning off. - If it detects silence, it removes the block, allowing Windows to follow your normal power and sleep settings.
You can always check what AudioKeepAwake is doing by glancing at your system tray (down by the clock). It draws dynamic text icons based on the current state:
- π Orange "Zzz": Idle. No audio is currently playing. Your system is allowed to sleep normally.
- π’ Green "Zzz": Active. Audio is currently playing. Your system sleep and display turn-off are being actively prevented.
To close the application, simply right-click the "Zzz" icon in your system tray and select Exit. This will instantly restore your normal sleep settings.
You can simply download the pre-built AudioKeepAwake.exe file and run it directly. There is no installation required!
How to make it run automatically on startup:
- Press
Win + Ron your keyboard to open the Run dialog. - Type
shell:startupand hit Enter. - Copy the
AudioKeepAwake.exefile (or create a shortcut to it) and paste it into this Startup folder. - It will now run silently in the background every time you turn on your PC!
If you'd prefer to build the executable yourself from the raw C# source code, you can do so easily using the provided batch file.
The Install.bat script is written to automatically find the C# compiler (csc.exe) that is already built into Windows.
Steps:
- Download both
AudioKeepAwake.csandInstall.batto a folder. - Double-click
Install.bat. - The script will:
- Dynamically locate your internal Windows .NET Framework compiler.
- Compile
AudioKeepAwake.csinto a background.exefile without needing Visual Studio. - Automatically copy the generated executable into your Windows Startup folder so it loads automatically on boot.
- Launch the application for you immediately.
- Windows 7, 8, 10, or 11
- .NET Framework (Already included in modern Windows installations)