]> git.plutz.net Git - serve0/commitdiff
fire up xrandr before playing on screen, should help recognize displays
authorpaul <paul@plutz.net>
Tue, 5 Jul 2016 10:47:52 +0000 (10:47 +0000)
committerpaul <paul@plutz.net>
Tue, 5 Jul 2016 10:47:52 +0000 (10:47 +0000)
svn path=/trunk/; revision=139

actions/watch.sh

index e473ac4755d1479bb537272e2972090546effc8a..913e621374a33bd0301c25b07ec4cf2c73dc3962 100755 (executable)
@@ -75,6 +75,7 @@ case "${_COOKIE[watch]}" in
     export DISPLAY=":0"
     uid="$(id |sed -rn '1s;.*uid=([0-9]+)[^0-9].*;\1;p')"
     export XDG_RUNTIME_DIR="/run/user/$uid"  # required for Pulseaudio
+    xrandr >/dev/null  # helps enable all screens
 
     nohup /usr/bin/mplayer -ao pulse \
       -slave -input file="$fifofile" \