Ubuntu bluetooth наушники отключаются

Ubuntu 20.04 no sound out of Bluetooth headphones

This is on a machine I upgraded from 18.04 to 20.04 a few days ago. No issues at all getting sound to play out of headphones on 18.04. The headphones are paired with Bluetooth. I unpaired and repaired them just to be sure. The settings panel for sound has them as an output option and I can select it without issue. However, no sound ever comes out of the headphones. I’ve even adjusted the volume both in the settings panel, in alsamixer and in pavucontrol. Nothing changes. I see no errors in the bluetooth service log. Output of:

@K7AAY: there is a huge amount of information in the output, far more than I can put in here. I put it in a pastebin: pastebin.com/VJ5EQcFb

@Raffa: already done, along with uninstalling and reinstalling Alsa and such (option #2). I try to do my homework before ever asking questions.

@Raffa, option 3 worked for me on Ubuntu 20.04LTS : I could connect to my bluetooth speaker but even though I chose it as sound output, the sound would still come out of my HDMI screen. Now it works : thank you !

7 Answers 7

This is a bug (pulseaudio #832, launchpad #1866194) with new version of pulseaudio in Ubuntu 20.04 where old config values have not been cleared and it is not routing to the correct device. The solution is to delete the old config and restart pulseaudio:

Open a terminal ( Ctrl+Alt+T ) and run the following commands:

mv ~/.config/pulse/ ~/.config/pulse.old systemctl --user restart pulseaudio 

A pulseaudio fix #298 is currently in progress.

nice, worked for me also, and if want to remove the old pulse config once you succeed restarting it, just: rm -rf ~/.config/pulse.old

This worked for me, but wondering if the fix was merged in for pulseaudio control, will it get updated for 20.04 at some point during system updates?

It’s not a fix, only a workaround; I installed pulse audio volume control utility:

sudo apt-get install pavucontrol 

The problem seems that Ubuntu doesn’t change all the audio sources to the Bluetooth device, in the volume control utility you will see this more clearly, the Bluetooth device is connected but not used as audio playback device. (see pulse audio volume control utility).

Find your audio source; mine was firefox since I was playing some videos from YouTube, and select the Bluetooth playback device (mine was a Xiaomi speaker) (XMFHZ02) and change it. Your device should start outputting audio.

Читайте также:  Wireless 380 bluetooth module

thanks! It was clear as you mentioned after opening the pulseaudo volume control what the problem is. Worked for QuietComfort 35 II Headphone. It is even switching back to headphone as output after turn the headphone off and on again.

Does not work for me (Tzumi earbuds). Pavucontrol only shows plugged in audio. The a2dp driver does not load. I have to connect/reconnect. Not a big deal.

I reinstalled, and it worked, without having to reboot:

sudo apt install --reinstall pulseaudio pulseaudio-module-bluetooth 

Then re-connect the Bluetooth headset

I know this is somehow not completely relevant BUT it saved me from a problem that I had for quite long time. So. I couldn’t change audio profiles (in order to use the headsets microphone) and I could only use A2DP Sink (only for listening)

I had a similar problem, this worked for me.

Install Pulse Audio with Bluetooth module:

$ sudo apt install pulseaudio pulseaudio-module-bluetooth 

Open it and select the desired output channel in Playback tab.

The tool allows tweaking also other sound settings.

Option #3 as described here worked for me.

  • I upgraded from 19.10 to 20.04
  • When adjusting the volume via the volume up/down hotkeys the feedback sound would play through the headphones. They were also detected in the settings. The audio stream from other applications would still play through the laptop speakers.
  • The packages @Mirek mentioned, pulseaudio and pulseaudio-module-bluetooth were already installed

If you are using Ubuntu 20.04, I would recommend to replace Pulseaudio with Pipewire . It will work with all your apps, because it aims to replace both PulseAudio and JACK, by providing a PulseAudio-compatible server implementation and ABI-compatible libraries for JACK clients..

I run Ubuntu 20.04.3 and Pipewire runs very stable so far. My bluetooth headset works with Microsoft Teams now. In my case I run Bitwig, Spotify, Youtube etc. at the same time and it just works with every output device (Bluetooth Headset, RME Audio Interface, internal speakers).

I post the link for the installation steps, which worked for me: Replacing Pulseaudio with Pipewire in Ubuntu 20.04

After a few reboots, it seems to be working. I’m not sure specifically which thing worked, but here are the things I tried.

  1. Everything in this answer: Ubuntu 18.04: Audio doesn’t work unless I switch between outputs
  2. Un-pairing and re-pairing my BlueTooth headphones. I am using blueman-applet.
  3. Muting and unmuting the sound in AlsaMixer across all devices.
  4. Selecting, deselecting and reselecting the headphones output in the configuration panel for sound.
Читайте также:  Точка доступа через блютуз windows 10

Same here — installed from scratch 20.04 and no sound. Actually, Bluetooth «tester» in Settings works well. But none of the applications can emit sound.

Источник

Отключаются беспроводные наушники (pulseaudio)

У моих беспроводных наушников (популярная вещь) есть такая штука — они сами отключаются якобы от неактивности. Чтобы сберечь батарею. Вроде полезная вещь, но в последнее время стала работать странно.

Причём только в связке с такой противной программой как MS Teams (их линукс-клиент вообще крайне криво с гарнитурами дружит, постоянно сюрпризы подбрасывает, всякие аналоги вроде Zoom всегда работали гораздо стабильнее).

Если смотрю, например, видео (в firefox на youtube или в smplayer) — наушники работают, звук идёт, не отключаются.

А вот в режиме конференции в Teams в самый неподходящий момент на середине разговора (я ли говорю, или просто слушаю, не важно) — отрубаются. Магия какая-то…

Видимо, это проприетарное поделие как-то неправильно посылает сигнал об «активности» на гарнитутуру. Поменять это я скорее всего не смогу, но можно ли как-то, например, послать этот сигнал вручную, запустить некий демон, не дающий наушникам «заснуть»?

Наверное, сработает запустить любое длинное аудио/видео с громкостью на минимуме, но может есть более умный способ, заодно чтобы избежать постороннего «шипения»?

Вот как выглядит выхлоп pactl list

Card #1 Name: bluez_card.FC_58_FA_2A_83_13 Driver: module-bluez5-device.c Owner Module: 21 Properties: device.description = "MPOW H19 IPO" device.string = "FC:58:FA:2A:83:13" device.api = "bluez" device.class = "sound" device.bus = "bluetooth" device.form_factor = "headphone" bluez.path = "/org/bluez/hci0/dev_FC_58_FA_2A_83_13" bluez.class = "0x240418" bluez.alias = "MPOW H19 IPO" bluetooth.battery = "80%" device.icon_name = "audio-headphones-bluetooth" bluetooth.codec = "sbc" Profiles: a2dp_source: High Fidelity Capture (A2DP Source) (sinks: 0, sources: 1, priority: 20, available: no) a2dp_sink: High Fidelity Playback (A2DP Sink) (sinks: 1, sources: 0, priority: 40, available: yes) handsfree_head_unit: Handsfree Head Unit (HFP) (sinks: 1, sources: 1, priority: 30, available: yes) off: Off (sinks: 0, sources: 0, priority: 0, available: yes) Active Profile: a2dp_sink Ports: headphone-output: Headphone (type: Headphones, priority: 0, latency offset: 0 usec, available) Part of profile(s): a2dp_sink, handsfree_head_unit headphone-input: Bluetooth Input (type: Bluetooth, priority: 0, latency offset: 0 usec, availability unknown) Part of profile(s): a2dp_source, handsfree_head_unit 

Источник

Пропадает звук в bluetooth наушниках.

Имеются bluetooth наушники sony mdr-xb950bt. Имеется ubuntu 18.04.01. Имеется звук, но раз в случайный промежуток времени звук пропадает. При этом после некоторого времени если поставить на паузу невоспроизведённый звук догоняет. В alsamixer звук включен, в pavucontrol когда звука нет показывает, что звук есть. При подключении тех же наушников проводом звук есть. Думал, что просирает пакеты, но l2ping показал, что они просто почему- то задерживаются. Проблема имеется только при воспроизведении онлайн контента.. слёзныепросьбыопомощи

покажи вывод блютусной карты из pactl list cards

Читайте также:  Поддерживает ли wifi адаптер bluetooth

Их там 3. Звуковая плата №0 Имя: alsa_card.pci-0000_01_00.1 Драйвер: module-alsa-card.c Модуль-владелец: 7 Свойства: alsa.card = «1» alsa.card_name = «HDA NVidia» alsa.long_card_name = «HDA NVidia at 0xa4000000 irq 17» alsa.driver_name = «snd_hda_intel» device.bus_path = «pci-0000:01:00.1» sysfs.path = «/devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1» device.bus = «pci» device.vendor.id = «10de» device.vendor.name = «NVIDIA Corporation» device.product.id = «0fb9» device.product.name = «GP107GL High Definition Audio Controller» device.string = «1» device.description = «GP107GL High Definition Audio Controller» module-udev-detect.discovered = «1» device.icon_name = «audio-card-pci» Профили: output:hdmi-stereo: Digital Stereo (HDMI) выход (приёмники: 1, источники: 0, приоритет: 5400, доступно: нет) output:hdmi-surround: Digital Surround 5.1 (HDMI) выход (приёмники: 1, источники: 0, приоритет: 300, доступно: нет) output:hdmi-surround71: Digital Surround 7.1 (HDMI) выход (приёмники: 1, источники: 0, приоритет: 300, доступно: нет) output:hdmi-stereo-extra1: Digital Stereo (HDMI 2) выход (приёмники: 1, источники: 0, приоритет: 5200, доступно: нет) output:hdmi-surround-extra1: Digital Surround 5.1 (HDMI 2) выход (приёмники: 1, источники: 0, приоритет: 100, доступно: нет) output:hdmi-surround71-extra1: Digital Surround 7.1 (HDMI 2) выход (приёмники: 1, источники: 0, приоритет: 100, доступно: нет) output:hdmi-stereo-extra2: Digital Stereo (HDMI 3) выход (приёмники: 1, источники: 0, приоритет: 5200, доступно: нет) output:hdmi-surround-extra2: Digital Surround 5.1 (HDMI 3) выход (приёмники: 1, источники: 0, приоритет: 100, доступно: нет) output:hdmi-surround71-extra2: Digital Surround 7.1 (HDMI 3) выход (приёмники: 1, источники: 0, приоритет: 100, доступно: нет) off: Выключено (приёмники: 0, источники: 0, приоритет: 0, доступно: да) Активный профиль: off Порты: hdmi-output-0: HDMI / DisplayPort (priority: 5900, latency offset: 0 usec, not available) Свойства: device.icon_name = «video-display» Входит в профиль(и): output:hdmi-stereo, output:hdmi-surround, output:hdmi-surround71 hdmi-output-1: HDMI / DisplayPort 2 (priority: 5800, latency offset: 0 usec, not available) Свойства: device.icon_name = «video-display» Входит в профиль(и): output:hdmi-stereo-extra1, output:hdmi-surround-extra1, output:hdmi-surround71-extra1 hdmi-output-2: HDMI / DisplayPort 3 (priority: 5700, latency offset: 0 usec, not available) Свойства: device.icon_name = «video-display» Входит в профиль(и): output:hdmi-stereo-extra2, output:hdmi-surround-extra2, output:hdmi-surround71-extra2

Звуковая плата №6 Имя: bluez_card.10_4F_A8_32_FA_B6 Драйвер: module-bluez5-device.c Модуль-владелец: 33 Свойства: device.description = «MDR-XB950BT» device.string = «10:4F:A8:32:FA:B6» device.api = «bluez» device.class = «sound» device.bus = «bluetooth» device.form_factor = «headset» bluez.path = «/org/bluez/hci0/dev_10_4F_A8_32_FA_B6» bluez.class = «0x240404» bluez.alias = «MDR-XB950BT» device.icon_name = «audio-headset-bluetooth» device.intended_roles = «phone» Профили: headset_head_unit: Головная гарнитура (HSP/HFP) (приёмники: 1, источники: 1, приоритет: 30, доступно: да) a2dp_sink: Воспроизведение высокого качества (приёмник A2DP) (приёмники: 1, источники: 0, приоритет: 40, доступно: да) off: Выключено (приёмники: 0, источники: 0, приоритет: 0, доступно: да) Активный профиль: a2dp_sink Порты: headset-output: Гарнитура (priority: 0, latency offset: -20000 usec, available) Входит в профиль(и): headset_head_unit, a2dp_sink headset-input: Гарнитура (priority: 0, latency offset: 0 usec) Входит в профиль(и): headset_head_unit

Источник

Оцените статью
Adblock
detector