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

[quality revision] [quality revision]
imported>Frq08942
m
 
 

Template:ArticleMainWriter Template:ReviewersList Template:ArticleApprovedVersion

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>

{{ArticleMainWriter | PhilippeC}}
{{ReviewersList | YannickF}}
{{ArticleApprovedVersion | PhilippeC | YannickF | No previous approved version | StephenG - 06Feb'19 - 10655 | 07Feb'19}}
[[Category:How to trace and debug]]
[[Category:DRM KMS]]</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:
<noinclude>
 
{{ArticleMainWriter | PhilippeC}}
 
{{ReviewersList | YannickF}}
 
{{ArticleApprovedVersion | PhilippeC | YannickF | No previous approved version | StephenG - 06Feb'19 - 10655 | 07Feb'19}}
 
[[Category:How to trace and debug]]
 
[[Category:DRM KMS]]
 
</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
Line 13: Line 5:
 
  DSI-1: connected
 
  DSI-1: connected
 
  HDMI-A-1: connected
 
  HDMI-A-1: connected
  +
  +
  +
<noinclude>
  +
{{PublicationRequestId | 10655 | 2019-02-06 | StephenG}}
  +
[[Category:How to trace and debug]]
  +
[[Category:DRM KMS]]
  +
</noinclude>