2 # Scan all output of all video cards known to Linux Direct Rendering Manager
3 # and identify connected displays.
7 for a in /sys/class/drm/card*-* ; do
8 if [ -f $a/edid ] ; then
9 # This is tricky: for disconnected outputs, the edid file exists,
10 # but it is empty. Monitors in stand-by mode have the "enabled"
11 # attribute set to "disabled", but the edid file is still valid.
12 # Since the file is purely virtual, we need to copy it first.
16 echo "### $(basename $a) ###"
18 edid <$x || exit_code=1