linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [BlueZ] connection failure or profile unavailability when connecting two devices with overlapping profiles
@ 2018-08-01 14:06 Dominik 'Rathann' Mierzejewski
  2018-08-01 15:08 ` Luiz Augusto von Dentz
  0 siblings, 1 reply; 3+ messages in thread
From: Dominik 'Rathann' Mierzejewski @ 2018-08-01 14:06 UTC (permalink / raw)
  To: linux-bluetooth

Dear list,
I reported this originally in Fedora 27
(https://bugzilla.redhat.com/show_bug.cgi?id=1541575), but maybe someone
here has a better idea, since it's still reproducible on Fedora 28 with
newer versions of bluez and pulseaudio.

Description of problem:
I'm unable to connect the Creative MUVO 2c speaker if a Jabra Evolve 65
headset is connected already. If I connect the speaker first, then I'm
able to connect the Jabra headset, but only HFP profile works (A2DP sink
is not selectable). There are no issues adding an Android phone to the
mix in any order, seemingly because it only has non-overlapping profiles
A2DP source and HFP audio gateway).

Version-Release number of selected component (if applicable):
bluez-5.50-1.fc28.x86_64
pulseaudio-12.2-1.fc28.x86_64

How reproducible:
Always.

Case 1:
Steps to Reproduce:
1. bluetoothctl
2. connect 50:1A:A5:xx:xx:xx # Jabra Evolve 65
3. connect 00:02:3C:yy:yy:yy # Creative MUVO 2c

Actual results:
Attempting to connect to 00:02:3C:yy:yy:yy
Failed to connect: org.bluez.Error.Failed

Expected results:
Attempting to connect to 00:02:3C:yy:yy:yy
[CHG] Device 00:02:3C:yy:yy:yy Connected: yes
Connection successful
[CHG] Device 00:02:3C:yy:yy:yy ServicesResolved: yes

Case 2:
Steps to Reproduce:
1. bluetoothctl
2. connect 00:02:3C:yy:yy:yy # Creative MUVO 2c
3. connect 50:1A:A5:xx:xx:xx # Jabra Evolve 65
4. pactl set-card-profile bluez_card.50_1A_A5_xx_xx_xx a2dp_sink
5. pactl list sinks short |grep bluez

Actual results:
$ pactl set-card-profile bluez_card.50_1A_A5_xx_xx_xx a2dp_sink
Failure: Input/Output error
$ pactl list sinks short |grep bluez
26	bluez_sink.00_02_3C_yy_yy_yy.a2dp_sink	module-bluez5-device.c	s16le 2ch 44100Hz	SUSPENDED
27	bluez_sink.50_1A_A5_xx_xx_xx.headset_head_unit	module-bluez5-device.c	s16le 1ch 8000Hz	IDLE

Expected results:
$ pactl set-card-profile bluez_card.50_1A_A5_xx_xx_xx a2dp_sink
$ pactl list sinks short |grep bluez
26	bluez_sink.00_02_3C_yy_yy_yy.a2dp_sink	module-bluez5-device.c	s16le 2ch 44100Hz	SUSPENDED
27	bluez_sink.50_1A_A5_D7_43_93.a2dp_sink	module-bluez5-device.c	s16le 2ch 44100Hz	SUSPENDED

Additional info:
Selecting a2dp_sink when Jabra is the only device with a2dp_sink
connected works just fine.

Regards,
Dominik
-- 
Fedora   https://getfedora.org  |  RPMFusion   http://rpmfusion.org
There should be a science of discontent. People need hard times and
oppression to develop psychic muscles.
        -- from "Collected Sayings of Muad'Dib" by the Princess Irulan

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [BlueZ] connection failure or profile unavailability when connecting two devices with overlapping profiles
  2018-08-01 14:06 [BlueZ] connection failure or profile unavailability when connecting two devices with overlapping profiles Dominik 'Rathann' Mierzejewski
@ 2018-08-01 15:08 ` Luiz Augusto von Dentz
  2018-08-01 21:33   ` Dominik 'Rathann' Mierzejewski
  0 siblings, 1 reply; 3+ messages in thread
From: Luiz Augusto von Dentz @ 2018-08-01 15:08 UTC (permalink / raw)
  To: Dominik 'Rathann' Mierzejewski; +Cc: linux-bluetooth@vger.kernel.org

Hi Dominik,

On Wed, Aug 1, 2018 at 5:06 PM, Dominik 'Rathann' Mierzejewski
<dominik@greysector.net> wrote:
> Dear list,
> I reported this originally in Fedora 27
> (https://bugzilla.redhat.com/show_bug.cgi?id=1541575), but maybe someone
> here has a better idea, since it's still reproducible on Fedora 28 with
> newer versions of bluez and pulseaudio.
>
> Description of problem:
> I'm unable to connect the Creative MUVO 2c speaker if a Jabra Evolve 65
> headset is connected already. If I connect the speaker first, then I'm
> able to connect the Jabra headset, but only HFP profile works (A2DP sink
> is not selectable). There are no issues adding an Android phone to the
> mix in any order, seemingly because it only has non-overlapping profiles
> A2DP source and HFP audio gateway).

PA only register one A2DP sink and one A2DP source, so you can only
connect to one headset at time. We could in theory not publish the
in_use flag of endpoints, but afaik we tried that some years ago and
that caused some problems, so perhaps adding more endpoints to PA
would work.

> Version-Release number of selected component (if applicable):
> bluez-5.50-1.fc28.x86_64
> pulseaudio-12.2-1.fc28.x86_64
>
> How reproducible:
> Always.
>
> Case 1:
> Steps to Reproduce:
> 1. bluetoothctl
> 2. connect 50:1A:A5:xx:xx:xx # Jabra Evolve 65
> 3. connect 00:02:3C:yy:yy:yy # Creative MUVO 2c
>
> Actual results:
> Attempting to connect to 00:02:3C:yy:yy:yy
> Failed to connect: org.bluez.Error.Failed
>
> Expected results:
> Attempting to connect to 00:02:3C:yy:yy:yy
> [CHG] Device 00:02:3C:yy:yy:yy Connected: yes
> Connection successful
> [CHG] Device 00:02:3C:yy:yy:yy ServicesResolved: yes
>
> Case 2:
> Steps to Reproduce:
> 1. bluetoothctl
> 2. connect 00:02:3C:yy:yy:yy # Creative MUVO 2c
> 3. connect 50:1A:A5:xx:xx:xx # Jabra Evolve 65
> 4. pactl set-card-profile bluez_card.50_1A_A5_xx_xx_xx a2dp_sink
> 5. pactl list sinks short |grep bluez
>
> Actual results:
> $ pactl set-card-profile bluez_card.50_1A_A5_xx_xx_xx a2dp_sink
> Failure: Input/Output error
> $ pactl list sinks short |grep bluez
> 26      bluez_sink.00_02_3C_yy_yy_yy.a2dp_sink  module-bluez5-device.c  s16le 2ch 44100Hz       SUSPENDED
> 27      bluez_sink.50_1A_A5_xx_xx_xx.headset_head_unit  module-bluez5-device.c  s16le 1ch 8000Hz        IDLE
>
> Expected results:
> $ pactl set-card-profile bluez_card.50_1A_A5_xx_xx_xx a2dp_sink
> $ pactl list sinks short |grep bluez
> 26      bluez_sink.00_02_3C_yy_yy_yy.a2dp_sink  module-bluez5-device.c  s16le 2ch 44100Hz       SUSPENDED
> 27      bluez_sink.50_1A_A5_D7_43_93.a2dp_sink  module-bluez5-device.c  s16le 2ch 44100Hz       SUSPENDED
>
> Additional info:
> Selecting a2dp_sink when Jabra is the only device with a2dp_sink
> connected works just fine.
>
> Regards,
> Dominik
> --
> Fedora   https://getfedora.org  |  RPMFusion   http://rpmfusion.org
> There should be a science of discontent. People need hard times and
> oppression to develop psychic muscles.
>         -- from "Collected Sayings of Muad'Dib" by the Princess Irulan
> --
> To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html



-- 
Luiz Augusto von Dentz

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [BlueZ] connection failure or profile unavailability when connecting two devices with overlapping profiles
  2018-08-01 15:08 ` Luiz Augusto von Dentz
