Skip to content

Instantly share code, notes, and snippets.

@nmunson
Created June 9, 2013 13:41
Show Gist options
  • Save nmunson/5743582 to your computer and use it in GitHub Desktop.
Save nmunson/5743582 to your computer and use it in GitHub Desktop.
Fix no sound after resume from suspend OpenElec 3.0.3 nvidia ION
mkdir -p /storage/.xbmc/addons/reviveaudio/sleep.d/
nano /storage/.xbmc/addons/reviveaudio/sleep.d/reviveaudio.power
# contents of reviveaudio.power below
#!/bin/sh
case "$1" in
resume)
# that defines the default primary output
OUTPUT=`xrandr -display :0 -q | sed '/ connected/!d;s/ .*//;q'`
#disable this output wait a second and enable it again
xrandr -display :0 --output $OUTPUT --off
sleep 1
xrandr -display :0 --output $OUTPUT --auto
;;
esac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment