Guest - Testers are needed for the reworked CDateTime core component. See... https://forum.kodi.tv/showthread.php?tid=378981 (September 29) x
Mute HDMI Audio Output: Command and keyboard shortcut?
#1
What's the command for toggling the "Mute HDMI Audio Output" (Settings / System / Video)?
Kodi 17.6
Reply
#2
For the keyboard, press F8 to mute:

https://github.com/xbmc/xbmc/blob/master...d.xml#L154
(2019-02-22, 12:27)Protheon Wrote: "Mute HDMI Audio Output" (Settings / System / Video)?

Not sure which setting you are refering to as there's no "video" under Settings -> System and, tbh, there's no setting like that for Estuary. Maybe it's something platform dependend. Which OS are you using?
Reply
#3
Sorry, it's under "Display" and looks like this:
Image

I'm using OSMC, obviously this makes a difference.
Kodi 17.6
Reply
#4
Yeah. And it also looks like it's Kodi 17 (I might be wrong). Anyway, could you please ask that at the OSMC-forums. Thanks.
Reply
#5
That's not a standard Kodi setting so must have been added by OSMC so you'll need to ask there.
Reply
#6
Reply from the OSMC developer:
„This is exposed as a Kodi setting so it’s not trivial to toggle it.“
Kodi 17.6
Reply
#7
It's in CoreElec as well
Quote:HDMI mute - beneficial for users with old AVR's that need SPDIF only audio
thx @samnazarko
https://github.com/CoreELEC/CoreELEC/pull/167
Reply
#8
Got it to working now:
Code:
echo audio_off > /sys/class/amhdmitx/amhdmitx0/config
echo audio_on > /sys/class/amhdmitx/amhdmitx0/config

Added a key mapping
Code:
<f6>XBMC.RunScript(/home/osmc/scripts/HDMI_toggle.py)</f6>

Content of HDMI_toggle.py:
Code:
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()
Kodi 17.6
Reply

Logout Mark Read Team Forum Stats Members Help
Mute HDMI Audio Output: Command and keyboard shortcut?0