fth0 wrote:Thank you for testing again. Your latest observations would make sense to me, if the driver power requests relate to the audio input (microphone) of the webcam only. Because only if the webcam is available to the host, the microphone is one of the audio inputs of the host, and can be provided as a possible audio input device to the guest. If the webcam is available to the guest instead, it is not available to the host (neither the audio nor the video input).
vb_user_6128 wrote:fth0 wrote:Another thing came to mind: The webcam also has a microphone, and when the webcam is connected to the host and not to the guest, the microphone is provided to the guest as one of the audio inputs. Try if disabling the Audio Input or using the Null Audio Driver as Host Audio Driver makes a difference.
Do you mean go to Settings->Audio and uncheck the "Enable Audio Input" box?
Yes, and the second alternative is to change the
Host Audio Driver setting directly below the checkbox.
I ran some more tests and discovered the following:
1. Leaving "Host Audio Driver" set to "Windows DirectSound", "Audio Controller" set to "ICH AC97", "Enable Audio Output" checked but unchecking "Enable Audio Input" does not fix my problem. The webcam still shows up when I run "powercfg /requests" after starting the VM Guest.
2. Setting "Host Audio Driver" to "Null Audio Driver" does prevent the webcam from showing up when I run "powercfg /requests" after starting the VM Guest, as you suggested.
3. If I pick either of the other options for "Audio Controller" (SoundBlaster 16, Intel HD Audio), the webcam briefly appears when I run "powercfg /requests" while the VM Guest is loading, then goes away. The audio is very glitchy and cuts out when I test it within the VM Guest in this case.
It seems my only options at this point for preventing the webcam from showing up on the "powercfg /requests" list while the VM Guest is running (and therefore preventing my PC from automatically sleeping) are:
1. Add a USB filter for the webcam, start the VM Guest, then uncheck the webcam from the "Devices" -> "USB" list to permit other applications to access the webcam
2. Disable audio completely by changing "Host Audio Driver" to "Null Audio Driver", as explained above
Why doesn't unchecking "Enable Audio Input" and leaving "Host Audio Driver" set to "Windows DirectSound", "Audio Controller" set to "ICH AC97", and "Enable Audio Output" checked work? The webcam has a mic (audio input), but no speaker (audio output), so I'm not sure why unchecking "Enable Audio
Output Input" isn't enough to disable the webcam.