You are not logged in.

#1 2021-12-22 14:33:16

Superadmin
Member
Registered: 2021-08-22
Posts: 92

Cannot play sound on Bluetooth Headset

I have bluetooth headphones which previously used to provide audio output after the connection has been set up....
Now I have to manually set up the pavucontrol to Headphones(unplugged) to get the headphones working
And sometime it does not even provide sound even after manual configuration....
They pair up but I have no idea why my computer is not providing output via Bluetooth as default



The status of Bluetooth shows that

● bluetooth.service - Bluetooth service
     Loaded: loaded (/usr/lib/systemd/system/bluetooth.service; enabled; vendor preset: disabled)
     Active: active (running) since Wed 2021-12-22 19:44:41 +0545; 34min ago
       Docs: man:bluetoothd(8)
   Main PID: 635 (bluetoothd)
     Status: "Running"
      Tasks: 1 (limit: 18408)
     Memory: 3.5M
        CPU: 41ms
     CGroup: /system.slice/bluetooth.service
             └─635 /usr/lib/bluetooth/bluetoothd

Dec 22 19:45:03 superadmin bluetoothd[635]: Endpoint registered: sender=:1.51 path=/MediaEndpoint/A2DPSource/sbc_xq_453
Dec 22 19:45:03 superadmin bluetoothd[635]: Endpoint registered: sender=:1.51 path=/MediaEndpoint/A2DPSink/sbc_xq_512
Dec 22 19:45:03 superadmin bluetoothd[635]: Endpoint registered: sender=:1.51 path=/MediaEndpoint/A2DPSource/sbc_xq_512
Dec 22 19:45:03 superadmin bluetoothd[635]: Endpoint registered: sender=:1.51 path=/MediaEndpoint/A2DPSink/sbc_xq_552
Dec 22 19:45:03 superadmin bluetoothd[635]: Endpoint registered: sender=:1.51 path=/MediaEndpoint/A2DPSource/sbc_xq_552
Dec 22 19:57:04 superadmin bluetoothd[635]: src/profile.c:record_cb() Unable to get Hands-Free Voice gateway SDP record: Host is down
Dec 22 19:57:08 superadmin bluetoothd[635]: /org/bluez/hci0/dev_5C_FB_7C_1A_68_AE/fd0: fd(40) ready
Dec 22 20:18:48 superadmin bluetoothd[635]: src/profile.c:record_cb() Unable to get Hands-Free Voice gateway SDP record: Host is down
Dec 22 20:18:51 superadmin bluetoothd[635]: /org/bluez/hci0/dev_5C_FB_7C_1A_68_AE/sep1/fd1: fd(40) ready
Dec 22 20:18:51 superadmin bluetoothd[635]: profiles/audio/avctp.c:avctp_control_confirm() Control: Refusing unexpected connect

While connecting it shows message that the connection failed but in bluetooth setting it shows connected and my headphone too signals me that it's connected
I have ufw as well..... I don't think a firewall blocking just sound instead the entire connection
I have pulseadio, alsa and pipewire in my computer
Edit: After I disconnect my bluetooth of headphone then I have to then go back to pavucontrol to set the sound back to speakers

Last edited by Superadmin (2021-12-22 14:59:00)

Offline

#2 2021-12-22 14:37:57

Superadmin
Member
Registered: 2021-08-22
Posts: 92

Re: Cannot play sound on Bluetooth Headset

