Bluetooth No Sleep
Prevents Bluetooth audio devices from sleeping, disconnecting on idle timeout, or truncating initial playback by streaming inaudible digital silence
Author: Dev-StudioCode
A lightweight Windows background utility and Windhawk tool mod that prevents
Bluetooth audio devices (headphones, wireless earbuds, soundbars, DACs, and
speakers) from falling asleep, dropping initial playback, or disconnecting
during silence.
Why this mod?
Modern Bluetooth audio peripherals employ aggressive power-saving timers:
- Initial Audio Truncation: When no audio plays for a few seconds, the
device enters a low-power state and shuts off its internal DAC/amplifier.
When audio resumes, waking up takes 1-2 seconds, dropping the beginning of
system notifications, speech, or media playback.
- Pops and Static Bursts: Rapid DAC wakeups often create audible transients,
clicks, or static bursts ("pink noise").
- Unsolicited Idle Disconnections: Many wireless devices shut down
completely after 5 to 10 minutes of silence, forcing manual power cycling.
How it works
This mod uses Windows Audio Session API (WASAPI) Shared Mode to continuously
stream an inaudible digital silence buffer (0x00 PCM or sub-audible dither)
to the active audio endpoint:
- Non-Intrusive Shared Mode: Runs alongside your normal applications
without monopolizing or locking audio devices.
- Event-Driven Endpoint Tracking: Uses
IMMNotificationClient to monitor
device transitions. When your default audio device switches or a Bluetooth
headset reconnects, it rebinds automatically without crashes.
- Near-Zero CPU Overhead: Uses buffer-synchronized wait events and sleep
cycles to keep CPU usage below 0.1%.
- Optional Inactivity Gate: Can automatically pause the keep-alive stream
after prolonged user inactivity to allow intentional battery conservation
and permit normal Windows system sleep (
powercfg /requests).
- Dedicated Tool Mod: Runs inside
windhawk.exe as a dedicated background
tool without injecting into or hooking any system processes.