I use this script for that purpose
xrandr --prop | grep "[^dis]connected" | cut --delimiter=" " -f1> "$HOME/currentScreens.txt"
echo "Number of active screens:" $(< "$HOME/currentScreens.txt" wc -l)
if [ $(< "$HOME/currentScreens.txt" wc -l) -gt 1 ]; then
xrandr --auto &...
All the Intel 2nd generation iGPUs seem to have only 2 pixel pipelines, which means they can only produce content for two separate displays at the same time, if I've understood correctly.
It might be possible to use a single pipeline to provide the same display content to two displays (i.e. clone mode) if both displays can accept the same resolution and ...