WinMute icon indicating copy to clipboard operation
WinMute copied to clipboard

Not Unmuting after Unlock on Discrete GPU

Open jbienz opened this issue 9 months ago • 9 comments

I have WinMute set to mute on system lock and restore when unlocked:

image

But when I unlock the next day, the audio is still muted.

I have enabled logging and I believe the problem is that WinMute seems to lose track of the NVidia discrete GPU audio device. WinMute sees NVIDIA High Definition Audio on system lock, but for some reason doesn't see it on system unlock:

[2023-11-04 17:11:57] Mute Event: Workstation Lock start
[2023-11-04 17:11:57] Saving mute status
[2023-11-04 17:11:57] Found audio endpoint "U28E590 (HD Audio Driver for Display Audio)"
[2023-11-04 17:11:57] Found audio endpoint "Speakers (Realtek(R) Audio)"
[2023-11-04 17:11:57] Found audio endpoint "Headphones (Jabra SPEAK 510 Bluetooth)"
[2023-11-04 17:11:57] Found audio endpoint "Headphones (Oculus Virtual Audio Device)"
[2023-11-04 17:11:57] Found audio endpoint "U32J59x (NVIDIA High Definition Audio)"
[2023-11-04 17:11:57] Found audio endpoint "U28E590 -2 (5- HD Audio Driver for Display Audio)"
[2023-11-04 17:11:57] Muting workstation
[2023-11-04 17:12:29] Mute Event: Display Standby start
[2023-11-04 17:12:29] Muting event already active. Skipping status save
[2023-11-04 17:17:06] Mute Event: Display Standby stop
[2023-11-04 17:17:47] Mute Event: Display Standby start
[2023-11-04 17:17:47] Muting event already active. Skipping status save
[2023-11-04 22:30:00] Muting event already active. Skipping status save
[2023-11-04 22:30:00] Mute Event: Quiet Hours startet
[2023-11-04 22:30:00] Found audio endpoint "Speakers (Realtek(R) Audio)"
[2023-11-04 22:30:00] Found audio endpoint "Headphones (Jabra SPEAK 510 Bluetooth)"
[2023-11-04 22:30:00] Found audio endpoint "Headphones (Oculus Virtual Audio Device)"
[2023-11-05 09:30:00] Mute Event: Quiet Hours ended
[2023-11-05 09:30:00] Skipping restore since other mute event is currently active
[2023-11-05 09:30:00] Manual muting: off
[2023-11-05 14:00:37] Mute Event: Display Standby stop
[2023-11-05 14:00:47] Mute Event: Workstation Lock stop
[2023-11-05 14:00:47] Restoring previous mute state
[2023-11-05 14:00:48] Restoring: Mute true for "Speakers (Realtek(R) Audio)"
[2023-11-05 14:00:48] Restoring: Mute true for "Headphones (Jabra SPEAK 510 Bluetooth)"
[2023-11-05 14:00:48] Restoring: Mute true for "Headphones (Oculus Virtual Audio Device)"

Could you please investigate if this is a bug? I suppose it may be possible that the discrete GPU audio device isn't initialized until after sign-in. I could potentially disable power savings for that device, but it would be really wonderful if WinMute could monitor for audio devices being added even after unlock and restore them to their previous state. This could be done, for example, using:

https://learn.microsoft.com/en-us/windows/win32/coreaudio/device-events

jbienz avatar Nov 05 '23 20:11 jbienz