Difference between revisions of "How to get name and current status of a DRM connector"

[unchecked revision] [quality revision]
m
m
 
Applicable for STM32MP13x lines, STM32MP15x lines

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



<noinclude>{{ApplicableFor
|MPUs list=STM32MP13x, STM32MP15x
|MPUs checklist=STM32MP13x, STM32MP15x
}}</noinclude>

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
<noinclude>

{{PublicationRequestId | 10655 | 2019-02-06 | StephenG}}
[[Category:How to trace and debug]]
[[Category:DRM KMS]]</noinclude>
Line 1: Line 1:
{{ApplicableFor
+
<noinclude>{{ApplicableFor
 
|MPUs list=STM32MP13x, STM32MP15x
 
|MPUs list=STM32MP13x, STM32MP15x
|MPUs checklist=STM32MP13x, STM32MP15x
+
|MPUs checklist=STM32MP13x,STM32MP15x
}}
+
}}</noinclude>
 
Use the following command to get the DRM connector names and associated status:
 
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
 
  {{Board$}} for p in /sys/class/drm/*/status; do con=${p%/status}; echo -n "${con#*/card?-}: "; cat $p; done