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

MOre important than you might know? #23

Open
Lalarian opened this issue Jun 27, 2020 · 9 comments
Open

MOre important than you might know? #23

Lalarian opened this issue Jun 27, 2020 · 9 comments

Comments

@Lalarian
Copy link

Lalarian commented Jun 27, 2020

Hello!

I just wanted to report, that I am still using your module, despite having Kernel 5.7 on my Manjaro system
The reason is that after every suspend my system defaults to nvidia's hdmi audio output. I tried about 10(!) different methods for configuring this output as not default in pulse or disabling this output completely, as I don't need it at all - with no effect at all! The nvivida hdmi audio output inevitably takes priority once it's loaded!
So I created a systemd.service as a one shot, that uses your module for disabling the output automatically after every suspend or boot.
It's annoying having to do such workaround, because of the stuborn nvidia driver, but I am glad that the module is there and still working, and I hope it will continue to do so.
Thank you! :)

@Lalarian Lalarian changed the title MOre important than you might kow? MOre important than you might know? Jun 27, 2020
@nickclyde
Copy link

@Lalarian can you share your service unit file? I'm having this exact same issue on Arch right now - system defaults to HDMI audio on wake from suspend, but I don't ever use it.

@Lalarian
Copy link
Author

Lalarian commented Jul 6, 2020

Yes, here it is:
`cat /etc/systemd/system/nvidiahdmidisable.service
[Unit]
Description=Disable nvidia HDMI audio output using nvhda
After=suspend.target

[Service]
StandardOutput=file:/proc/acpi/nvhda
Type=oneshot
ExecStartPre=/bin/sleep 3s
ExecStart=echo OFF

[Install]
WantedBy=suspend.target default.target
`
Of course the nvhda module has to be loaded before.
I am no expert for this by far, and it's not perfect and it sometimes fails, but for the most it does what it's supposed to.
Would be great if soemone could improve on it's flaws (or of course find a more direct solution).
:)

@nickclyde
Copy link

Awesome, thanks a bunch!!

@hhfeuer
Copy link
Owner

hhfeuer commented Jul 6, 2020

Please check if disabling (commenting out)
module-stream-restore
in pulse config fixes things without turning off the audio device.

@nickclyde
Copy link

@hhfeuer disabling that module didn't seem to resolve the issue for me

@hhfeuer
Copy link
Owner

hhfeuer commented Jul 7, 2020

Ok, I had problems with that module and hdmi before but seems to be something different. Another candidate for this might be
module-switch-on-connect
prior to pulse 14 which has a workaround for it.

@nickclyde
Copy link

Hey, disabling module-switch-on-connect did the trick!! Thanks @hhfeuer!

@hhfeuer
Copy link
Owner

hhfeuer commented Jul 7, 2020

Looking at the pulse docs, this module shouldn't be loaded per default because it's "too aggressive" and doesn't have much use anymore anyway. May open a bug report with Arch/Manjaro so they don't enable it per default.

@Lalarian
Copy link
Author

Lalarian commented Jul 8, 2020

So that's the reason why it worked in Ubuntu just few weeks, ago and not on Manjaro. TY!
But: I id not find "load-module module-switch-on-connect" in one of the config files. There only is "load-module module-switch-on-port-available" in /etc/pulse/default.pa
Probably it's "module-device-restore" or "module-stream-restore" here. Got to try thi out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants