Retrieving monitor connection information

Simon Ser contact at emersion.fr
Thu Sep 1 10:26:59 UTC 2022


On Thursday, September 1st, 2022 at 12:23, Andrew Marshall <andrew at algodynamic.com> wrote:

> > Why do you need to fetch this information? What's your use-case?
> 
> A medical device outputs a camera display to each of four monitors,
> attached to display port connectors on the graphics card. There is a
> 1:1 relationship between camera outputs and displays, and a UI allows
> assigning a specific camera output to a specific display port output.

It seems like wl_output.name would be useful for this purpose.
wl_output.description contains a human-readable string which can be
included in the UI.

Note, do not assume that wl_output.name will have any defined format.
Some compositors will send e.g. "DP-2", some will send an arbitrary ID
such as "CD6767WZ", etc.


More information about the wayland-devel mailing list