How to get name and current status of a DRM connector

来自百问网嵌入式Linux wiki

使用以下命令获取DRM连接器名称和关联状态:

Board $> 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