How to get name and current status of a DRM connector

Revision as of 09:32, 7 October 2019 by Philippe Cornu (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Use the following command to get the DRM connector names and associated status:

Board $> for p in /sys/class/drm/*/status; do con=${p%/status}; echo -n "${con#*/card?-}: "; cat $p; done

Result example:

DSI-1: connected
HDMI-A-1: connected