Use following commands to get the DRM connector names and associated status:
for p in /sys/class/drm/*/status; do con=${p%/status}; echo -n "${con#*/card?-}: "; cat $p; done DSI-1: connected HDMI-A-1: connected for p in /sys/class/drm/*/enabled; do con=${p%/enabled}; echo -n "${con#*/card?-}: "; cat $p; done DSI-1: disabled HDMI-A-1: enabled
In the above example, both "DSI-1" and "HDMI-A-1" DRM connectors are "connected", but only the DRM connector "HDMI-A-1" is used ("enabled").