@ 2018-08-01 21:33   ` Dominik 'Rathann' Mierzejewski
  0 siblings, 0 replies; 3+ messages in thread
From: Dominik 'Rathann' Mierzejewski @ 2018-08-01 21:33 UTC (permalink / raw)
  To: linux-bluetooth@vger.kernel.org

Hello, Luiz.
Thank you for the quick reply.

On Wednesday, 01 August 2018 at 17:08, Luiz Augusto von Dentz wrote:
> Hi Dominik,
> 
> On Wed, Aug 1, 2018 at 5:06 PM, Dominik 'Rathann' Mierzejewski
> <dominik@greysector.net> wrote:
> > Dear list,
> > I reported this originally in Fedora 27
> > (https://bugzilla.redhat.com/show_bug.cgi?id=1541575), but maybe someone
> > here has a better idea, since it's still reproducible on Fedora 28 with
> > newer versions of bluez and pulseaudio.
> >
> > Description of problem:
> > I'm unable to connect the Creative MUVO 2c speaker if a Jabra Evolve 65
> > headset is connected already. If I connect the speaker first, then I'm
> > able to connect the Jabra headset, but only HFP profile works (A2DP sink
> > is not selectable). There are no issues adding an Android phone to the
> > mix in any order, seemingly because it only has non-overlapping profiles
> > A2DP source and HFP audio gateway).
> 
> PA only register one A2DP sink and one A2DP source, so you can only
> connect to one headset at time.

Well, that sucks. I'd like to use the speaker for music and the headset
for audio conferencing. It doesn't seem like an unusual setup to me and
having to connect/disconnect devices manually when someone calls me
feels like a lot of unnecessary hassle. But maybe I'm mistaken.

> We could in theory not publish the
> in_use flag of endpoints, but afaik we tried that some years ago and
> that caused some problems, so perhaps adding more endpoints to PA
> would work.

Could you find some reference or at least suggest some keywords I could
search on? I'm not that familiar with either Bluetooth or Pulseaudio.

Shall I file a bug against pulseaudio at the new gitlab issue tracker
(https://gitlab.freedesktop.org/pulseaudio/pulseaudio/issues/)?

Regards,
Dominik
-- 
Fedora   https://getfedora.org  |  RPMFusion   http://rpmfusion.org
There should be a science of discontent. People need hard times and
oppression to develop psychic muscles.
        -- from "Collected Sayings of Muad'Dib" by the Princess Irulan

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-08-01 21:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-01 14:06 [BlueZ] connection failure or profile unavailability when connecting two devices with overlapping profiles Dominik 'Rathann' Mierzejewski
2018-08-01 15:08 ` Luiz Augusto von Dentz
2018-08-01 21:33   ` Dominik 'Rathann' Mierzejewski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).