Bug#970013: pulseaudio-utils: cannot switch to headset_head_unit

2021-09-25 Thread Igor Kovalenko
On Wed, 22 Sep 2021 22:20:34 -0500 Chad  wrote:
> Package: pulseaudio
> Version: 14.2-2
> Followup-For: Bug #970013
>
> Dear Maintainer,
>
> As with the original reporter of this bug, I too cannot change the
> profile of my associated bluetooth headsets to
> headset_head_unit. Below is a clip of the output from "pactl list"
> after associating a headset. I recall this working at some point in
> the past, but I don't have a good fixture on when that changed, as it
> has been quite some time since I've used any bluetooth headset to
> record.
>
> This could also potentially be related to pulseaudio-module-bluetooth bug 
> #993011?
>
> -- Output from "pactl list":
> Card #2
> Name: bluez_card.F4_4E_FC_22_A0_0A
> Driver: module-bluez5-device.c
> Owner Module: 21
> Properties:
> device.description = "S17"
> device.string = "F4:4E:FC:22:A0:0A"
> device.api = "bluez"
> device.class = "sound"
> device.bus = "bluetooth"
> device.form_factor = "headset"
> bluez.path = "/org/bluez/hci0/dev_F4_4E_FC_22_A0_0A"
> bluez.class = "0x240404"
> bluez.alias = "S17"
> device.icon_name = "audio-headset-bluetooth"
> device.intended_roles = "phone"
> Profiles:
> a2dp_sink: High Fidelity Playback (A2DP Sink) (sinks: 1, sources: 0, 
> priority: 40, available: yes)
> headset_head_unit: Headset Head Unit (HSP/HFP) (sinks: 1, sources: 1, 
> priority: 30, available: no)
> off: Off (sinks: 0, sources: 0, priority: 0, available: yes)
> Active Profile: a2dp_sink
> Ports:
> headset-output: Headset (type: Headset, priority: 0, latency offset: 0 usec, 
> availability unknown)
> Part of profile(s): a2dp_sink, headset_head_unit
> headset-input: Headset (type: Headset, priority: 0, latency offset: 0 usec, 
> not available)
> Part of profile(s): headset_head_unit

Hi Chad,

You are running pulseaudio-14.2 so your problem is not related to bug #993011

Please check which bluetooth profiles your headset supports using
'bluetoothctl info F4:4E:FC:22:A0:0A' with headset connected.

There are two bluetooth profiles which provide mic,
HSP is indicated as "UUID: Headset (1108-..."
and HFP is indicated as "UUID: Handsfree (111e-..."

If your headset only lists HFP then pulseaudio-14.2 needs a properly configured
oFono to connect with mic. With pulseaudio 15.0 oFono is no longer necessary
so you might want to consider upgrading pulseaudio.

If your headset also has HSP then it should work with both pulseaudio
14.2 and 15.0; if it does not I'd suggest you file an issue on pulseaudio
tracker and provide output of 'bluetoothctl info' here
https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/issues



Bug#970013: pulseaudio-utils: cannot switch to headset_head_unit

2021-09-22 Thread Chad
Package: pulseaudio
Version: 14.2-2
Followup-For: Bug #970013

Dear Maintainer,

As with the original reporter of this bug, I too cannot change the
profile of my associated bluetooth headsets to
headset_head_unit. Below is a clip of the output from "pactl list"
after associating a headset. I recall this working at some point in
the past, but I don't have a good fixture on when that changed, as it
has been quite some time since I've used any bluetooth headset to
record.

This could also potentially be related to pulseaudio-module-bluetooth bug 
#993011?

-- Output from "pactl list":
Card #2
Name: bluez_card.F4_4E_FC_22_A0_0A
Driver: module-bluez5-device.c
Owner Module: 21
Properties:
device.description = "S17"
device.string = "F4:4E:FC:22:A0:0A"
device.api = "bluez"
device.class = "sound"
device.bus = "bluetooth"
device.form_factor = "headset"
bluez.path = "/org/bluez/hci0/dev_F4_4E_FC_22_A0_0A"
bluez.class = "0x240404"
bluez.alias = "S17"
device.icon_name = "audio-headset-bluetooth"
device.intended_roles = "phone"
Profiles:
a2dp_sink: High Fidelity Playback (A2DP Sink) (sinks: 1, 
sources: 0, priority: 40, available: yes)
headset_head_unit: Headset Head Unit (HSP/HFP) (sinks: 1, 
sources: 1, priority: 30, available: no)
off: Off (sinks: 0, sources: 0, priority: 0, available: yes)
Active Profile: a2dp_sink
Ports:
headset-output: Headset (type: Headset, priority: 0, latency 
offset: 0 usec, availability unknown)
Part of profile(s): a2dp_sink, headset_head_unit
headset-input: Headset (type: Headset, priority: 0, latency 
offset: 0 usec, not available)
Part of profile(s): headset_head_unit


Trying to switch to the headset_head_unit profile on this card fails:

-- Setting card profile with pactl:
$ pactl set-card-profile 2 off
$ pactl set-card-profile 2 a2dp_sink
$ pactl set-card-profile 2 headset_head_unit
Failure: Input/Output error

-- journalctl output
Sep 22 22:13:59 strigo pulseaudio[6071]: Refused to switch profile to 
headset_head_unit: Not connected


-- Package-specific info:
File '/etc/default/pulseaudio' does not exist


