2014-08-02, 22:37
You can automatically get the proper one this way: xrandr | awk '{if ($2=="connected") print $1}'
To extend this, you can do something like this to turn on audio without user having to worry about which input he is using:
xrandr --output $(xrandr | awk '{if ($2=="connected") print $1}') --set "audio" "on"
Or better yet,
for i in $(xrandr | awk '{if ($2=="connected") print $1}'); do xrandr --output $i --set "audio" "on"; done
This will do it for all connected inputs...
To extend this, you can do something like this to turn on audio without user having to worry about which input he is using:
xrandr --output $(xrandr | awk '{if ($2=="connected") print $1}') --set "audio" "on"
Or better yet,
for i in $(xrandr | awk '{if ($2=="connected") print $1}'); do xrandr --output $i --set "audio" "on"; done
This will do it for all connected inputs...
(2014-08-02, 21:41)Matt Devo Wrote: to find the correct display output, one should run 'xrandr --props' from a ssh terminal. It shouldn't vary between systems though, since (I believe) it's referencing the port on the ChromeBox, not on the connected display. Can you run that command and confirm you are connected to HDMI0?