$ pacmd list-cards 
3 card(s) available.
    index: 0
	name: <alsa_card.pci-0000_01_00.1>
	driver: <module-alsa-card.c>
	owner module: 6
	properties:
		alsa.card = "0"
		alsa.card_name = "HDA NVidia"
		alsa.long_card_name = "HDA NVidia at 0xd1000000 irq 98"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:01:00.1"
		sysfs.path = "/devices/pci0000:00/0000:00:01.1/0000:01:00.1/sound/card0"
		device.bus = "pci"
		device.vendor.id = "10de"
		device.vendor.name = "NVIDIA Corporation"
		device.product.id = "1aeb"
		device.product.name = "TU116 High Definition Audio Controller"
		device.string = "0"
		device.description = "TU116 High Definition Audio Controller"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	profiles:
		output:hdmi-stereo: Digital Stereo (HDMI) Output (priority 5900, available: no)
		output:hdmi-surround: Digital Surround 5.1 (HDMI) Output (priority 800, available: no)
		output:hdmi-surround71: Digital Surround 7.1 (HDMI) Output (priority 800, available: no)
		output:hdmi-stereo-extra1: Digital Stereo (HDMI 2) Output (priority 5700, available: no)
		output:hdmi-surround-extra1: Digital Surround 5.1 (HDMI 2) Output (priority 600, available: no)
		output:hdmi-surround71-extra1: Digital Surround 7.1 (HDMI 2) Output (priority 600, available: no)
		output:hdmi-stereo-extra2: Digital Stereo (HDMI 3) Output (priority 5700, available: no)
		output:hdmi-surround-extra2: Digital Surround 5.1 (HDMI 3) Output (priority 600, available: no)
		output:hdmi-surround71-extra2: Digital Surround 7.1 (HDMI 3) Output (priority 600, available: no)
		output:hdmi-stereo-extra3: Digital Stereo (HDMI 4) Output (priority 5700, available: no)
		output:hdmi-surround-extra3: Digital Surround 5.1 (HDMI 4) Output (priority 600, available: no)
		output:hdmi-surround71-extra3: Digital Surround 7.1 (HDMI 4) Output (priority 600, available: no)
		output:hdmi-stereo-extra4: Digital Stereo (HDMI 5) Output (priority 5700, available: no)
		output:hdmi-surround-extra4: Digital Surround 5.1 (HDMI 5) Output (priority 600, available: no)
		output:hdmi-surround71-extra4: Digital Surround 7.1 (HDMI 5) Output (priority 600, available: no)
		off: Off (priority 0, available: unknown)
	active profile: <off>
	ports:
		hdmi-output-0: HDMI / DisplayPort (priority 5900, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "video-display"
		hdmi-output-1: HDMI / DisplayPort 2 (priority 5800, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "video-display"
		hdmi-output-2: HDMI / DisplayPort 3 (priority 5700, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "video-display"
		hdmi-output-3: HDMI / DisplayPort 4 (priority 5600, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "video-display"
		hdmi-output-4: HDMI / DisplayPort 5 (priority 5500, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "video-display"
    index: 1
	name: <alsa_card.pci-0000_05_00.6>
	driver: <module-alsa-card.c>
	owner module: 7
	properties:
		alsa.card = "1"
		alsa.card_name = "HD-Audio Generic"
		alsa.long_card_name = "HD-Audio Generic at 0xd15c0000 irq 99"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:05:00.6"
		sysfs.path = "/devices/pci0000:00/0000:00:08.1/0000:05:00.6/sound/card1"
		device.bus = "pci"
		device.vendor.id = "1022"
		device.vendor.name = "Advanced Micro Devices, Inc. [AMD]"
		device.product.id = "15e3"
		device.product.name = "Family 17h (Models 10h-1fh) HD Audio Controller"
		device.string = "1"
		device.description = "Family 17h (Models 10h-1fh) HD Audio Controller"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	profiles:
		input:analog-stereo: Analog Stereo Input (priority 32833, available: unknown)
		output:analog-stereo: Analog Stereo Output (priority 39268, available: unknown)
		output:analog-stereo+input:analog-stereo: Analog Stereo Duplex (priority 39333, available: unknown)
		off: Off (priority 0, available: unknown)
	active profile: <output:analog-stereo>
	sinks:
		alsa_output.pci-0000_05_00.6.analog-stereo/#0: Family 17h (Models 10h-1fh) HD Audio Controller Analog Stereo
	sources:
		alsa_output.pci-0000_05_00.6.analog-stereo.monitor/#0: Monitor of Family 17h (Models 10h-1fh) HD Audio Controller Analog Stereo
	ports:
		analog-input-internal-mic: Internal Microphone (priority 8900, latency offset 0 usec, available: unknown)
			properties:
				device.icon_name = "audio-input-microphone"
		analog-input-mic: Microphone (priority 8700, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "audio-input-microphone"
		analog-output-speaker: Speakers (priority 10000, latency offset 0 usec, available: unknown)
			properties:
				device.icon_name = "audio-speakers"
		analog-output-headphones: Headphones (priority 9900, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "audio-headphones"
    index: 3
	name: <bluez_card.5C_FB_7C_1A_68_AE>
	driver: <module-bluez5-device.c>
	owner module: 28
	properties:
		device.description = "JBL T450BT"
		device.string = "5C:FB:7C:1A:68:AE"
		device.api = "bluez"
		device.class = "sound"
		device.bus = "bluetooth"
		device.form_factor = "headset"
		bluez.path = "/org/bluez/hci0/dev_5C_FB_7C_1A_68_AE"
		bluez.class = "0x240404"
		bluez.alias = "JBL T450BT"
		device.icon_name = "audio-headset-bluetooth"
		device.intended_roles = "phone"
		bluetooth.codec = "sbc"
	profiles:
		headset_head_unit: Headset Head Unit (HSP) (priority 30, available: no)
		a2dp_sink: High Fidelity Playback (A2DP Sink) (priority 40, available: yes)
		handsfree_head_unit: Handsfree Head Unit (HFP) (priority 30, available: unknown)
		off: Off (priority 0, available: yes)
	active profile: <a2dp_sink>
	sinks:
		bluez_sink.5C_FB_7C_1A_68_AE.a2dp_sink/#2: JBL T450BT
	sources:
		bluez_sink.5C_FB_7C_1A_68_AE.a2dp_sink.monitor/#2: Monitor of JBL T450BT
	ports:
		headset-output: Headset (priority 0, latency offset 0 usec, available: yes)
			properties:
				
		headset-input: Headset (priority 0, latency offset 0 usec, available: unknown)
			properties:
				

Offline

#3 2021-12-23 02:45:46

Superadmin
Member
Registered: 2021-08-22
Posts: 92

Re: Cannot play sound on Bluetooth Headset

Anyone?

Offline

#4 2021-12-23 13:37:08

Superadmin
Member
Registered: 2021-08-22
Posts: 92

Re: Cannot play sound on Bluetooth Headset

Is there anything I didn't mention which is not helping overcome this issue?
Please let me know..... smile

Offline

#5 2021-12-23 13:58:53

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,299

Re: Cannot play sound on Bluetooth Headset

Don't do that: https://wiki.archlinux.org/title/Genera … es#Bumping

What has changed between it working last and not? Did you get a bluez and/or kernel upgrade, have you tried an older known good kernel? In general for pulse to do an auto switch you need to add

load-module module-switch-on-connect

to your /etc/pulse/default.pa after the if... udev-detect block, otherwise it will not automatically switch to a newly appearing sink.

Offline

#6 2021-12-23 14:30:01

Superadmin
Member
Registered: 2021-08-22
Posts: 92

Re: Cannot play sound on Bluetooth Headset

sry for that......

pulse to do an auto switch you need to add
load-module module-switch-on-connect
to your /etc/pulse/default.pa after the if... udev-detect block, otherwise it will not automatically switch to a newly appearing sink.

Yeah !! I did that but found no any changes
I displays that the audio has been switched but sound is still coming from the speakers.....
Let me try downgrading once smile

Edit: I downgraded but sound still comes from the speaker
for confirmation that I did the process right

# nano /etc/pulse/default.pa
.....
### Automatically load driver modules depending on the hardware available
.ifexists module-udev-detect.so
load-module module-switch-on-connect
load-module module-udev-detect
.else
### Use the static hardware detection module (for systems that lack udev support)
load-module module-detect
.endif
...

Last edited by Superadmin (2021-12-23 14:40:07)

Offline

#7 2021-12-23 14:56:26

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,299

Re: Cannot play sound on Bluetooth Headset

What did you downgrade exactly? pulse 15 got released in July of this year, if it used to work back then then downgrading that will not have an effect. If it's not pulse that's the problem it's either a regression in the kernel or the bluez packages.

FWIW regarding the connect module, you'd usually place it after the udev module got loaded, you can add it completely after the .endif but afaik it shouldn't generally matter much, I just remember to read somewhere that it hooks into the relevant detection method, you could also load it way later.

Offline

#8 2021-12-23 15:00:57

Lilitu-Blackstar
Member
Registered: 2021-12-23
Posts: 51

Re: Cannot play sound on Bluetooth Headset

i have seen this a few times with a blue tooth headset,   its been icky to sort out and depending on the kernel/ bluetooth version at the time i could sort it with altering settings in pacmixer if using pulseaudio-bluetooth-module, also one time i had to make use of the aur pulse bluetooth module packages.  best of luck i def found that it was a struggle that lasted the entire lifespan of my headset >.> on and off. 

if you havent yet i would look at some of the aur bluetooth pulse modules

there are several, many of them orphaned. so hopefully one of the active ones sorts this for you

Offline

#9 2021-12-23 15:15:11

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,299

Re: Cannot play sound on Bluetooth Headset

Most of the relevant bluetooth work got merged into pulse 15, and it doesn't really sound like that's the inherent issue.

At that point if this was something you wanted to test out you'd rather switch to pipewire if you assumed an issue with pulse's bluetooth implementation.

Offline

#10 2021-12-23 15:28:59

Lilitu-Blackstar
Member
Registered: 2021-12-23
Posts: 51

Re: Cannot play sound on Bluetooth Headset

i have no clue outside of vague memory that persists my goldfish brain on the subject.  i havent used a bt headset in some time. i just remember between the ad2p sink issues and odd regressions, it became a headache on null volume sound system

Offline

#11 2021-12-24 04:16:44

Superadmin
Member
Registered: 2021-08-22
Posts: 92

Re: Cannot play sound on Bluetooth Headset

V1del wrote:

What did you downgrade exactly?

I downgraded kernel and bluez but no improvement (I will explain why )
It was still not switching....

I also have this question
How will I be able to store other version of packages
I just found the current version in my /var/cache/pacman/pkg/
so, my word for downgrading was just reinstalling the current version

V1del wrote:

I just remember to read somewhere that it hooks into the relevant detection method, you could also load it way later.

So, it should not matter much right. I have placed it and that's it right?

Offline

#12 2021-12-24 07:41:20

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,299

Re: Cannot play sound on Bluetooth Headset

As mentioned I'd place it after the .endif, when it's clear that the udev-detect module has loaded. Also you'll need to reboot or

systemctl --user restart pulseaudio

for changes there to take effect.

Just reinstalling the current version of the packages isn't a downgrade no, see the Arch Linux Archive for how to get access to older versions

Offline

#13 2021-12-24 13:52:06

Superadmin
Member
Registered: 2021-08-22
Posts: 92

Re: Cannot play sound on Bluetooth Headset

V1del wrote:

As mentioned I'd place it after the .endif, when it's clear that the udev-detect module has loaded. Also you'll need to reboot or

systemctl --user restart pulseaudio

for changes there to take effect.

Just reinstalling the current version of the packages isn't a downgrade no, see the Arch Linux Archive for how to get access to older versions


I placed the code after endif and also downgraded the bluez and bluez-utils package back from February when I had no any issues.....
But no sound is still coming from the speakers
Do I need to downgrade some other packages as well?
Do let me know smile

Edit:
Manual Configuration also sometime switches and sometime does not

Last edited by Superadmin (2021-12-24 14:31:25)

Offline

Board footer

Powered by FluxBB