Mutter doesn't mark any display mode as preferred for built-in laptop monitor in XOrg
Continuing the discussion from gnome-control-center!1802 (comment 1762364).
Affected version
Ubuntu 23.04
Mutter 44.0-2ubuntu4.23.04.1
Only XOrg!
Bug summary
When XOrg is used, the D-Bus method GetCurrentState
of org.gnome.Mutter.DisplayConfig
marks no display mode as preferred for the built-in display of my laptop (ASUS TUF Gaming F15 FX507ZE_FX). This causes various issues in GNOME Settings including assertion failures and crashes.
- It doesn't matter if the laptop lid is closed or not.
- Both
xrandr
anddrm_info
do mark one of the modes as preferred.
Steps to reproduce
- Start an XOrg session.
- Call
GetCurrentState
onorg.gnome.Mutter.DisplayConfig
. - Notice that none of the display modes of
eDP-1-1
have'is-preferred': True
.
What happened
Mutter didn't report any of the display modes as preferred, causing issues and crashes in GNOME Settings.
What did you expect to happen
Mutter should mark one of the display modes as preferred as this information is present in xrandr
and drm_info
.