
Code: Select all
$ bluetoothctl
[bluetooth]# scan on
#out
...
[bluetooth]# [CHG] Device xx:xx:xx:xx:xx:xx
...
# run
[bluetooth]# connect xx:xx:xx:xx:xx:xxI add the filesAnon-E-moose wrote:Are you just using whatever default config files for pipewire/wireplumber there are.
Or do you have config files in .config/pipewire and/or .config/wireplumber?
and added or modified/etc/pulseaudio/client.pulse wrote:autospawn = no
I also added for bluealsa the /etc/dbus-1/system.d/bluealsa.conf and etc/alsa/conf.d/20-bluealsa.conf from https://wiki.gentoo.org/wiki/Bluetooth_headset (with MAC addresses adapted; this is perhaps a bit too long to repost here), and/etc/pipewire/pipewire-pulse.conf.d/pipewire-pulse.conf wrote:pulse.properties = {
server.address = [
"unix:native"
"tcp:127.0.0.1:4713"
]
vm.overrides = {
pulse.min.quantum = 1024/48000
}
}
(which takes only effect if I use the alsa device bluealsa; changing the alsa output to bluealsa in asound.conf unsurprisingly has only effect if e.g. mplayer outputs to alsa)./etc/asound.conf wrote:defaults.bluealsa {
interface "hci0" # host Bluetooth adapter
device "41:42:FF:B3:D8:93" # Bluetooth headset MAC address
profile "a2dp"
}
/etc/wireplumber/wireplumber.conf.d/entoo-sound-server-enable-audio-bluetooth.conf wrote:wireplumber.profiles = {
main = {
hardware.audio = required
hardware.bluetooth = required
}
}
As mentioned, sometimes it is as in the other thread:ormorph wrote:Is the connection working? If not, what is the output after executing the command: connect xx:xx:xx:xx:xx:xxCode: Select all
$ bluetoothctl [bluetooth]# scan on #out ... [bluetooth]# [CHG] Device xx:xx:xx:xx:xx:xx ... # run [bluetooth]# connect xx:xx:xx:xx:xx:xx
However, eventually (either after sufficiently many retries or sufficiently many attempts), I getAttempting to connect to xx:xx:xx:xx:xx:xx
[bluetooth]# Failed to connect: org.bluez.Error.Failed br-connection-profile-unavailable
B8 is the bluetooth name of my headphone (when I pair it with my smartphone).hci0 xx:xx:xx:xx:xx:xx type BR/EDR connected eir_len 5
[CHG] Device xx:xx:xx:xx:xx:xx Connected: yes
[B8]# [NEW] Endpoint /org/bluez/hci0/dev_xx_xx_xx_xx_xx_xx/sep1
[B8]# [NEW] Endpoint /org/bluez/hci0/dev_xx_xx_xx_xx_xx_xx/sep2
[B8]# [NEW] Transport /org/bluez/hci0/dev_xx_xx_xx_xx_xx_xx/sep1/fd2
[B8]# Connection successful
[B8]# [CHG] Transport /org/bluez/hci0/dev_xx_xx_xx_xx_xx_xx/sep1/fd2 Volume: 0x0058 (88)
[B8]# [CHG] Device xx:xx:xx:xx:xx:xx ServicesResolved: yes
It may be necessary to first remove the device and then reconnect it. You can also see the latest message here, тhis also solves the problem.mv wrote:However, eventually (either after sufficiently many retries or sufficiently many attempts), I getAttempting to connect to xx:xx:xx:xx:xx:xx
[bluetooth]# Failed to connect: org.bluez.Error.Failed br-connection-profile-unavailable
Code: Select all
ControllerMode = bredrCode: Select all
[bluetooth]# devices
Device xx:xx:xx:xx:xx:xx name
[bluetooth]# remove xx:xx:xx:xx:xx:xxThis did not really improve the situation, perhaps it made it even worse. (There were some messages that connection with bredr failed.) Perhaps I had no success at all with this option. (I tried so much that it is hard to say.)ControllerMode = bredr
That did the trick! Adding the line monitor.bluez.seat-monitoring = disabled to the main section of /etc/wireplumber/wireplumber.conf.d/gentoo-sound-server-enable-audio-bluetooth.conf and restarting pipewire+wireplumber helped.ormorph wrote:You can also see the latest message here, тhis also solves the problem.

Code: Select all
monitor.alsa.reserve-device = disabled
monitor.bluez.seat-monitoring = disabledRegistered to say Thank you! This helped, after a year with unworkable BT headphones!Anon-E-moose wrote: I had forgotten about the monitor settings, I turn those off.
Code: Select all
monitor.alsa.reserve-device = disabled monitor.bluez.seat-monitoring = disabled
Code: Select all
bluetooth]# hci0 *** type BR/EDR connected eir_len 14
[Echo Dot]# [CHG] Device *** Connected: yes
[Echo Dot]# hci0 *** auth failed with status 0x05 (Authentication Failed)
[Echo Dot]# hci0 *** type BR/EDR disconnected with reason 2
[bluetooth]# [CHG] Device *** Connected: no