DietPi version | 10.6.2
Distro version | trixie
Kernel version | Linux Family 6.12.101+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.101-1 (2026-08-05) x86_64 GNU/Linux
Architecture | amd64
SBC model | Native PC (x86_64)
I’m currently running Dietpi and have Kodi on Autostart and Bluetooth ON
To connect to my BT headphones I put a small script into /var/lib/dietpi/postboot.d/bt-headphoness.sh
sleep 10
echo "connect 88:C9:E8:91:B8:68" |bluetoothctl
Everything worked perfectly for a couple of weeks, even this morning, however when attempting to reconnect later today, the bluetooth connection in Kodi sound devices has disappeared. I rebooted several times but it won’t return.
On reboot I get an audio message through the headphones saying “Bluetooth Connected”, but then nothing
I then ran;
bluetoothctl connect 88:C9:E8:91:B8:68
Attempting to connect to 88:C9:E8:91:B8:68
Connection successful
speaker-test -D bluealsa
speaker-test 1.2.14
Playback device is bluealsa
Stream parameters are 48000Hz, S16_LE, 1 channels
Using 16 octaves of pink noise
\[2894\] D: bluealsa-pcm.c:1538: Getting BlueALSA PCM: PLAYBACK 00:00:00:00:00:00 a2dp
\[2894\] D: bluealsa-pcm.c:1296: /org/bluealsa/hci0/dev_88_C9_E8_91_B8_68/a2dpsrc/sink: Setting constraints
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 960 to 206158430
Period size range from 480 to 524288
Periods = 4
\[2894\] D: bluealsa-pcm.c:566: /org/bluealsa/hci0/dev_88_C9_E8_91_B8_68/a2dpsrc/sink: Initializing HW
\[2894\] D: bluealsa-pcm.c:612: /org/bluealsa/hci0/dev_88_C9_E8_91_B8_68/a2dpsrc/sink: Couldn't open PCM: Device or resource busy
Unable to set hw params for playback: Device or resource busy
Setting of hwparams failed: Device or resource busy
\[2894\] D: bluealsa-pcm.c:475: /org/bluealsa/hci0/dev_88_C9_E8_91_B8_68/a2dpsrc/sink: Closing
Extract fom Kodi Log
info : Loading skin file: /root/.kodi/addons/script.bluetooth.man/resources/skins/Default/1080i/discover.xml, load type: LOAD_ON_GUI_INIT
info : CAddonMgr::FindAddons: script.bluetooth.delay v1.2.0 installed
info : CAddonMgr::FindAddons: script.bluetooth.man v1.0.6 installed
info : CAddonMgr::FindAddons: service.bluetooth-audio v12.2.0.1 installed
info : CAESinkALSA - Unable to open device "bluealsa" for playback
Can you please help?