Error message

Access denied. You may need to login below or register to access this page.

Access Denied / User log in

Please let our ADS show!

This sites offers only FREE software and it's supported by a few advertisement boxes (no intrusive popups).
Please:

  • disable your AdBlocker by adding CoolSoft website to whitelist
  • give the proper cookie consent
  • enable JavaScript for this website

This seconds wait is to let you update your browser configuration...

Ok, I've done the required changes... now show me your content!
!!! Please enable JavaScript !!!

Quick login

Use your existing social account to login without registration: no confirmation mail to wait for, no new password to remember, quick, easy, safe.

...or use your CoolSoft account

Enter your CoolSoft username.
Enter the password that accompanies your username.
Add reply | CoolSoft

Add reply

Please let our ADS show!

This sites offers only FREE software and it's supported by a few advertisement boxes (no intrusive popups).
Please:

  • disable your AdBlocker by adding CoolSoft website to whitelist
  • give the proper cookie consent
  • enable JavaScript for this website

This seconds wait is to let you update your browser configuration...

Ok, I've done the required changes... now show me your content!
!!! Please enable JavaScript !!!
(If you're a human, don't change the following field)
Your first name.
(If you're a human, don't change the following field)
Your first name.

Warning!

You're posting your message as anonymous user.

By registering you'll be allowed to receive notifications of post replies and new threads.
Registration is really quick and only requires you to choose an username and provide a valid email address.

Click here to to register.

A confirmation mail will be sent to this address.
Your email address won't be published.

More information about text formats

Filtered HTML

  • Allowed HTML tags: <a> <blockquote> <br> <cite> <code> <dd> <del> <dl> <dt> <em> <img> <li> <ol> <p> <pre> <s> <span> <strike> <strong> <ul>
    Allowed Style properties: background-color, color, font-size, font-style, height, text-align, text-decoration, text-transform, width
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <pre>, <c>, <cpp>, <csharp>, <drupal5>, <drupal6>, <javascript>, <php>. The supported tag styles are: <foo>, [foo].
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.
Cancel
Posts: 14
Joined: May 24, 2017 - 20:24
Re: Realtek driver hang

Tested the "requestsoverride" command at about the time this thread commenced.  No change.

Posts: 1972
Joined: March 25, 2012 - 01:19
Re: Realtek driver hang

So my idea of pausing the stream when it's not required is probably the best choice...

KaleidonKep99 wrote:

In that case, I guess the only way to get around this would be to suspend the playback thread when there's no MIDI activity (BASS_ChannelPause), then wake it up again (BASS_ChannelPlay) when needed.

No, sadly it's not. VMS already calls BASS_ChannelPlay/Close at virtual device start/stop.
I've tried running the same powercfg /requests command on my side (thanks to @tabcola for the tip) and I've got a similar output than yours (the audio device is kept in use when VMS is running, even if no device was ever used).
Since I don't have a Realtek audio device but an Conexant/Intel one, my PC went to sleep without issues.

So I've debugged VMS startup step-by-step and I've found that the device is marked in use just after calling BASS_Init(), way before the BASS_Play() call.
Delaying BASS_Init() (and so calling BASS_Free() when a device is closed) could lead to unacceptable delays in device startup, need to find a better way...

Meanwhile, this is a workaround that could help; it was posted for Windows 7 but it works on Windows 10 too:
https://answers.microsoft.com/en-us/windows/forum/windows_7-performance/...

