#!/bin/bash # Blank/unblank cycle reproducer for the MIPI flicker investigation. # Each iteration: blank the display, wait 1s, unblank, wait 3s. # Watch the screen and count cycles that produced visible flicker. N=${1:-30} for i in $(seq 1 $N); do echo "--- cycle $i / $N ---" echo 4 > /sys/class/graphics/fb0/blank sleep 1 echo 0 > /sys/class/graphics/fb0/blank sleep 3 done echo "done."