Drivers should be able to check for and select displays by EDID data
Features
- A function that can be called from
estimate_system
(or really, anywhere else) that returnstrue
if a display with given EDID data is connected. - A way to, from a driver, tell the compositor to try DRM devices that match specific EDID data before picking one semi-randomly.
Motivation
I am writing a an OpenXR driver for some AR glasses (!2145) that connect through USB-C and use DP alt-mode. In order to check that the glasses' displays have been connected, I have code that scans all DRM devices and detects the DRM device that corresponds to the glasses' EDID. However, I would also like to be able to force Monado to use that specific display, as opposed to the first display it can get a handle on, and for the code to detect the displays to be usable from other drivers (the Xreal Air drivers might benefit from this).