Skip to content

Instantly share code, notes, and snippets.

Created June 2, 2013 18:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save anonymous/5694476 to your computer and use it in GitHub Desktop.
Save anonymous/5694476 to your computer and use it in GitHub Desktop.
Workaround for the problem with MC001 losing audio over HDMI upon switching the TV or AV-receiver on and off. Place files in the following paths: /storage/.xbmc/userdata/keymaps/keymap.xml /storage/.xbmc/userdata/keymaps/sound.py /storage/.xbmc/userdata/keymaps/sound.sh
<keymap>
<global>
<remote>
<Yellow>RunScript("/storage/.xbmc/userdata/keymaps/sound.py")</Yellow>
</remote>
</global>
</keymap>
import os
os.system('sh /storage/.xbmc/userdata/keymaps/sound.sh')
xrandr --output DFP1 --off
xrandr --auto
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment