Nvidia SDK get Connector information from Graphics card

is it possible with the Nvidia SDK to get all the Connectors and information from my Graphics card like in Nvidia PhysX like the image below ?

NvidiaPhysx

NvidiaPhysx

Dear @sven33

Thank you for contacting NVIDIA developer forum.
Our technical team has received your query and we will get back to you after initial investigation.

Thanks,
NVAPI Forum Moderator

Hi Agokhale,

Is it correct i didnt receive any reaction yet?
Thanks!

Hello Sven

Please check the following APIs once. They allow the clients to enumerate all available displayIDs and connected displayIDs. The NV_GPU_DISPLAYIDS struct contains multiple flags that provide information about a given connector.

  1. NvAPI_GPU_GetAllDisplayIds(__in NvPhysicalGpuHandle hPhysicalGpu, __inout_ecount_part_opt(*pDisplayIdCount, *pDisplayIdCount) NV_GPU_DISPLAYIDS* pDisplayIds, __inout NvU32* pDisplayIdCount);

  2. NVAPI_INTERFACE NvAPI_GPU_GetConnectedDisplayIds(__in NvPhysicalGpuHandle hPhysicalGpu, __inout_ecount_part_opt(*pDisplayIdCount, *pDisplayIdCount) NV_GPU_DISPLAYIDS* pDisplayIds, __inout NvU32* pDisplayIdCount, __in NvU32 flags);

Please let us know if you are additionally looking for a specific piece of information.

Thank you.
NVAPI Forum Moderator

Those are API’s we are using.

NvAPI_GPU_GetAllDisplayIds always returns 8 displays, but their properties say nothing about them being actual physical connectors on the card. There’s a proprty that says whether they’re visible to the OS, but that count doesn’t match either. We tried this on multiple card types and brands.

On one of those cards, there’s a mini displayport connector which in the Nvidia Control Panel shows up with a different icon in the PhysX section. So the Control Panel can tell the difference. But the SDK has no such difference and lists it as the same DisplayPort as the regular ones.

Our application is a live render engine where we want to map specific content to each of the physical outputs on the card. We want to show the user a full list of available connectors, regardless of whether a monitor is connected or not. So that the user can decide which output should have which content. Those outputs are LED screens and monitors for which it’s very important they always show correct content regardless of desktop layout.

@agokhale do you have a solution for this as well? Thanks!