From the release notes of version 331.38 one can read:
- Deprecated display mask related configuration of display devices via NV-CONTROL and nvidia-settings. Display target specifications should be used instead - A display target is one of the display's valid names, with an optional GPU or X screen qualifier.
- Deprecated the following NV-CONTROL attributes: NV_CTRL_CONNECTED_DISPLAYS, NV_CTRL_ENABLED_DISPLAYS, ...
I’m particularly worried because I rely on the NV_CTRL_ENABLED_DISPLAYS mask to create a mapping between X screens and physical outputs, the purpose being multiple video playback control.
The scenario is simple: I have a NVS 510 card with four mini-DP outputs which may not be all connected. Then I launch an Xorg server with four independent screens. The screens are sequentially assigned to the outputs that have something plugged in. Therefore, I need to query through NV-CTRL to find out the correspondence between X screen and physical output.
I managed to get this working by looking at the nv-control-dpy.c file in the samples directory of the nvidia-settings source package. As none of the sample programs have been updated between 331.20 and 331.38, could anyone elaborate on how to proceed to avoid this deprecation?
Thanks in advance.