Bug#993011: pulseaudio-module-bluetooth: no longer detects bluetooth headphones

2021-11-04 Thread Viktor Malyarchuk
Hello,

Igor Kovalenko solution work for me only if
libspa-0.2-bluetooth
package is installed.

The solution is described in
https://wiki.debian.org/PipeWire#Bluetooth

1) Only pulseaudio-module-bluetooth is installed; it is impossible to pair.
2) Both pulseaudio-module-bluetooth and libspa-0.2-bluetooth are installed;
pairing is flaky but not impossible. (Few failed attempts before success.)
3) Only libspa-0.2-bluetooth is installed, pairing is reliable. (It failed
the first time after pulseaudio-module-bluetooth was removed.)

Failure always end in
src/service.c:btd_service_connect() a2dp-sink profile connect failed for
XX:XX:XX:XX:XX:XX: Protocol not available
message.

Best regards,

Sincerely,

Viktor Malyarchuk


Bug#993011: pulseaudio-module-bluetooth: no longer detects bluetooth headphones

2021-10-11 Thread Laurent Bigonville

Hello,

On Thu, 26 Aug 2021 12:08:03 +0200 Vincent Lefevre  
wrote:


>
> After the upgrade to 15.0+dfsg1-2, pulseaudio no longer detects
> my bluetooth headphones when I switch them on.

As apparently there is a workaround and/or the problem is coming from 
bluez, do you think we should keep this bug RC and prevent the migration 
to unstable?


Kind regards,

Laurent Bigonville



Bug#993011: pulseaudio-module-bluetooth: no longer detects bluetooth headphones

2021-10-11 Thread Vincent Lefevre
Control: severity -1 minor

On 2021-10-11 17:35:04 +0200, Laurent Bigonville wrote:
> On Thu, 26 Aug 2021 12:08:03 +0200 Vincent Lefevre 
> wrote:
> 
> > After the upgrade to 15.0+dfsg1-2, pulseaudio no longer detects
> > my bluetooth headphones when I switch them on.
> 
> As apparently there is a workaround and/or the problem is coming from bluez,
> do you think we should keep this bug RC and prevent the migration to
> unstable?

This was apparently coming from the bluez cache. I haven't seen any
issue after the workaround. Lowering the severity to minor. I'm not
sure whether there's something to be done on the pulseaudio side,
except that if some other users are also affected, something should
be said in the NEWS.Debian file.

-- 
Vincent Lefèvre  - Web: 
100% accessible validated (X)HTML - Blog: 
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)



Bug#993011: pulseaudio-module-bluetooth: no longer detects bluetooth headphones

2021-09-21 Thread Grégory David
Package: pulseaudio-module-bluetooth
Version: 15.0+dfsg1-2
Followup-For: Bug #993011
X-Debbugs-Cc: d...@groolot.net

In my system, the workaround described by Igor Kovalenko is efficient.

-- System Information:
Debian Release: bookworm/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 5.10.0-8-amd64 (SMP w/8 CPU threads)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages pulseaudio-module-bluetooth depends on:
ii  bluez  5.61-1
ii  libbluetooth3  5.61-1
ii  libc6  2.32-4
ii  libdbus-1-31.12.20-2
ii  libpulse0  15.0+dfsg1-2
ii  libsbc11.5-3
ii  pulseaudio 15.0+dfsg1-2

pulseaudio-module-bluetooth recommends no packages.

pulseaudio-module-bluetooth suggests no packages.

-- no debconf information



Bug#993011: pulseaudio-module-bluetooth: no longer detects bluetooth headphones

2021-09-10 Thread Igor Kovalenko
On Fri, Sep 10, 2021 at 12:37 PM Vincent Lefevre  wrote:
> I could eventually solve the problem, which was apparently caused by
> some other Bluetooth audio device. Some details below...
>
> [skip]
>
> What I did first is to upgrade again to pulseaudio 15.0+dfsg1-2, then
> reboot. With my settings, I automatically connect to 7C:96:D2:4E:98:41
> after logging in. As before, I could then connect to the headset with
>
>   bluetoothctl connect 38:18:4C:4B:AC:93
>
> which succeeded, but the headset wasn't recognized by PulseAudio 15.
> I had to disconnect from both devices with 2 "bluetoothctl disconnect"
> commands, then connect to the headset *alone* so that it could get
> recognized by PulseAudio 15.

This looks very much like an issue with bluez side caching of available
device profiles, this was being worked on in subsequent bluez releases.



Bug#993011: pulseaudio-module-bluetooth: no longer detects bluetooth headphones

2021-09-10 Thread Vincent Lefevre
On 2021-09-10 09:12:48 +0300, Igor Kovalenko wrote:
> If your headphones support both HSP (Headset) and HFP (Handsfree)
> profiles, pulseaudio will now prefer HFP by default.
> This usually works fine unless bluez does not want to connect
> headphones with HFP profile for some reason.

