2019-02-22, 12:27
What's the command for toggling the "Mute HDMI Audio Output" (Settings / System / Video)?
(2019-02-22, 12:27)Protheon Wrote: "Mute HDMI Audio Output" (Settings / System / Video)?
Quote:HDMI mute - beneficial for users with old AVR's that need SPDIF only audiohttps://github.com/CoreELEC/CoreELEC/pull/167
thx @samnazarko
echo audio_off > /sys/class/amhdmitx/amhdmitx0/config
echo audio_on > /sys/class/amhdmitx/amhdmitx0/config
<f6>XBMC.RunScript(/home/osmc/scripts/HDMI_toggle.py)</f6>
import subprocess
file = open("/home/osmc/scripts/HDMI_status.txt", "r")
inhalt = file.read()
file.close()
file = open("/home/osmc/scripts/HDMI_status.txt", "w")
print(inhalt)
if "off" in inhalt:
subprocess.call(["/home/osmc/scripts/HDMI_on.sh"])
file.write("on")
else:
subprocess.call(["/home/osmc/scripts/HDMI_off.sh"])
file.write("off")
file.close()