Comment 7 for bug 1866194

Revision history for this message
Pierre Equoy (pieq) wrote : Re: After connecting a Bluetooth headset or speaker, it shows up in the sound output options but the sound keeps being emitted from the internal laptop speaker

Thanks a lot for the input, Ken!

You were right, it is not related to BT, but to the sound devices being added and removed.

I happend to have a Zoom microphone that can be connected as USB and creates a new audio interface (both input and output). Here are my new tests and findings:

1. Plug the Zoom USB device
-> it appears in the Sound Settings Output Device and is automatically selected
2. Press Test and check the sound output
-> the sound outputs on the internal speakers (NOK)

After some investigation using pactl, I found how to fix the issue, for both the USB audio interface and the Bluetooth speaker:

1. Make sure the audio interface you want is connected (in my case, I connected both the USB and the Bluetooth speaker):

$ pactl list short sinks
1 alsa_output.pci-0000_00_1f.3.analog-stereo module-alsa-card.c s16le 2ch 48000Hz SUSPENDED
6 alsa_output.usb-ZOOM_Corporation_H2n_000000000000-00.iec958-stereo module-alsa-card.c s16le 2ch 44100Hz SUSPENDED
7 bluez_sink.88_C6_26_1A_9E_AF.a2dp_sink module-bluez5-device.c s16le 2ch 44100Hz SUSPENDED

2. Play an audio stream, for instance a Youtube video. The output should come from the internal speakers, and can be seen in pactl as well:

$ pactl list short sink-inputs
10 1 16 protocol-native.c float32le 2ch 44100Hz

3. Ask pactl to move the stream to the desired sink (output); for instance, the Bluetooth speaker:

$ pactl move-sink-input 10 7

-> The sound outputs to the Bluetooth device! \o/

However, going back to Sound Settings (where the "Output Device" shows my Bluetooth Speaker) and clicking Test still outputs to the internal speakers....

Do you think it could be a GNOME issue? What should I do next?