Template:Modetest find connector id

Finding Connector ID
Note: Most of the applications used in the Demos would require the user to pass a connector id. A connector id is a number that is assigned to each of the display devices connected to the system. To get the list of the display devices connected and the corresponding connector id one can use the modetest application (shipped with the file system) as mentioned below:

target # modetest

Look for the display device for which the connector ID is required - such as HDMI, LCD etc.

Connectors: id     encoder status          type    size (mm)       modes   encoders 4      3       connected       HDMI-A  480x270         20      3 modes: name refresh (Hz) hdisp hss hse htot vdisp vss vse vtot) 1920x1080 60 1920 2008 2052 2200 1080 1084 1089 1125 flags: phsync, pvsync; type: preferred, driver ... 16      15      connected       unknown 0x0             1       15  modes:        name refresh (Hz) hdisp hss hse htot vdisp vss vse vtot) 800x480 60 800 1010 1040 1056 480 502 515 525 flags: nhsync, nvsync; type: preferred, driver

Usually, LCD is assigned 16 (800x480), and HDMI is assigned 4 (multiple resolutions). Connectors: id encoder status      type    size (mm)   modes   encoders 4  3   connected   unknown 0x0     1   3 modes: name refresh (Hz) hdisp hss hse htot vdisp vss vse vtot) 1280x800 60 1280 1328 1360 1404 800 804 811 823 flags: nhsync, nvsync; type: preferred, driver ... 16  11  connected   HDMI-A  700x390     31  11  modes:    name refresh (Hz) hdisp hss hse htot vdisp vss vse vtot) 1280x720 60 1280 1390 1430 1650 720 725 730 750 flags: phsync, pvsync; type: preferred, driver

Usually LCD is assigned 4 (800x480), HDMI is assigned 16 (multiple resolutions).

Finding Plane ID
To find the Plane ID, run the modetest command:

target # modetest

Look for the section called Planes. (Sample truncated output of the Planes section is given below)

Planes: id     crtc    fb      CRTC x,y        x,y     gamma size 19     0       0       0,0             0,0     0  formats: RG16 RX12 XR12 RA12 AR12 XR15 AR15 RG24 RX24 XR24 RA24 AR24 NV12 YUYV UYVY props: ... 20     0       0       0,0             0,0     0  formats: RG16 RX12 XR12 RA12 AR12 XR15 AR15 RG24 RX24 XR24 RA24 AR24 NV12 YUYV UYVY props: ...