Code: Select all
else
#some video chips do not work with xvidtune.
XTEST=`xrandr | head -n 2 | tail -n 1 | tr -s " " | cut -f 2 -d " "`
YTEST=`xrandr | head -n 2 | tail -n 1 | tr -s " " | cut -f 4 -d " "`
VRTEST=`xrandr | head -n 2 | tail -n 1 | tr -s " " | cut -f 3 -d '*' | cut -f 1 -d " "`
# so we calc horiz freq theoretically...
HSTEST=`gtf $XTEST $YTEST $VRTEST | head -n 2 | tail -n 1 | cut -f 1 -d ';' | cut -f 2 -d ':' | cut -f 2 -d ' ' | cut -f 1 -d '.'`
fi
Can't open display (null)
after that comes (as expected):
usage: gtf x y refresh ...
and the result is that the test display and test report show blanks for the resolution, horz freq & refresh freq.
Hope this doesn't upset your digestion
Paul