Retrieving monitor connection information

Andrew Marshall andrew at algodynamic.com
Fri Sep 2 12:28:05 UTC 2022


@Simon Ser <contact at emersion.fr>

Just been looking at your `drm_info` project. The connection information is
there, if I could figure out a way of reliably associating it with a
monitor.

I have access to `wl_output` via the GDK Wayland backend. Is wl_output
populated from drm?

Thanks,
Andrew.


> No. KMS names ("DP-2") cannot be used for a reliable identifier.
> wl_output.name 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.
>
> [1]:
> https://gitlab.freedesktop.org/wayland/wayland/-/merge_requests/109#note_813539
>


-- 
Andrew Marshall
Independent C++ Consultant
https://www.algodynamic.co.uk/
https://github.com/planetmarshall
https://www.linkedin.com/in/algodynamic/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/wayland-devel/attachments/20220902/715ef741/attachment.htm>


More information about the wayland-devel mailing list