SPDIF/HDMI Sound Keeper v1.2.1 [2021/11/05]

Prevents SPDIF/HDMI digital audio playback devices from sleeping. Uses WASAPI, requires Windows 7+.

To enable autorun, copy soundkeeper.exe into the startup directory (to open it, press Win+R, enter "shell:startup", press Enter). To close the program, just mute the Sound Keeper in the Volume Mixer or kill the soundkeeper.exe process.

Download: soundkeeper.7z (17KB). Source code →

Features

  • Sound Keeper is fully automatic and doesn't require any user interaction.
  • Sound Keeper can keep sound on many sound outputs simultaneously (e.g. SPDIF and HDMI).
  • Sound Keeper detects new sound outputs on the fly (e.g. when you connected a TV via HDMI).

Settings

  • Default behavior can be changed by changing file name of the Sound Keeper executable.
  • Primary audio output is used by default. Add "All" to executable file name to enable Sound Keeper on all outputs.
  • Inaudible stream is used by default. Add "Zero" to executable file name to use stream of digital zeroes (like it was in v1.0.0).

If the default inaudible stream doesn't help, try the new "Sine" stream type. It generates a sine wave, and can be customized. There are two parameters: F (frequency) and A (amplitude). The value goes right after the parameter character. For example, add "SineF10A5" to executable file name to generate 10Hz sine wave with 5% amplitude. Low frequencies (below 20Hz) and high frequencies (above 20000Hz) with low amplitude (up to 10%) are inaudible.

Sound Keeper vs. SPDIF Keep Alive vs. SPDIF-KA