-- System Information:
Debian Release: 11.0
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 
'stable'), (10, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.10.0-8-amd64 (SMP w/8 CPU threads)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.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 depends on:
ii  adduser  3.118
ii  init-system-helpers  1.60
ii  libasound2   1.2.4-1.1
ii  libasound2-plugins   1.2.2-2
ii  libc62.31-13
ii  libcap2  1:2.44-1
ii  libdbus-1-3  1.12.20-2
ii  libgcc-s110.2.1-6
ii  libice6  2:1.0.10-1
ii  libltdl7 2.4.6-15
ii  liborc-0.4-0 1:0.4.32-1
ii  libpulse014.2-2
ii  libsm6   2:1.2.3-1
ii  libsndfile1  1.0.31-2
ii  libsoxr0 0.1.3-4
ii  libspeexdsp1 1.2~rc1.2-1.1
ii  libstdc++6   10.2.1-6
ii  libsystemd0  247.3-6
ii  libtdb1  1.4.3-1+b1
ii  libudev1 247.3-6
ii  libwebrtc-audio-processing1  0.3-1+b1
ii  libx11-6 2:1.7.2-1
ii  libx11-xcb1  2:1.7.2-1
ii  libxcb1  1.14-3
ii  libxtst6 2:1.2.3-1
ii  lsb-base 11.1.0
ii  pulseaudio-utils 14.2-2

Versions of packages pulseaudio recommends:
ii  dbus-user-session1.12.20-2
ii  libpam-systemd [logind]  247.3-6
ii  rtkit0.13-4

Versions of packages pulseaudio suggests:
pn  paprefs  
ii  pavucontrol  4.0-2
pn  pavumeter
ii  udev 247.3-6

-- Configuration Files:
/etc/pulse/default.pa changed:
.fail
load-module module-device-restore
load-module module-stream-restore
load-module module-card-restore
load-module module-augment-properties
load-module module-switch-on-port-available
.ifexists module-udev-detect.so
load-module module-udev-detect
.else
load-module module-detect
.endif
.ifexists module-jackdbus-detect.so
.nofail
load-module module-jackdbus-detect channels=2
.fail
.endif
.ifexists module-bluetooth-policy.so
load-module module-bluetooth-policy enable_native_hfp_hf=false
.endif
.ifexists module-bluetooth-discover.so
load-module module-bluetooth-discover
.endif

Bug#970013: pulseaudio-utils: cannot switch to headset_head_unit on JBL Quantum800

2020-09-10 Thread Emilian Nowak
Package: pulseaudio-utils
Version: 13.0-5
Severity: normal

Dear Maintainer,

I'm trying to use headphones with microphone (JBL Quantum800).
I can use them to listen to music with (a2dp_sink profile), but I cannot
switch to headset_head_unit. Hard to get from error message what is wrong - it
says: „Failure: Input/Output error”

Output from my 
:~$ pactl list
Card #16
Name: bluez_card.98_52_3D_4D_19_70
Driver: module-bluez5-device.c
Owner Module: 37
Properties:
device.description = "JBL Quantum800"
device.string = "98:52:3D:4D:19:70"
device.api = "bluez"
device.class = "sound"
device.bus = "bluetooth"
device.form_factor = "headset"
bluez.path = "/org/bluez/hci0/dev_98_52_3D_4D_19_70"
bluez.class = "0x240404"
bluez.alias = "JBL Quantum800"
device.icon_name = "audio-headset-bluetooth"
device.intended_roles = "phone"
Profiles:
headset_head_unit: Jednostka główna słuchawek z mikrofonem (HSP/HFP)
(sinks: 1, sources: 1, priority: 30, available: no) a2dp_sink: Odtwarzanie
o wysokiej dokładności (odpływ A2DP) (sinks: 1, sources: 0, priority: 40,
available: yes) off: Wyłączone (sinks: 0, sources: 0, priority: 0, available:
yes) Active Profile: a2dp_sink Ports:
headset-output: Słuchawki z mikrofonem (priority: 0, latency offset: 0
usec, available) Part of profile(s): headset_head_unit, a2dp_sink
headset-input: Słuchawki z mikrofonem (priority: 0, latency offset: 0
usec, not available) Part of profile(s): headset_head_unit
Swtiching betwen profiles
:~$ pactl set-card-profile 16 off
:~$ pactl set-card-profile 16 a2dp_sink
:~$ pactl set-card-profile 16 headset_head_unit
Failure: Input/Output error
:~$ 



-- System Information:
Debian Release: 10.4
  APT prefers oldstable-updates
  APT policy: (500, 'oldstable-updates'), (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.5.0-0.bpo.2-amd64 (SMP w/12 CPU cores)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE,
TAINT_UNSIGNED_MODULE Locale: LANG=pl_PL.UTF-8, LC_CTYPE=pl_PL.UTF-8
(charmap=UTF-8), LANGUAGE=pl_PL.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked
to /bin/dash Init: systemd (via /run/systemd/system)

Versions of packages pulseaudio-utils depends on:
ii  libc62.30-8
ii  libcap2  1:2.25-1
ii  libice6  2:1.0.9-2
ii  libpulse013.0-5
ii  libpulsedsp  13.0-5
ii  libsm6   2:1.2.2-1+b3
ii  libsndfile1  1.0.28-6
ii  libx11-6 2:1.6.4-3
ii  libx11-xcb1  2:1.6.9-2+b1
ii  libxcb1  1.12-1
ii  libxtst6 2:1.2.3-1

pulseaudio-utils recommends no packages.

Versions of packages pulseaudio-utils suggests:
pn  avahi-daemon  
ii  pulseaudio13.0-5

-- no debconf information