I could eventually solve the problem, which was apparently caused by
some other Bluetooth audio device. Some details below...

> Please attach 'bluetoothctl info' for your headset,

zira:~> bluetoothctl devices
Device 7C:96:D2:4E:98:41 EDIFIER Luna Eclipse HD
Device 38:18:4C:4B:AC:93 WH-1000XM3

zira:~> bluetoothctl info 7C:96:D2:4E:98:41
Device 7C:96:D2:4E:98:41 (public)
Name: EDIFIER Luna Eclipse HD
Alias: EDIFIER Luna Eclipse HD
Class: 0x00240428
Icon: audio-card
Paired: yes
Trusted: no
Blocked: no
Connected: yes
LegacyPairing: no
UUID: Audio Sink(110b--1000-8000-00805f9b34fb)
UUID: A/V Remote Control Target (110c--1000-8000-00805f9b34fb)
UUID: A/V Remote Control(110e--1000-8000-00805f9b34fb)

zira:~> bluetoothctl info 38:18:4C:4B:AC:93
Device 38:18:4C:4B:AC:93 (public)
Name: WH-1000XM3
Alias: WH-1000XM3
Class: 0x00240404
Icon: audio-card
Paired: yes
Trusted: yes
Blocked: no
Connected: yes
LegacyPairing: no
UUID: Vendor specific   (-deca-fade-deca-deafdecacaff)
UUID: Headset   (1108--1000-8000-00805f9b34fb)
UUID: Audio Sink(110b--1000-8000-00805f9b34fb)
UUID: A/V Remote Control Target (110c--1000-8000-00805f9b34fb)
UUID: A/V Remote Control(110e--1000-8000-00805f9b34fb)
UUID: Handsfree (111e--1000-8000-00805f9b34fb)
UUID: PnP Information   (1200--1000-8000-00805f9b34fb)
UUID: Generic Access Profile(1800--1000-8000-00805f9b34fb)
UUID: Generic Attribute Profile (1801--1000-8000-00805f9b34fb)
UUID: Amazon.com Services, Inc. (fe03--1000-8000-00805f9b34fb)
[Vendor specific UUIDs]
Modalias: usb:v054Cp0CD3d0452

What I did first is to upgrade again to pulseaudio 15.0+dfsg1-2, then
reboot. With my settings, I automatically connect to 7C:96:D2:4E:98:41
after logging in. As before, I could then connect to the headset with

  bluetoothctl connect 38:18:4C:4B:AC:93

which succeeded, but the headset wasn't recognized by PulseAudio 15.
I had to disconnect from both devices with 2 "bluetoothctl disconnect"
commands, then connect to the headset *alone* so that it could get
recognized by PulseAudio 15.

Now everything is OK, even after reboot with my usual settings.
I suppose that there was old or incomplete information for the
headphones. I wonder whether PulseAudio could have done something
to avoid this issue, or whether this is worth an announce (if this
is a known issue that may affect other users).

Note: With PulseAudio 15, I can now have both devices with the
A2DP Sink profile (this was not possible with PulseAudio 14, as
I could still check before upgrading again to PulseAudio 15).

-- 
Vincent Lefèvre  - Web: 
100% accessible validated (X)HTML - Blog: 
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)



Bug#993011: pulseaudio-module-bluetooth: no longer detects bluetooth headphones

2021-09-10 Thread Igor Kovalenko
On Thu, 26 Aug 2021 17:37:46 +0200 Vincent Lefevre  wrote:
> On 2021-08-26 09:07:55 -0400, Felipe Sateler wrote:
> > Could you attach verbose logs of both a succesful and an unsuccesful run?
> >
> > https://fedoraproject.org/wiki/How_to_debug_PulseAudio_problems
>
> I've attached an archive with:
>   * pa14.out: "pulseaudio -v" output with PulseAudio 14 (working).
>   * pa15.out: "pulseaudio -v" output with PulseAudio 15 (failing).
>   * pacmd-14: "pacmd ls" output with PulseAudio 14.
>   * pacmd-15: "pacmd ls" output with PulseAudio 15.
>
> I did the following (with output filenames for PulseAudio 14):
>   1. systemctl --user stop pulseaudio.socket
>   2. systemctl --user stop pulseaudio.service
>   3. pulseaudio -v >& pa14.out
>   4. Switch on my bluetooth headphones.
>   5. pacmd ls > pacmd-14
>   6. Ctrl-C on "pulseaudio -v".
>
> Please tell me whether this is sufficient or you need more information.

Hi Vincent,

If your headphones support both HSP (Headset) and HFP (Handsfree)
profiles, pulseaudio will now prefer HFP by default.
This usually works fine unless bluez does not want to connect
headphones with HFP profile for some reason.
Please attach 'bluetoothctl info' for your headset, and try unpairing
and pairing them again while pulseaudio 15.0 is running.