Sound Keeper v1.0 SPDIF Keep Alive v1.2 SPDIF-KA v1.4
Fully automatic: Yes No No
Multiple outputs: Yes No No
GUI: No Yes Yes
Requires .NET: No Yes Yes
Executable size: 17KB 668KB 163KB
CPU usage (on Intel Core i5 4460): 0.004% 0.06% 0.06%
RAM usage (Private Working Set): 1636KB 13704KB 10600KB
  1. #151
    I WANT TO BECOME MONKE

    @VEG

    I fixed it by changing sampling rate from 48kHz to 96kHz

  2. #152
    TOB

    Any Regedit hack to equal this? Thanks

  3. #153
    VEG Author

    There is no built-in functionality like Sound Keeper to activate it from registry. Your audio card driver may have a (hidden) setting to disable this power saving anti-feature which Sound Keeper tries to overcome though.

  4. #154
    Pavel

    Sound Keeper v1.1.0

    I use an asus xonar hdav sound card for an hdmi connection, installed soundkeeper_v1.1.0. this helped the external receiver to work in PCM 5.1 mode as needed, but then I turned off the receiver and turned it on, and it fell asleep as it was before using soundkeeper_v1.1.0. I did repeated reinstalling the driver and restarting soundkeeper_v1.1.0 ,and it didn't work, everything works like I didn't run it at all. That is, but completely stopped working and the sound began to fall asleep as before.

  5. #155
    Navid

    I cannot thank you enough. This program has stopped my AVR from cutting every 3-4 minutes to every 20 minutes (a lot less annoying). Do you think there'll be a way to prevent this altogether?

  6. #156
    VEG Author

    You can try this version with new "sine" mode. Maybe it will help you better. This new mode will be available in the next version.

  7. #157
    Halex

    Still works beautifully in Windows 11. Thank you!

  8. #158
    forestation

    Is there a similar app for Google TV (Android)? I'm encountering this issue while running Kodi on Google TV

  9. #159
    VEG Author

    I'm not aware of such program for Andorid. You can report the issue to the Kodi developers, they could try to resolve it by streaming zeroes when nothing is actually playing.

  10. #160
    VEG Author

    Sound Keeper v1.2.0

    • Sound Keeper doesn't prevent PC from automatic going into sleep mode.
    • New "Sine" stream type which can be useful for analog outputs or too smart digital outputs.
    • When a user starts a new Sound Keeper instance, the previous one is stopped automatically.
    • "Fluctuate" stream type considers sample format of the output (16/24/32-bit integer, and 32-bit float).
    • Command line parameters are supported. Example: "SoundKeeper64.exe sine -f 1000 -a 10".
    • The workaround for the Audio Service memory leak is enabled on affected Windows versions only (8, 8.1, and 10).
  11. #161
    VEG Author

    If there are users of the Windows on ARM who wants to use the Sound Keeper, I could make a native ARM64 binary of the program. But I need to test it before releasing, so you could help me with it. Contact me if you are interested.

  12. #162
    VEG Author

    Sound Keeper v1.2.1

    • Sound Keeper works on Windows 11.
    • The code which allowed PC to sleep automatically had to be disabled on Windows 11 because of a bug in the OS.

    When any program streams any audio (even silence), the system don't go into sleep mode automatically. Sound Keeper tries to use the NtPowerInformation(SystemPowerInformation, ...) function to retrieve time when system is going to sleep to let the OS do it. For some reason, Windows 11 always reports that the system is going to sleep in 0 seconds. Seems like a new bug in the OS. As the result, Sound Keeper thought that the system is going to sleep right now, and disabled itself to let the system sleep. This behavior had to be disabled on Windows 11 until a better solution is found.

  13. #163
    HHH03

    Thank you for this program. My new computer a Lenovo P620 is a good machine and uses the Realtek ALC4050H Codec. Unfortunately, the Realtek driver likes to power down (D2) after 10 seconds and it's taking around 1 sec to power back up to D0. It causes a popping noise in the speakers when it powers down and cuts the audio when it powers up. I made it an auto start program slightly differently than you suggest, I placed the program in System32 folder and created a task scheduler for it to start up when the computer does. The program itself is very small, 20kb is tiny but it does use more system memory than I'd expect... 2.9 MB and it varies in size. Is this a normal range for your program?

  14. #164
    VEG Author

    Seems OK. It depends on your system. Sound Keeper has to load mandatory system libraries related to audio output, and they also take some memory. Any other program that outputs audio would take more memory than Sound Keeper anyway.

  15. #165
    HHH03

    I've been complaining to Lenovo support about this Realtek driver issue and nothing has been done about it so far. The generic Windows USB 2.0 Audio driver performed perfectly, but the Realtek software no longer recognized the rear audio port so if you plugged in headphones in the front jack, the rear speakers continued to play instead of switching off. These AMD motherboards don't have native audio support inside the chipset, most if not all are using USB Audio devices. Normally it's the ALC4050H along with a ALC1220. I been trying to figure a way to modify the Realtek driver and get rid of this D2 power down mode, registry tricks don't work, the driver changes them back immediately. I found a Ubuntu Linux thread describing this exact audio problem for the P620 and the solution was creating a helper to "prevent the device to go in to sleep mode". Seems like Sound Keeper is that helper.

  16. #166
    HHH03

    Is it possible to get the Sound Keeper v1.2.0 version? I want to test it on Windows 11 since there's been quite a few updates lately.

  17. #168
    HHH03

    Does build v1.2.0 work correctly with Windows 10? It definitely doesn’t work with Windows 11.

  18. #169
    VEG Author

    Yeah, it should work on Windows 10.

  19. #170
    Anton

    Whats new with 1.2.1 version?

  20. #171
    VEG Author

    Anton, one of the new features of v1.2.0 was not compatible with Windows 11, so it was disabled on the affected OS in v1.2.1. Changelog is in the readme file, also it is described in detail in the comment #162.

  21. #172
    viz

    Hola !

    It seems like the app is not working anymore on my Win11 machine since I reinstalled Windows. I tried naming it SoundKeeperDigital.exe as before for my Z5500 but I don't see it running on my speakers (still shows No Digital Data on my control pod). I can see the proess running in task manager though. Any special trick needed? Thanks !

  22. #173
    VEG Author

    Did you try the latest version 1.2.1? Try different modes, some of them should help.

  23. #174
    viz

    Ah nevermind, I've changed it to SoundKeeperSineF10A5 and now it stays on. Thanks !

  24. #175
    VEG Author

    viz, try to find lowest numbers when it still works for you (e.g. F1A1), and post the results here. It may help somebody else.

  25. #176
    viz

    @VEG: v1.2.1 with F1A1 works on my system (SoundKeeperSineF1A1.exe). Specs are Win11 64bit, X570 Elite with Realtek ALC1200, Logitech Z-5500

  26. #177
    Ver Greeneyes

    FWIW, the default "inaudible" type causes an annoying high-pitched whine when the Loudness Equalization audio enhancement is enabled if no other sound is playing (I guess it gets scaled all the way up), at least for my Bluetooth devices. Using Sine made the whine go away.

  27. #178
    VEG Author

    Ver Greeneyes, the default inaudible mode uses the smallest possible amplitude 0.00003 for 16-bit output. Does that audio enhancement increase this amplitude that much, that it becomes noticeable? Interesting. Now it flips the lowest bit every sample. Probably, Sound Keeper should make it with much lower frequency, like 1Hz by default. Thanks for the report.

    BTW, did you try Zero mode? Probably, it would work for you.

  28. #179
    Ver Greeneyes

    I don't know if Zero mode would work for all my devices - I think some of them detect complete silence and turn off. I also noticed some weird popping noises with the default Sine (F1A1) - so far F5A1 seems to work better. I think the combination of Loudness Equalization and the lossy Bluetooth codec is what makes this particularly audible.

  29. #180
    Ver Greeneyes

    I suddenly got some pretty bad stuttering with F5A1 as well. Now trying F2A5 to see if a bit more amplitude helps prevent this behavior (I might just have to turn off loudness equalization, but it can be very helpful).

  30. #181
    Enn

    Thank you very much!
    It saves me from ALC4082 annoying popping noises by using default Sin stream type at WIN11.

  31. #182
    JR

    Thank you!
    I use a Teufel Concept C (USB connected) for superior stereo but it shuts off after 10 min of no sound, which is way to short.
    F1A1 did not keep it alive but F10A5 works perfect