[X2Go-Commits] [live-build-x2go] 28/42: improved code to fix blank screen happening with DisplayPort and some buggy TFTs (xset q reports "Monitor is on" even though it is pitch black) - third attempt plus typofix

git-admin at x2go.org git-admin at x2go.org
Wed Jan 24 18:11:42 CET 2018


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch feature/mate-minidesktop-stretch
in repository live-build-x2go.

commit b68cac2a513ee2a4aa08f3ad25a12ec943bb6692
Author: Stefan Baur (BAUR-ITCS) <kontakt at baur-itcs.de>
Date:   Tue Jan 16 07:51:43 2018 +0100

    improved code to fix blank screen happening with DisplayPort and some buggy TFTs (xset q reports "Monitor is on" even though it is pitch black) - third attempt plus typofix
---
 config/includes.chroot/lib/live/config/2900-x2go-thinclientconfig | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/config/includes.chroot/lib/live/config/2900-x2go-thinclientconfig b/config/includes.chroot/lib/live/config/2900-x2go-thinclientconfig
index 93703b8..eb2741e 100755
--- a/config/includes.chroot/lib/live/config/2900-x2go-thinclientconfig
+++ b/config/includes.chroot/lib/live/config/2900-x2go-thinclientconfig
@@ -87,9 +87,11 @@ openbox &
 
 # code to fix blank screen happening with DisplayPort and some buggy TFTs (xset q reports "Monitor is on" even though it is pitch black)
 if grep -q '\W*blankdpmsfix\W*' /proc/cmdline; then
-	CURRENTRES=\$(xrandr | awk '$0 ~/\*/ { print \$1}') # determine current resolution
+	CURRENTRES=\$(xrandr | awk '\$0 ~/\*/ { print \$1}') # determine current resolution
 	xrandr -s 640x480 # set low resolution to trigger TFT wakeup
-	xrandr -s \$CURRENTRES # restore original resolution
+	while ! [ "\$(xrandr | awk '\$0 ~/\*/ { print \$1}')" = "\$CURRENTRES" ] ; do
+        	xrandr -s \$CURRENTRES # restore original resolution
+	done
 fi
 
 # set screen background to X2Go default blue on all detected screens

--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/live-build-x2go.git


More information about the x2go-commits mailing list