-
-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[BUG] Unable to switch port on a card with multiple sinks/sources #107
Comments
I'm having this same problem. Command: cat /proc/asound/cards
Command: pacmd list-sinks
|
@paloha thanks for the detailed account of your research. There's a lot of stuff in the logs yet it's still a bit difficult to figure out where it goes wrong. I think we should first try to narrow the problem down as to where it arises, I have a strong suspicion that it has little to do with SSI but rather with PulseAudio. Also, I noticed that you provided a preferred profile for your output:
Could you remove it from the port (set to As to why the playback stops, I think we can attribute it to the fact that the sink gets switched twice, first to Speakers and immediately after to HDMI3:
Not sure why that happens, but it's very unlikely it's caused by the indicator. |
@claudio4git thanks for confirming you have the same problem. @yktoo thanks for your reply. As per your recommendation, I have tried to remove the preferred profile from my speakers. I again added your ppa (I removed it after I submitted this issue a while ago) and installed the switcher according to https://yktoo.com/en/software/sound-switcher-indicator/ using the commands: sudo apt-add-repository ppa:yktooo/ppa
sudo apt-get update
sudo apt-get install indicator-sound-switcher In the Pulse Audio Volume Control > Configuration I have changed the Profile of Now the experiment:
At least now there is the an error listed in the log:
The error made me notice an oddity - if I try to switch to a source other than the speakers, the switcher seems to work. E.g. I tried to switch to the Docking station headphones output and all worked as expected and while the video playback was on - no need to restart the video player or anything. The output from the terminal was this:
If I try to select the speakers now during the playback I get the error again and the sound stays where it was active the last time.
If I try to use the Ubuntu Sound Settings (USS) to set the speakers, they work, but I also noticed it again activates the If I try all this without the Dock connected, the output device in the USS changes to Do you please have any other suggestions? I really like the switcher and It would help me a lot if it would work. |
There's a whole bunch of stuff going on in your post. Firstly, by removing the preferred profile I was referring to the SSI's port setting, which you find in the Preferences, not the profile you configure in PulseAudio (using PAVC or anything else): Secondly, when you set the actual profile to Off you effectively disable that device. But when you click a port menu item in SSI menu, the indicator tries to pick the most appropriate profile (or uses the preferred one, if configured), so I guess it then assigns a valid profile to the card from the Off value that you selected. So that's expected. Thirdly, this behaviour:
is apparently caused by My advice would be to remove any configuration of SSI ( |
Hello @yktoo, thank you for pointing me in the right direction. I have run
So now I change the output to the following sink
The SSI still thinks the previous RODE-NT output is selected. Now I switch back to RODE-NT output using PAVC and this is the output of the SSI:
Now I do the change to what appear in SSI as
Now I change back to RODE-NT in SSI, sound works and this is the output of SSI:
The Interestingly, in the preferences of SSI, it seems to me the "correct" sink for the speakers is not even listed, i.e. I do not see any Is there any chance SSI just somehow fails to properly map what in the SSI appears as "ports" to the correct sink? |
Hello @yktoo, I was wondering if you had time to check my last comment. |
I have the same problem... Unable to switch sound output. I used SSI on several computer, but installing it on my new computer, indicator just doesn't work... And it looks greyed out on indicator line. If I select another device nothing happens... And if I do refresh then it jumps back to "default" device... OS: Ubuntu 20.04.3 LTS When switch happens there is just one line there:
Comparing to what other guys posted, they have multiple lines here... So I don't think actual switch is done...
cat /proc/asound/cards
pacmd list-sinks
|
Thanks for the input, I hope I nailed the problem. SSI might incorrectly handle stream mapping/switching in case a card has multiple sinks (or sources), which was your case too. It would erroneously grab the first stream on the card, and if it's a wrong one, it would assume a profile switching is necessary. On top of that it'd redundantly try to activate a profile when it's already active on the device. This is visible in the log you attached: on menu item click SSI requested PulseAudio to activate profile This must be fixed now. On a side note, I find PulseAudio's handling of profiles pretty unstable, it's very easy to screw up the entire sound system by switching profiles a few times. The only way to fix that afterwards is restarting the daemon with |
@yktoo thank you very much for your time working on the issue. Can I help you check if the bug is resolved by installing and trying out the dev version? |
@paloha Testing it would help indeed, please try installing from the |
@yktoo I have just installed from the dev branch. I had to remove the I can confirm that the bug is resolved. |
Thanks for testing, release will come shortly. |
Released in 2.3.8. |
Just wanted to mention that it really fixed the problem. Thank you!!!! |
Describe the bug
I am not able to change the output device using the Switcher. The sound coming from the last selected device using the Ubuntu sound settings always stops after interacting with the Switcher. I have to restart the playback app only to get the output of the previously selected output device using the Ubuntu sound settings.
To Reproduce
Steps to reproduce the behavior:
Experimenting with just the two output devices of my notebook
indicator-sound-switcher -vv
and this is the output:Situation after connecting the Docking station with 2 additional sound output devices
Through the docking station, I have another two sound devices available. The docking station's headphones output and a RODE-NT USB microphone which has a headphones output for monitoring. All show up in the Switcher's menu.
If I connect the notebook to my docking station and set the output device in the Ubuntu sound settings to the speaker, after interacting with the Switcher the sound stops as usual, but now when I restart the player, the sound starts from the docking station headphones output. But I guess the reason for this is that I have set the Docking station's headphones as a fallback device in the PulseAudio Volume control. Anyways, the problem is the same for all output devices because I am not able to switch even to the RODE-NT USB output using the Switcher.
Expected behavior
I expect the Switcher to switch between my output devices successfully and seamlessly without me having to restart the playback app.
Screenshots
I do not think the screenshots are necessary, if needed I will provide upon request.
Desktop (please complete the following information):
Indicator log:
The output of the log is used in the "steps to reproduce" section
Additional context
List of my sound devices
cat /proc/asound/cards
(when connected to the docking station):List of the sinks
pacmd list-sinks
:Last notes: after installing the Switcher I have restarted my computer. Also I have installed the Switcher on my desktop pc with the same OS and all works as expected.
The text was updated successfully, but these errors were encountered: