Approved version. Approved on: 08:42, 7 February 2019
You are viewing an old version of this page. Return to the latest version.
- Last edited 5 months ago ago
How to get name and current status of a DRM connector
Revision as of 08:42, 7 February 2019 by imported>Frq08942
Template:ArticleMainWriter Template:ReviewersList Template:ArticleApprovedVersion
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