> > This is just a proof of concept utility that takes a PCI device address > and a monitor ID and finds the xrandr output associated with that > monitor id. It assumes that the list of drm connectors (outputs) are > in a stable order and therefore we can use the monitor ID as an index > into the array of connectors. > --- > > This isn't intended to be committed to the repository, but it gives an > example for how we might do this. This will be necessary to handle vgpu > streaming functionality properly. > > To test, you can simply run the utility and pass a PCI address and > monitor ID and it should print out the associated Xrandr output id. For > example, on my laptop: > > $ ./src/get-xrandr-output 0000:00:02.0 0 > Device /dev/dri/card0 is at ../../../0000:00:02.0 > DRM connector for monitor 0: name=eDP-1 id=71 (*CONNECTED*) > Found matching X Output: name=eDP-1 id=114 (*CONNECTED*) > Was forgetting. We already use monitor ID to indicate the monitor inside the SPICE display channel, please do not use the same terminology for two different things, we spoke about "output ID" instead. And I reminds that we decided that monitor ID == 0 that is SPICE display channels should use only one monitor in the future. Frediano _______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/spice-devel