I finaly configured my PC in dual boot with XUBUNTU 18.04 and LIBRELEC 9. But it was annoying that i have to reconnect my bluetooth speaker in Libreelec each time i start it. So i made a autoconnect script. Copy this code to /storage/.config/autostart.sh and change whatever your BT device ID is. Find out with “bluetoothctl devices“…
#!/bin/bash
( bluetoothctl scan on &
for i in 7 6 5 4 3 2 1;do
BTD=bluetoothctl paired-devices
Device A4:77:58:12:6F:7C Anker SoundCore
Device FC:58:FA:AA:27:A9 Areal Bar 350
for ID in A4:77:58:12:6F:7C FC:58:FA:AA:27:A9;do
if [ "echo $BTD|grep $ID" ];then
[ "bluetoothctl info $ID|grep 'Connected: yes'" ] || bluetoothctl connect $ID
fi
done
sleep $i
done
pkill bluetoothctl ) &