2015-01-14, 09:48
(2015-01-14, 08:56)tml2k2 Wrote: yeah before the script i have video but sometime no audio till i reboot.
then I'd modify the script to read as follows:
Code:
#!/bin/sh
case $1 in
pre)
xrandr --output HDMI1 --set "audio" "off";
;;
post)
xrandr --output HDMI1 --set "audio" "on";
;;
esac
that way it's only changing the audio on suspend/resume. You can also try changing "on" to "auto" if necessary.
Unfortunately I don't have a HDMI receiver here to test with, and lots of AVRs behave differently, so there's a bit of trial and error involved. It's critical though if using a universal remote (eg, Harmony) to turn on/off your AVR as well, that the AVR be turned off and on before the ChromeBox, in order to ensure that the CB gets back valid EDID data upon power up.