Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not Unmuting after Unlock on Discrete GPU #31

Open
jbienz opened this issue Nov 5, 2023 · 9 comments
Open

Not Unmuting after Unlock on Discrete GPU #31

jbienz opened this issue Nov 5, 2023 · 9 comments
Assignees
Labels
Milestone

Comments

@jbienz
Copy link

jbienz commented Nov 5, 2023

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

@lx-s
Copy link
Owner

lx-s commented Nov 6, 2023

Hi there!

this sounds like it might be related to #30 (link to the post: #30 (comment)).
In the last posts of this issue you’ll find a beta version that should work. Would you like to try and test it?

@lx-s lx-s self-assigned this Nov 6, 2023
@lx-s lx-s added the bug label Nov 6, 2023
@lx-s lx-s added this to the 2.5 milestone Nov 6, 2023
@jbienz
Copy link
Author

jbienz commented Nov 15, 2023

Sorry it took me so long to get back to this. Yes, it appears the beta update is helping. I did have one time that I thought it didn't work, but for some reason WinMute wasn't running. I think that was a fluke with my machine.

I'll report back if I have any future issues, but for now I think this is resolved. THANK YOU!

@jbienz
Copy link
Author

jbienz commented Nov 15, 2023

P.S. WinMute helps my son sleep at night in a room that's right across from my office. It stops discord and other notifications from waking him up. I PayPal'd you a donation, so please enjoy a coffee on us and thanks!

@lx-s
Copy link
Owner

lx-s commented Nov 16, 2023

I think that was a fluke with my machine.

You can go to the WinMute settings and check if "run on startup" is still set. Maybe it got disabled.
Great that it's working now!

P.S. WinMute helps my son sleep at night in a room that's right across from my office. It stops discord and other notifications from waking him up. I PayPal'd you a donation, so please enjoy a coffee on us and thanks!

Thank you very much :)

@lx-s lx-s closed this as completed Nov 16, 2023
@Eelstone
Copy link

P.S. WinMute helps my son sleep at night in a room that's right across from my office. It stops discord and other notifications from waking him up. I PayPal'd you a donation, so please enjoy a coffee on us and thanks!

Sorry for a potentially stupid question, but I also wanted to donate after excellent support (on excellent software). How do you find account number or paypal to Alexander. I have looked for it, but could not find.

@lx-s
Copy link
Owner

lx-s commented Nov 16, 2023

Oh - wow! That's extremly nice of you both. Thank you! 😀

The link is found here: https://github.com/lx-s/WinMute on the right side
grafik

Thanks again 😊

@jbienz
Copy link
Author

jbienz commented Nov 20, 2023

Hey @lx-s, I hate to ask for this to be reopened but it seems to still be erratic for me. At first I thought it was because it wasn't launching on startup, but I did get that fixed.

Here's the log file:

WinMute.log

The important audio device in question is

U32J59x (NVIDIA High Definition Audio)

You'll notice in the block for todays session it doesn't do any Restore, even though devices are found:

[2023-11-20 09:58:45] Starting new session...
[2023-11-20 09:58:45] Found audio endpoint "U28E590 (4- HD Audio Driver for Display Audio)"
[2023-11-20 09:58:45] Found audio endpoint "U28E590 -2 (2- HD Audio Driver for Display Audio)"
[2023-11-20 09:58:45] Found audio endpoint "U32J59x (NVIDIA High Definition Audio)"
[2023-11-20 09:58:45] Found audio endpoint "Speakers (Realtek(R) Audio)"
[2023-11-20 09:58:45] Found audio endpoint "Headphones (Jabra SPEAK 510 Bluetooth)"
[2023-11-20 09:58:45] Found audio endpoint "Headphones (Oculus Virtual Audio Device)"
[2023-11-20 09:58:46] Starting WinMute 2.4.1.0
[2023-11-20 09:58:46] Loading settings:
[2023-11-20 09:58:46] 	Restore volume: Yes
[2023-11-20 09:58:46] 	Mute delay: 0
[2023-11-20 09:58:46] 	Mute on lock: Yes
[2023-11-20 09:58:46] 	Mute on display standby: No
[2023-11-20 09:58:46] 	Mute on logout: No
[2023-11-20 09:58:46] 	Mute on suspend: No
[2023-11-20 09:58:46] 	Mute on shutdown: No
[2023-11-20 09:58:46] 	Show notifications: Yes
[2023-11-20 09:58:46] 	Mute on bluetooth: No
[2023-11-20 09:58:46] 		Use devicelist: No
[2023-11-20 09:58:46] 	Mute on WLAN: No
[2023-11-20 09:58:46] 		Use allowlist: No
[2023-11-20 09:58:46] 	Mute specific endpoints only: No
[2023-11-20 09:58:46] WinMute initialized

I'm still running the beta build, BTW.

@lx-s lx-s reopened this Nov 21, 2023
@lx-s
Copy link
Owner

lx-s commented Nov 21, 2023

Ah, shot. I'll look at it

@lx-s
Copy link
Owner

lx-s commented Feb 3, 2024

Sorry for coming so late to this bug again...

To reiterate your scenario:

  1. You leave your PC running the whole time
  2. In the evening, when your display goes to standby, WinMute mutes your PC. Your PC does not enter standby or hibernation or anything?
  3. In the morning, when you start using your pc again, WinMute does not unlock your U32J59x (NVIDIA High Definition Audio) ?

Thank your for your help and patience

@lx-s lx-s modified the milestones: 2.5, 2.6 Feb 9, 2024
@github-project-automation github-project-automation bot moved this to In progress in WinMute Aug 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: In progress
Development

No branches or pull requests

3 participants