In short:

  1. run powercfg -requests with VMS running
  2. take note of driver name (in this case it's Realtek High Definition Audio)
  3. run this command in a privileged prompt:
    powercfg -REQUESTSOVERRIDE DRIVER "Realtek High Definition Audio" SYSTEM

In short, it forces the system to ignore power request coming from a specific driver.
It worths a try...

Posts: 102
Joined: March 8, 2014 - 22:29
Re: Realtek driver hang
tab cola wrote:

Just thought I'd share that I have the same issue, except it's the virtualMIDIsynth.exe process that is holding a no-sleep request through the Realtek driver as long as the process remains open, regardless of whether anything is playing or not and regardless of the priority setting of virtualMIDIsynth.exe.

I had the same problem once with an older version of VLC where pausing or stopping play didn't release the audio driver no-sleep request, only closing VLC released it.

You can see what things are blocking sleep mode by running "powercfg /requests" in an admin-elevated cmd prompt or powershell. This is what mine looks like while virtualMIDIsynth.exe is running regardless of audio output:

PS C:\WINDOWS\system32> powercfg /requests
DISPLAY:
None.

SYSTEM:
[DRIVER] Realtek High Definition Audio (HDAUDIO\FUNC_01&VEN_10EC&DEV_1220&SUBSYS_10438735&REV_1000\4&11cc5c2&0&0001)
An audio stream is currently in use.

AWAYMODE:
None.

EXECUTION:
None.

PERFBOOST:
None.

ACTIVELOCKSCREEN:
None.

I know that isn't any help really, but this isn't a huge issue either, I just have to remember to close VMS when I'm not using it.

So my idea of pausing the stream when it's not required is probably the best choice...

KaleidonKep99 wrote:

In that case, I guess the only way to get around this would be to suspend the playback thread when there's no MIDI activity (BASS_ChannelPause), then wake it up again (BASS_ChannelPlay) when needed.

Posts: 14
Joined: May 24, 2017 - 20:24
Re: Realtek driver hang

Buona giornata,

Installed version 2.7.  Played file.  Closed player.  Powercfg -requests...

SYSTEM:
[DRIVER] Realtek High Definition Audio (HDAUDIO\FUNC_01&VEN_10EC&DEV_1220&SUBSYS_10438735&REV_1000\4&11cc5c2&0&0001)

Coolsoft icon remained in tray.  Exited the program.  Realtek driver released.  Apparently no change in behavior.

Best,  kros

Posts: 1
Joined: April 25, 2017 - 02:09
Re: Realtek driver hang

Just thought I'd share that I have the same issue, except it's the virtualMIDIsynth.exe process that is holding a no-sleep request through the Realtek driver as long as the process remains open, regardless of whether anything is playing or not and regardless of the priority setting of virtualMIDIsynth.exe.

I had the same problem once with an older version of VLC where pausing or stopping play didn't release the audio driver no-sleep request, only closing VLC released it.

You can see what things are blocking sleep mode by running "powercfg /requests" in an admin-elevated cmd prompt or powershell. This is what mine looks like while virtualMIDIsynth.exe is running regardless of audio output:

PS C:\WINDOWS\system32> powercfg /requests
DISPLAY:
None.

SYSTEM:
[DRIVER] Realtek High Definition Audio (HDAUDIO\FUNC_01&VEN_10EC&DEV_1220&SUBSYS_10438735&REV_1000\4&11cc5c2&0&0001)
An audio stream is currently in use.

AWAYMODE:
None.

EXECUTION:
None.

PERFBOOST:
None.

ACTIVELOCKSCREEN:
None.

I know that isn't any help really, but this isn't a huge issue either, I just have to remember to close VMS when I'm not using it.

Posts: 1972
Joined: March 25, 2012 - 01:19
Re: Realtek driver hang

This is a proof-of-concept implementation of "dynamic priority".
VMS now starts at Normal priority, then it switches to High when at least one device is in use and gets back to Normal when all the devices have been released.

Could you please check if it fixes the Realtek issue?

PS: this is interesting regardless Realtek issue, since there's no need to set VMS process at High priority when not in use...

Attachments
1 file(s) attached
Posts: 102
Joined: March 8, 2014 - 22:29
Re: Realtek driver hang

This is really weird... I tested it on my desktop, and it is able to suspend when the playback thread's priority is set to Normal.
What I forgot to mention is that both the playback thread AND the host process need their priority to be set to Normal. You can set  the priority of a thread by using Process Hacker.

Here:

In that case, I guess the only way to get around this would be to suspend the playback thread when there's no MIDI activity (BASS_ChannelPause), then wake it up again (BASS_ChannelPlay) when needed.

Posts: 14
Joined: May 24, 2017 - 20:24
Re: Realtek driver hang

Opened a MIDI, which launched VMS

Played the MIDI file then closed the player.  VMS icon still active in notification area

Openied Task Manager|Details and changed priority to NORMAL

Realtek driver still in use

Exited VMS

Realtek driver released;  system able to suspend

          Good try!  Thanks

Posts: 1972
Joined: March 25, 2012 - 01:19
Re: Realtek driver hang
KaleidonKep99 wrote:
The Realtek driver keeps the PC online whenever it detects an audio stream inside a thread and/or process with priority set to Time Critical!

This is a really good catch, thank you so much!

@krosnafone: could you please test it and confirm that, after you've reduced VirtualMIDISynth.exe process priority down to Normal, you'll be able to suspend your PC again?

If yes, I could then add a new feature to automatically reduce process priority when no device is in use...

Posts: 102
Joined: March 8, 2014 - 22:29
Re: Realtek driver hang

The Realtek driver keeps the PC online whenever it detects an audio stream inside a thread and/or process with priority set to Time Critical!