I use LE 10 and HDMI and I had a problem, the sound was not send to the HDMI. My solution was to move
from the autostart to the bluetooth.py as
Code
import os, xbmc
# Perform the below shell command. This assigns the bluetooth device as a default source for Kodi
os.system("pactl set-default-source `pactl list short sources | grep -i blue | awk {'print $2 '}`")
# Assign the output of the shell command to BT_NAME (Bluetooth Name)
BT_NAME = os.popen("pactl list sources | grep -i bluetooth.protocol -A 1 | awk 'FNR==2{print $3}' | tr -d '\n' | tr -d '\"'").read()
# If the variable is not empty, create a KODI dialog showing the name of the bluetooth device.
if BT_NAME:
xbmc.executebuiltin("Notification(Bluetooth, Activated: %s, 3000)" % BT_NAME)
os.system("pactl set-default-sink alsa_output.0.hdmi-stereo")
os.system("pactl unload-module module-loopback")
os.system("pactl load-module module-loopback latency_msec=1000")
# If the variable is empty, creatae a KODI dialog showing no bluetooth device found.
else:
xbmc.executebuiltin("Notification(Bluetooth, No blutooth device found, 3000)")
Display More