If pairing again does not help, there are two known workarounds:
1. Try disconnecting the headphones, then connecting them again from
the host side (e.g. using bluetoothctl or desktop applet)
   Seldom the connection attempt from headphones side could fail, this
looks like a problem with how bluez handles that.
2. Try disabling pulseaudio 15.0 HFP preference: change default.pa
module-bluetooth-discover line like this:
   load-module module-bluetooth-discover enable_native_hfp_hf=false

If that still does not work please file an issue on pulseaudio tracker
https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/issues/



Bug#993011: pulseaudio-module-bluetooth: no longer detects bluetooth headphones

2021-08-26 Thread Vincent Lefevre
On 2021-08-26 09:07:55 -0400, Felipe Sateler wrote:
> Could you attach verbose logs of both a succesful and an unsuccesful run?
> 
> https://fedoraproject.org/wiki/How_to_debug_PulseAudio_problems

I've attached an archive with:
  * pa14.out: "pulseaudio -v" output with PulseAudio 14 (working).
  * pa15.out: "pulseaudio -v" output with PulseAudio 15 (failing).
  * pacmd-14: "pacmd ls" output with PulseAudio 14.
  * pacmd-15: "pacmd ls" output with PulseAudio 15.

I did the following (with output filenames for PulseAudio 14):
  1. systemctl --user stop pulseaudio.socket
  2. systemctl --user stop pulseaudio.service
  3. pulseaudio -v >& pa14.out
  4. Switch on my bluetooth headphones.
  5. pacmd ls > pacmd-14
  6. Ctrl-C on "pulseaudio -v".

Please tell me whether this is sufficient or you need more information.

-- 
Vincent Lefèvre  - Web: 
100% accessible validated (X)HTML - Blog: 
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)


pa-dbg.tar.xz
Description: application/xz


Bug#993011: pulseaudio-module-bluetooth: no longer detects bluetooth headphones

2021-08-26 Thread Felipe Sateler
Control: tags -1 moreinfo

On Thu, Aug 26, 2021 at 6:27 AM Vincent Lefevre  wrote:

> On 2021-08-26 12:08:03 +0200, Vincent Lefevre wrote:
> > Package: pulseaudio-module-bluetooth
> > Version: 15.0+dfsg1-2
> > Severity: grave
> > Justification: renders package unusable
> >
> > After the upgrade to 15.0+dfsg1-2, pulseaudio no longer detects
> > my bluetooth headphones when I switch them on.
>
> Reverting to the stable version (14.2-2) allows them to be detected
> again.
>

Could you attach verbose logs of both a succesful and an unsuccesful run?

https://fedoraproject.org/wiki/How_to_debug_PulseAudio_problems

-- 

Saludos,
Felipe Sateler


Bug#993011: pulseaudio-module-bluetooth: no longer detects bluetooth headphones

2021-08-26 Thread Vincent Lefevre
On 2021-08-26 12:08:03 +0200, Vincent Lefevre wrote:
> Package: pulseaudio-module-bluetooth
> Version: 15.0+dfsg1-2
> Severity: grave
> Justification: renders package unusable
> 
> After the upgrade to 15.0+dfsg1-2, pulseaudio no longer detects
> my bluetooth headphones when I switch them on.

Reverting to the stable version (14.2-2) allows them to be detected
again.

-- 
Vincent Lefèvre  - Web: 
100% accessible validated (X)HTML - Blog: 
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)



Bug#993011: pulseaudio-module-bluetooth: no longer detects bluetooth headphones

2021-08-26 Thread Vincent Lefevre
Package: pulseaudio-module-bluetooth
Version: 15.0+dfsg1-2
Severity: grave
Justification: renders package unusable

After the upgrade to 15.0+dfsg1-2, pulseaudio no longer detects
my bluetooth headphones when I switch them on.

-- System Information:
Debian Release: bookworm/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'stable-security'), (500, 
'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 5.10.0-8-amd64 (SMP w/8 CPU threads)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, 
TAINT_UNSIGNED_MODULE
Locale: LANG=POSIX, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages pulseaudio-module-bluetooth depends on:
ii  bluez  5.55-3.1
ii  libbluetooth3  5.55-3.1
ii  libc6  2.31-17
ii  libdbus-1-31.12.20-2
ii  libpulse0  15.0+dfsg1-2
ii  libsbc11.5-3
ii  pulseaudio 15.0+dfsg1-2

pulseaudio-module-bluetooth recommends no packages.

pulseaudio-module-bluetooth suggests no packages.

-- no debconf information

-- 
Vincent Lefèvre  - Web: 
100% accessible validated (X)HTML - Blog: 
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)