When you type cd /sys/class/drm and then use:
$ ll */status
-rw-r--r-- 1 root root 4096 Dec 23 08:43 card1-DP-1/status
-rw-r--r-- 1 root root 4096 Dec 25 15:22 card1-DP-2/status
-rw-r--r-- 1 root root 4096 Dec 25 15:22 card1-eDP-1/status
-rw-r--r-- 1 root root 4096 Dec 25 15:22 card1-HDMI-A-1/status
-rw-r--r-- 1 root root 4096 Dec 25 15:22 card1-HDMI-A-2/status
followed by:
$ cat */status
connected
disconnected
connected
disconnected
disconnected
You get some useful information about xrandr monitors and which names are connected and which are not. In my case I have to "connect the dots" to know:
card1-DP-1/status=connectedcard1-eDP-1/status=connected
To prevent having to connect the dots, is there a way of matching up virtual file system filenames to their contents?