Created
March 11, 2019 15:31
-
-
Save notro/b9fdff4c6a68a307091e970598f27ed0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if [ $# -eq 0 ] ; then | |
echo "Connector missing" | |
exit 1 | |
fi | |
connector=$1 | |
function modetest | |
{ | |
rm -f /tmp/modetest-input | |
mkfifo /tmp/modetest-input | |
(tail -f /tmp/modetest-input) | ./libdrm/tests/modetest/modetest -M vc4 -s $1:$2@$3 & | |
sleep 5 | |
sudo sh -c "echo 0 > /sys/kernel/debug/dri/panic-test" | |
sleep 5 | |
echo > /tmp/modetest-input | |
sleep 1 | |
} | |
resolutions=(1920x1080 1680x1050 1600x900 1280x1024 1440x900 1152x864 1280x720 1024x768 832x624 800x600 720x576 720x480 640x480 720x400) | |
#resolutions=(1024x768 832x624 800x600 720x576 720x480 640x480 720x400) | |
#resolutions=(1920x1080 640x480) | |
for resolution in ${resolutions[*]} | |
do | |
modetest $connector $resolution XR24 | |
done | |
# YU16 YV16 is not supported by modetest | |
formats=(XR24 AR24 AB24 XB24 RG16 BG16 AR15 XR15 RG24 BG24 YU12 YV12 NV12 NV21 NV16 NV61) | |
#formats=(YU12) | |
for format in ${formats[*]} | |
do | |
modetest $connector 1920x1080 $format | |
done | |
trap 'kill $(jobs -p)' EXIT | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment