Open johackim opened 6 months ago
See here: #3456
Try this:
apt install bluez-alsa-utils
aplay -l
speaker-test -D bluealsa
I am not sure whether the bluealsa
service does/tries binding to BT audio devices automatically or just allows manual binding, or is not related to this at all. Also probably a reboot is required, or unmuting the volume:
alsamixer -D bluealsa
When this BT audio PCM generally works, you can make it the default:
echo -e 'pcm.!default bluealsa\nctl.!default bluealsa' > /etc/asound.conf
Thank you very much @MichaIng!
It works 😀!
However, I have to connect my Bluetooth headset before running Kodi, or exit Kodi to reconnect my Bluetooth headset if the connection is lost.
I can't autostart Kodi.
Okay, so pairing still needs to be done manually. Somehow makes sense. I have not much experience with bluez, but wonder whether there is a native way to have it connecting to a particular device automatically (given that the device accepts it). Else, you could create a script for that and place it into /var/lib/dietpi/postboot.d
to be executed automatically on boot.
If I may, I'd like to piggyback on this Thread. I'm also trying to connect a bluetooth audio device, in my case an Alexa smart speaker. My end goal is to install plexamp-headless via docker and send the audio output via bluetooth to the Alexa.
But I always get an error when trying to connect using bluetoothctl
: "Failed to connect: org.bluez.Error.Failed". But I also did not succeed in installing bluez-alsa-utils
as apt does not find any package by that name.
I'm running DietPi v9.6.1 on a RPi 3 Model B (aarch64)
// Edit: Trying to connect to an Anker brand bluetooth speaker yields the same result. Pairing and trusting works, but trying to connect fails.
Creating a bug report/issue
[x] I have searched the existing open and closed issues
Required Information
bookworm 0
Linux DietPi 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023 aarch64 GNU/Linux
arm64
RPi 3 Model B (aarch64)
SanDisk ultra
Steps to reproduce
dietpi-config
Advanced Options
Bluetooth: [On]
bluetoothctl scan on
bluetoothctl pair DEVICE_ID
bluetoothctl trust DEVICE_ID
bluetoothctl connect DEVICE_ID
Expected behaviour
Actual behaviour
Failed to connect: org.bluez.Error.Failed br-connection-profile-unavailable
Extra details
kodi
.pulseaudio
doesn't work withkodi
but I can usepipewire
instead.kodi
with a bluetooth headset