I executed this command in my Linux PC.
for p in /sys/class/drm/*/status; do con=${p%/status}; echo -n "${con#*/card?-}: "; cat $p; done
And this is the result.
DP-1: disconnected
DP-2: connected
HDMI-A-1: connected
HDMI-A-2: disconnected
My Linux PC has two DP ports, and I connected to two monitors. One of the monitor is using adapter (from HDMI to DP)
Here I make a assumption, since one of the monitor is using adapter, so the result shows HDMI-A-1 is connected, instead of both DP are connected.
Is my assumption correct ?