You are not logged in.

#1 2019-03-02 22:42:23

memeplex
Member
Registered: 2008-11-10
Posts: 33

Bluetooth always autoreconnects w/headset profile (instead of a2dp)

Hi all,

I'm using:

  local/pulseaudio-bluetooth 12.2-2
  local/bluez 5.50-6

My pulseaudio config at ~/.config/pulse/default.pa is:

  load-module module-dbus-protocol
  load-module module-switch-on-connect

Each time I turn off and on again my bluetooth speaker I get:

        bluetooth.protocol = "headset_head_unit"
        device.intended_roles = "phone"
        device.description = "MINIJAMBOX by Jawbone"

After changing the protocol with pacmd or pavucontrol, or after manually reconnecting using pulseaudioctl, the protocol is correctly set to a2dp.

But, again, turning off and on the speaker resets the protocol to headset.

Many of the tricks around there are based in obsolete config directives that went into the also obsolete audio.conf file. Playing with /etc/bluetooth/main.conf leads me nowhere.

Any ideas?

Thank you in advance
--
Carlos

Offline

#2 2019-03-17 08:34:01

bb
Member
Registered: 2018-12-28
Posts: 3

Re: Bluetooth always autoreconnects w/headset profile (instead of a2dp)

Hi memeplex,

for me it works using the https://github.com/EHfive/pulseaudio-modules-bt in combination with the pulseaudio-bluetooth-a2dp-gdm-fix.
Both available on AUR:

Since then the Headset always connects with the audio profile (APTX in my case) and not the phone profile.

Maybe its worth a try.

Best regards,
bb

Offline

#3 2019-03-17 13:45:36

memeplex
Member
Registered: 2008-11-10
Posts: 33

Re: Bluetooth always autoreconnects w/headset profile (instead of a2dp)

I ended up listening to sink creation events with pactl subscribe and changing the profile of the card when necessary. Here is the code, it does quite a few other things but you surely will be able to parse the relevant part: https://gitlab.com/memeplex/home/blob/c … /music#L48

Last edited by memeplex (2019-03-17 13:46:39)

Offline

Board footer

Powered by FluxBB