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

The codec is being used, can't reconfigure #2

Open
skindstrom opened this issue Oct 16, 2017 · 3 comments
Open

The codec is being used, can't reconfigure #2

skindstrom opened this issue Oct 16, 2017 · 3 comments

Comments

@skindstrom
Copy link

Love the script, this hissing has been haunting me for a year until I found your solution.

It worked great when I was using arch linux, but I recently switched to Fedora. In Fedora, after running the script the hissing continues. The following error messages are posted in dmesg and journalctl.

snd_hda_codec_realtek hdaudioC0D0: hda-codec: reconfiguring
snd_hda_codec_realtek hdaudioC0D0: The codec is being used, can't reconfigure.

Some googling showed no results. Did anyone else encounter this issue?

@dakatapetrov
Copy link
Owner

Hi @SimonKinds

Maybe pulseaudio doesn't turn off for some reason. Can you verify that systemctl --user stop pulseaudio.s* stops pulseaudio?

I'll try to investigate it this weekend.

P.S. You can start pulseaudio again with systemctl --user start pulseaudio.service

@skindstrom
Copy link
Author

The same issue occurs, even after making sure that no instance of pulseaudio is running.

It's not a very high priority, as I might not continue using Fedora. I was mostly interested if someone else had seen this issue.

@skindstrom
Copy link
Author

Seems like your hunch was correct, pulseaudio was not properly stopped.
The issue was that I was using Gnome, which also starts a pulseaudio service for the user gdm (Debian_gdm on Debian), resulting in one service for the user and one for Gnome.

Only after running

sudo -u gdm XDG_RUNTIME_DIR=/run/user/120 systemctl --user stop pulseaudio.s*
systemctl --user stop pulseaudio.s*

would pulse be fully stopped and could be reconfigured.
Where 120 is the uid of the user gdm.

Not yet sure how to solve it in a good way, but it works in the meantime.

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

2 participants