Last edited 4 years ago

How to get name and current status of a DRM connector

The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Use the following command 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

Result example:

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