22

I've noticed that my computer doesn't want to stay in standby or go to standby after x minutes (as set in my Power Options). Running powercfg -requests tells me that my audio driver is keeping my computer awake... "An audio stream is currently in use"... similar to what was seen in question/answers to uTorrent prevents computer from entering sleep state. Except I'm not running uTorrent, nor any torrenting application.

I know I can (and have, for now) set an override with powercfg -requestsoverride "<audio driver name>" system, but I'm more curious about what is keeping an open audio stream. The only applications I have left open while away are Steam and Trillian. My only guess is that Steam is the culprit because it has an entry in the Volume Mixer, but I can imagine that any application that could play audio at any time might have an entry in there, even if it's not currently using an audio stream.

Is there a way to tell which application(s) is currently using an audio stream (and thus keeping my computer awake)? If it is any help, my hardware/driver is Realtek High Definition Audio.

Additionally, and this is probably asking too much, is there a way to keep known naughty applications from keeping the computer awake? For example, as seen in the comments below, Steam was the culprit, but it shouldn't be hogging an audio stream the whole time just for the chance that I get a message. (I'm assuming this is a bug in the latest version of Steam since this was not an issue in the past.) But I don't like having override set for all audio because, e.g., I could have music playing in VLC or something in which case I don't want my computer to standby.

jpatton
  • 344

4 Answers4

13

You can use Process Explorer to find out what programs are using particular handles and DLLs.

  1. Run powercfg /requests in an administrator command prompt, and confirm that an audio device is preventing the computer from sleeping

  2. Run Process Explorer

  3. Click the "Find Handle or DLL" button and enter audioses.dll. You should see a list of applications using this DLL.

  4. Then pick apps from the list that you think might be attempting to play or record audio, and close them one at a time

  5. After closing each one, rerun powercfg /requests and see if the audio device disappears from the list. If it has, then you now know which app was causing the problem.

Assuming your other Windows sleep settings are correct, your computer should now sleep correctly.

LWC
  • 1,355
3

Another culprit of keeping Windows from entering standby mode due to "An audio stream is currently in use":

The input signal from your microphone is forwarded to your speakers.

Solutions:

  1. Disconnect microphone
  2. Disable listen mode
0

Check for any program presenting an activity indicator for microphone. For example, if the Windows "Sound" properties dialog is open on the "Recording" tab, select another tab or even close the dialog.

-1

For me after uninstalling a lot of software a serching for hours it was the Software Razer chroma visualizer that was using the realtek audio .