No sound using A2DP sink with bluetooth

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Post Reply
tsoli
Level 1
Level 1
Posts: 22
Joined: Sat Jun 24, 2023 7:53 pm

No sound using A2DP sink with bluetooth

Post by tsoli »

I am on LM 21.2 and output of

Code: Select all

pactl info
is

Code: Select all

Server String: /run/user/1000/pulse/native
Library Protocol Version: 35
Server Protocol Version: 35
Is Local: yes
Client Index: 2800
Tile Size: 65472
User Name: ****
Host Name: ****
Server Name: PulseAudio (on PipeWire 1.0.0)
Server Version: 15.0.0
Default Sample Specification: float32le 2ch 48000Hz
Default Channel Map: front-left,front-right
Default Sink: alsa_output.pci-0000_33_00.6.HiFi__hw_Generic_1__sink
Default Source: alsa_input.pci-0000_33_00.6.HiFi__hw_acp6x__source
Cookie: 2603:8fab
For whatever reason I cannot get my bluetooth audio to work. I have tried with my sony wf-1000xm3 and with a bluetooth speaker. The speaker will usually connect and maybe output audio for a split second but then no sound. The headphones hardly ever output sound but when they do it is because they are in handsfree mode with pretty bad audio quality. Most of the time it won't even do this and there is just no sound or even confirmation that it has connected. I tried going back to pulseaudio with

Code: Select all

systemctl --user unmask pulseaudio
systemctl --user --now enable pulseaudio.service pulseaudio.socket
but it does not help. I am also using easyeffects if that is relevant.

Please let me know if there is any more info that is relevant that I can provide. Thanks for the help!
User avatar
igmint
Level 4
Level 4
Posts: 233
Joined: Fri Jan 10, 2020 1:52 pm

Re: No sound using A2DP sink with bluetooth

Post by igmint »

translated by googlemachine. UTC+3:00
tsoli
Level 1
Level 1
Posts: 22
Joined: Sat Jun 24, 2023 7:53 pm

Re: No sound using A2DP sink with bluetooth

Post by tsoli »

igmint wrote: Mon Dec 11, 2023 7:59 am Similar problem viewtopic.php?p=2401996#p2401996
Had a look and have pavucontrol installed. When the devices make no sound they don't even show in pavucontrol. If i try to change the audio profile in blueman I get "Failed to change profile to ..." and the options are all a2dp anyway.

Sometimes I get a notification about authorising a connection to a handsfree device but I don't know what I can do about this request and I want it in a2dp mode anyway.
tsoli
Level 1
Level 1
Posts: 22
Joined: Sat Jun 24, 2023 7:53 pm

Re: No sound using A2DP sink with bluetooth

Post by tsoli »

igmint wrote: Mon Dec 11, 2023 7:59 am Similar problem viewtopic.php?p=2401996#p2401996
I don't know why, but I can't bump this topic even though the last time I tried was probably over a week ago. Still haven't found a solution :(. This has been bugging me for months! I think it may be common for Lenovo thinkpads (I have a T14s Gen 3) but I have not come across a working solution yet.

I tried live booting LM 21.1 and 21.2 from a USB to see if I could get it to work there but no luck so it seems it isn't related to any additional software that I have installed.
tsoli
Level 1
Level 1
Posts: 22
Joined: Sat Jun 24, 2023 7:53 pm

Re: No sound using A2DP sink with bluetooth

Post by tsoli »

Upgraded to 21.3 and 6.5.0-15-generic kernel. Still not working. Bluetooth sound registers as connected on the laptop but not on the bluetooth device. Don't really know what else I can try. Seems I can't bump the thread anymore which is weird.
User avatar
igmint
Level 4
Level 4
Posts: 233
Joined: Fri Jan 10, 2020 1:52 pm

Re: No sound using A2DP sink with bluetooth

Post by igmint »

translated by googlemachine. UTC+3:00
wasd33
Level 1
Level 1
Posts: 35
Joined: Sat Dec 17, 2022 6:05 pm

Re: No sound using A2DP sink with bluetooth

Post by wasd33 »

I may have found a solution. For context, I am using a JLab Bluetooth headset which connects to both my primary personal PC (Linux Mint 21.3) and a laptop (Windows 10). While it does not like switching between two devices, including losing audio on the Mint PC when taking calls/audio on the Windows laptop, I encountered a new issue yesterday.

The Mint Bluetooth panel showed my headset connected, however I had no audio output on the A2DP profile, only on the HFP headset profile.
BluetoothProfiles.png
For additional context, here is my output from inxi -E

Code: Select all

Bluetooth:
  Device-1: Intel Bluetooth wireless interface type: USB driver: btusb
  Report: hciconfig ID: hci0 state: up address: 38:68:93:29:28:44 bt-v: 2.1
Having seen this thread and searched the web, the solution I found was on this Debian Wiki page

First thing I did:
1. Navigated to /var/lib/gdm3/.config/pulse/ in terminal
2. As I did not have the client.conf file, I used sudo touch to create it
3. Within terminal, used sudo nano to open the command-line text editor
4. Copy+pasted

Code: Select all

autospawn = no
daemon-binary = /bin/true
within the nano editor
5. Exited nano saving the changes.

Second thing I did:
1. Navigated to /etc/pulse/
2. Opened default.pa in nano with this command: sudo nano default.pa
3. At the bottom, I used ### to add a comment of what step I was referencing and it was on the Debian Wiki
4. Below that comment, I copy+pasted load-module module-switch-on-connect
5. Exited nano saving changes.

Once both of these were done, I rebooted my computer. It took a second longer to connect to my headset, however it did ultimately connect using the A2DP Sink for High Fidelity audio.
tsoli
Level 1
Level 1
Posts: 22
Joined: Sat Jun 24, 2023 7:53 pm

Re: No sound using A2DP sink with bluetooth

Post by tsoli »

wasd33 wrote: Thu Mar 07, 2024 1:43 pm First thing I did:
1. Navigated to /var/lib/gdm3/.config/pulse/ in terminal
2. As I did not have the client.conf file, I used sudo touch to create it
3. Within terminal, used sudo nano to open the command-line text editor
4. Copy+pasted

Code: Select all

autospawn = no
daemon-binary = /bin/true

within the nano editor
5. Exited nano saving the changes.
I don't have gdm3. I think LM 21.3 Cinnamon uses lightdm instead? For some reason I get a permissions error when trying to cd into it at /var/lib/lightdm . It says the owner is lightdm when I checked with ls -l. Not sure if I should change these permissions.
wasd33 wrote: Thu Mar 07, 2024 1:43 pm Second thing I did:
1. Navigated to /etc/pulse/
2. Opened default.pa in nano with this command: sudo nano default.pa
3. At the bottom, I used ### to add a comment of what step I was referencing and it was on the Debian Wiki
4. Below that comment, I copy+pasted load-module module-switch-on-connect
5. Exited nano saving changes.
Mine already had a section

Code: Select all

.ifexists module-switch-on-connect.so
load-module module-switch-on-connect
.endif
which I assume is what it is referring to. Tried removing the if guards and rebooting but no luck it seems. Thanks for the suggestions anyway!
wasd33
Level 1
Level 1
Posts: 35
Joined: Sat Dec 17, 2022 6:05 pm

Re: No sound using A2DP sink with bluetooth

Post by wasd33 »

All good to hear tsoli, in fact I think a recent update to the Linux kernel itself fixed an autoconnect error. I had to revert the changes I did once I installed that update.
Post Reply

Return to “Sound”