Kodi Community Forum
Mute HDMI Audio Output: Command and keyboard shortcut? - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: OS independent / Other (https://forum.kodi.tv/forumdisplay.php?fid=228)
+---- Thread: Mute HDMI Audio Output: Command and keyboard shortcut? (/showthread.php?tid=341196)



Mute HDMI Audio Output: Command and keyboard shortcut? - Protheon - 2019-02-22

What's the command for toggling the "Mute HDMI Audio Output" (Settings / System / Video)?


RE: Mute HDMI Audio Output: Command and keyboard shortcut? - DaVu - 2019-02-22

For the keyboard, press F8 to mute:

https://github.com/xbmc/xbmc/blob/master/system/keymaps/keyboard.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?


RE: Mute HDMI Audio Output: Command and keyboard shortcut? - Protheon - 2019-02-22

Sorry, it's under "Display" and looks like this:
Image

I'm using OSMC, obviously this makes a difference.


RE: Mute HDMI Audio Output: Command and keyboard shortcut? - DaVu - 2019-02-22

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.


RE: Mute HDMI Audio Output: Command and keyboard shortcut? - jjd-uk - 2019-02-23

That's not a standard Kodi setting so must have been added by OSMC so you'll need to ask there.


RE: Mute HDMI Audio Output: Command and keyboard shortcut? - Protheon - 2019-02-23

Reply from the OSMC developer:
„This is exposed as a Kodi setting so it’s not trivial to toggle it.“


RE: Mute HDMI Audio Output: Command and keyboard shortcut? - komplex - 2019-02-23

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


RE: Mute HDMI Audio Output: Command and keyboard shortcut? - Protheon - 2019-02-25

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()