Skip to content
This repository has been archived by the owner on Jan 25, 2021. It is now read-only.

[BUG] HSP/HSF is not available for my bluetooth headset. #121

Open
ElbinP opened this issue Aug 15, 2020 · 8 comments
Open

[BUG] HSP/HSF is not available for my bluetooth headset. #121

ElbinP opened this issue Aug 15, 2020 · 8 comments
Assignees
Labels
bug Something isn't working

Comments

@ElbinP
Copy link

ElbinP commented Aug 15, 2020

Describe the bug
HSP/HSF is not available for my bluetooth headset.

Card #2
        Name: bluez_card.00_1E_7C_92_1D_B6
        Driver: module-bluez5-device.c
        Owner Module: 24
        Properties:
                device.description = "Infinity Glide 500"
                device.string = "00:1E:7C:92:1D:B6"
                device.api = "bluez"
                device.class = "sound"
                device.bus = "bluetooth"
                device.form_factor = "headset"
                bluez.path = "/org/bluez/hci0/dev_00_1E_7C_92_1D_B6"
                bluez.class = "0x240404"
                bluez.alias = "Infinity Glide 500"
                device.icon_name = "audio-headset-bluetooth"
                device.intended_roles = "phone"
        Profiles:
                a2dp_sink_sbc: High Fidelity Playback (A2DP Sink: SBC) (sinks: 1, sources: 0, priority: 40, available: yes)
                a2dp_sink_aac: High Fidelity Playback (A2DP Sink: AAC) (sinks: 1, sources: 0, priority: 40, available: yes)
                a2dp_sink_aptx: High Fidelity Playback (A2DP Sink: aptX) (sinks: 1, sources: 0, priority: 40, available: no)
                a2dp_sink_aptx_hd: High Fidelity Playback (A2DP Sink: aptX HD) (sinks: 1, sources: 0, priority: 40, available: no)
                a2dp_sink_ldac: High Fidelity Playback (A2DP Sink: LDAC) (sinks: 1, sources: 0, priority: 40, available: no)
                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_sbc
        Ports:
                headset-output: Headset (priority: 0, latency offset: 0 usec, available)
                        Part of profile(s): a2dp_sink_sbc, a2dp_sink_aac, a2dp_sink_aptx, a2dp_sink_aptx_hd, a2dp_sink_ldac, headset_head_unit
                headset-input: Headset (priority: 0, latency offset: 0 usec, not available)
                        Part of profile(s): headset_head_unit
alsa-plugins-pulseaudio-1.2.2-1.fc32.i686
alsa-plugins-pulseaudio-1.2.2-1.fc32.x86_64
pulseaudio-libs-13.99.1-4.fc32.x86_64
pulseaudio-qt-1.2-1.fc32.x86_64
pulseaudio-module-x11-13.99.1-4.fc32.x86_64
pulseaudio-utils-13.99.1-4.fc32.x86_64
pulseaudio-libs-13.99.1-4.fc32.i686
pulseaudio-module-gsettings-13.99.1-4.fc32.x86_64
pulseaudio-libs-glib2-13.99.1-4.fc32.x86_64
pulseaudio-module-gconf-13.99.1-4.fc32.x86_64
kde-settings-pulseaudio-32.0-3.fc32.noarch
pulseaudio-13.99.1-4.fc32.x86_64
pulseaudio-module-bluetooth-freeworld-1.4-1.fc32.x86_64

To Reproduce
Steps to reproduce the behavior:

Expected behavior
Need to be able to select HSP/HSF for the headset profile.

Environment (please complete the following information):

  • Distribution Fedora 32
  • Pulseaudio Version 13.99
  • Version 1.41
  • Installing via rpmfusion repos

Pulseaudio logs:
Logs attached

avinfo of device:

[elbin@acer-laptop ~]$ avinfo 00:1E:7C:92:1D:B6
Connecting ... 
Stream End-Point #1: Audio Sink 
        Media Codec: SBC
                Channel Modes: Mono DualChannel Stereo JointStereo
                Frequencies: 44.1Khz 48Khz 
                Subbands: 4 8
                Blocks: 4 8 12 16 
                Bitpool Range: 2-52
Stream End-Point #2: Audio Sink 
        Media Codec: MPEG24
                Object Types: MPEG-2 AAC LC 
                Frequencies: 44.1kHz 48kHz 
                Channels: 1 2 
                Bitrate: 264630
                VBR: Yes

journalctl-dump.txt

Additional context
Add any other context about the problem here.

@ElbinP ElbinP added the bug Something isn't working label Aug 15, 2020
@mrRedskill
Copy link

I don't know helpful that is... but I had a similar problem.

I'm using the sony wf-1000xm2 and I was also not able to use the codec I wanted to use. (ldac)
After updating the firmware of my headphones everything functions just the way it should.

Can you try to update your headset? (if possible)

@EHfive
Copy link
Owner

EHfive commented Aug 26, 2020

In my case, it's

bluetoothd	Unable to get io data for Headset Voice gateway: getpeername: Transport endpoint is not connected (107)
D: [pulseaudio][modules/bluetooth/module-bluez5-device.c:684 transport_acquire()] Acquiring transport /org/bluez/hci0/dev_38_18_4C_XX_XX_XX/fd22
I: [pulseaudio][modules/bluetooth/backend-native.c:152 sco_do_connect()] doing connect
E: [pulseaudio][modules/bluetooth/backend-native.c:155 sco_do_connect()] connect(): Function not implemented
D: [pulseaudio][../pulseaudio/src/pulsecore/card.c:338 pa_card_set_profile()] bluez_card.38_18_4C_BE_92_E5: active_profile: a2dp_sink_ldac -> off

I'm using WH-1000XM3
I can also reproduce it in official pulseaudio bluetooth modules.

@casta
Copy link

casta commented Sep 2, 2020

Hello,

I have the same issue. Plain pulseaudio has the same issue.
There is a patch against pulseaudio-13 that fixes this and make possible to switch to HFP profile (found here : https://bugzilla.redhat.com/show_bug.cgi?id=1311238 but this refers to some pull requests referenced).

I confirm the fix, but with this, I loose apt-Xwith A2DP provided by your bt moduels fork.

You may eventually port this patch to your fork ?

@marek141017
Copy link

marek141017 commented Oct 11, 2020

Hello

I need some help
My Ubuntu is 20.04 LTS
I did as was suggested here
But, when I connect my MPOW I got:

	Name: bluez_card.F8_8A_3C_31_E2_31
	Driver: module-bluez5-device.c
	Owner Module: 14
	Properties:
		device.description = "Mpow X3"
		device.string = "F8:8A:3C:31:E2:31"
		device.api = "bluez"
		device.class = "sound"
		device.bus = "bluetooth"
		device.form_factor = "headset"
		bluez.path = "/org/bluez/hci0/dev_F8_8A_3C_31_E2_31"
		bluez.class = "0x2c0404"
		bluez.alias = "Mpow X3"
		device.icon_name = "audio-headset-bluetooth"
		device.intended_roles = "phone"
	Profiles:
		a2dp_source_sbc: High Fidelity Capture (A2DP Source: SBC) (sinks: 0, sources: 1, priority: 20, available: yes)
		a2dp_source_aac: High Fidelity Capture (A2DP Source: AAC) (sinks: 0, sources: 1, priority: 20, available: no)
		a2dp_source_aptx: High Fidelity Capture (A2DP Source: APTX) (sinks: 0, sources: 1, priority: 20, available: no)
		a2dp_source_aptx_hd: High Fidelity Capture (A2DP Source: aptX HD) (sinks: 0, sources: 1, priority: 20, available: no)
		a2dp_sink_sbc: High Fidelity Playback (A2DP Sink: SBC) (sinks: 1, sources: 0, priority: 40, available: yes)
		a2dp_sink_aac: High Fidelity Playback (A2DP Sink: AAC) (sinks: 1, sources: 0, priority: 40, available: yes)
		a2dp_sink_aptx: High Fidelity Playback (A2DP Sink: aptX) (sinks: 1, sources: 0, priority: 40, available: no)
		a2dp_sink_aptx_hd: High Fidelity Playback (A2DP Sink: aptX HD) (sinks: 1, sources: 0, priority: 40, available: no)
		a2dp_sink_ldac: High Fidelity Playback (A2DP Sink: LDAC) (sinks: 1, sources: 0, priority: 40, available: no)
		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_aac
	Ports:
		headset-output: Headset (priority: 0, latency offset: 0 usec)
			Part of profile(s): a2dp_sink_sbc, a2dp_sink_aac, a2dp_sink_aptx, a2dp_sink_aptx_hd, a2dp_sink_ldac, headset_head_unit
		headset-input: Headset (priority: 0, latency offset: 0 usec, not available)
			Part of profile(s): a2dp_source_sbc, a2dp_source_aac, a2dp_source_aptx, a2dp_source_aptx_hd, headset_head_unit

The most important part
headset_head_unit: available: no

I have only one source a2dp_source_sbc: High Fidelity Capture
When I try to change profile, I got
Failed to change profile to a2dp_source_sbc

Additional logs from pulse

D: [pulseaudio] card.c: Looking for initial profile for card bluez_card.F8_8A_3C_31_E2_31
D: [pulseaudio] card.c: a2dp_source_sbc availability no
D: [pulseaudio] card.c: a2dp_source_aac availability no
D: [pulseaudio] card.c: a2dp_source_aptx availability no
D: [pulseaudio] card.c: a2dp_source_aptx_hd availability no
D: [pulseaudio] card.c: a2dp_sink_sbc availability no
D: [pulseaudio] card.c: a2dp_sink_aac availability unknown
D: [pulseaudio] card.c: a2dp_sink_aptx availability no
D: [pulseaudio] card.c: a2dp_sink_aptx_hd availability no
D: [pulseaudio] card.c: a2dp_sink_ldac availability no
D: [pulseaudio] card.c: headset_head_unit availability no
D: [pulseaudio] card.c: off availability yes
I: [pulseaudio] card.c: bluez_card.F8_8A_3C_31_E2_31: active_profile: a2dp_sink_aac
I: [pulseaudio] card.c: Created 1 "bluez_card.F8_8A_3C_31_E2_31"

Need some advise.
Thank you

@stale
Copy link

stale bot commented Dec 12, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Dec 12, 2020
@sschuhmann
Copy link

I still have this issue

@stale stale bot removed the stale label Dec 14, 2020
@Mic92
Copy link

Mic92 commented Jan 3, 2021

I had to follow this hack to make it available: https://wiki.archlinux.org/index.php/Bluetooth_headset#HFP_not_working_with_PulseAudio

@EHfive
Copy link
Owner

EHfive commented Jan 18, 2021

This project has been deprecated. #154

There will be no bug fixing commits anymore.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

7 participants