Retrieving monitor connection information

Simon Ser contact at
Thu Sep 1 11:42:45 UTC 2022

On Thursday, September 1st, 2022 at 13:36, Andrew Marshall <andrew at> wrote:

> On Thu, 1 Sept 2022 at 12:01, Mikhail Gusarov <dottedmag at> wrote:
> > 
> > In the described use-case compositor is most likely known and fixed.
> Yes, however can I guarantee that the output names will remain the same in the following scenarios -
> * Rebooting of the system
> * Disconnection and reconnection of display devices
> ?

No. KMS names ("DP-2") cannot be used for a reliable identifier. specification states:

	The name is not guaranteed to be persistent across sessions, thus cannot
	be used to reliably identify an output in e.g. configuration files.

See the discussion at [1] for more info. To fix this, we'd need a new
wl_output event and a new KMS property.


More information about the wayland-devel mailing list