Improve detection of builtin displays
Submitted by bre..@..rm.org
Assigned to Desktop Maintainers
Link to original bug (#737367)
Description
I have a laptop that reports its built-in display RANDR output name as "DP-4".
libgnome-desktop/gnome_rr.c:_gnome_rr_output_name_is_builtin_display() seems to detect built-in displays by a list of hard-coded RANDR output names, namely "lvds", "LVDS", "Lvds", "LCD", and "eDP".
I noticed this when debugging why I could not suspend on closing the lid on a laptop, which was due to g-s-d always holding an inhibitor lock for "Multiple displays attached".
In looking at the output of "xrandr --properties", I noticed there is a property "ConntectorType" which is set to "Panel" for my built-in display, versus "DisplayPort" for others.
Without knowing the details of how xrandr and other subsystems work, I would ask if it is possible to change detection of built-in displays to use other information than simply the RANDR output name.
Version: git master