** Description changed:

+ [ Impact ]
+ 
+ Users with tiled DisplayPort monitors (e.g., LG UltraFine 5K, Dell
+ UP2715K, Dell UP3218K, Apple Studio Display) running the Wayland session
+ in Ubuntu 24.04 see their single physical monitor treated as two
+ separate, split displays instead of one cohesive, high-resolution
+ monitor.
+ 
+ This creates a severe usability issue for Wayland users with these
+ specific high-end displays. The Xorg session is completely unaffected
+ and works as intended.
+ 
+ [ Test Plan ]
+ 
+     Connect a tiled DP monitor that utilizes two DisplayPort streams (e.g., LG
+     UltraFine 5K) to a system running Ubuntu 24.04.4.
+ 
+     Log into the default Ubuntu on Wayland session.
+ 
+     Open Settings > Displays.
+ 
+     Expected Result: The monitor is detected as a single display running at 
its 
+     combined native resolution (e.g., 5120x2880).
+ 
+ [ Where problems could occur ]
+ 
+ The fix adds META_MONITOR_MANAGER_CAPABILITY_TILING to the native
+ (Wayland) backend in src/backends/native/meta-monitor-manager-native.c.
+ 
+     Wayland Tiling Regressions: If upstream Mutter has underlying bugs
+ in its Wayland tiling logic, enabling this capability could expose them.
+ However, since upstream Mutter does not gate this feature behind a
+ capability check at all (it runs unconditionally), the risk of Ubuntu-
+ specific regressions here is minimal.
+ 
+     Display Topology: There is a slight risk of topology calculation
+ errors during hot-plugging or suspend/resume for multi-monitor setups if
+ the tiling logic misinterprets a non-tiled multi-stream configuration,
+ though the kernel DRMs should prevent false positives in the group_id
+ check.
+ 
+ 
+ ------------------
+ 
  Ubuntu 24.04.4, mutter 46.2-1ubuntu0.24.04.16, gnome-shell 
46.0-0ubuntu6~24.04.14,
  kernel 7.0.0-30-generic, Intel Arrow Lake-P graphics (i915).
  
  I have an LG UltraFine 5K connected over two DP streams (DP-2 and DP-3). On 
the
  Xorg session it comes up as one 5120x2880 display like it should. On the 
Wayland
  session it comes up as two monitors: DP-2 at 2560x2880 and DP-3 at 3840x2160,
  which is the panel's single-stream fallback mode. With my second monitor 
plugged
  in, Settings > Displays shows three displays. The GDM greeter does the same
  thing. Nothing about it is logged.
  
  The kernel side is fine. Both connectors carry a proper TILE property:
  
-   DP-3 (obj 540): 1:1:2:1:0:0:2560:2880   (main tile)
-   DP-2 (obj 531): 1:1:2:1:1:0:2560:2880
+   DP-3 (obj 540): 1:1:2:1:0:0:2560:2880   (main tile)
+   DP-2 (obj 531): 1:1:2:1:1:0:2560:2880
  
  and mutter has read it, GetResources on org.gnome.Mutter.DisplayConfig shows
  'tile' on both outputs. Forcing a re-probe of DP-2 (echo off/detect to its 
sysfs
  status) makes mutter rebuild monitors and the result is the same. There is no
  "Failed to create tiled monitor output" warning, the tiled path isn't reached.
  
  Cause is in 
debian/patches/ubuntu/x11-Add-support-for-fractional-scaling-using-Randr.patch.
  It introduces META_MONITOR_MANAGER_CAPABILITY_TILING and changes 
rebuild_monitors()
  in src/backends/meta-monitor-manager.c from upstream's
  
-     if (output_info->tile_info.group_id)
+     if (output_info->tile_info.group_id)
  
  to
  
-     if (has_tiling && output_info->tile_info.group_id)
+     if (has_tiling && output_info->tile_info.group_id)
  
  Only the xrandr backend (randr >= 1.5) and the test dummy backend set that
  capability. meta_monitor_manager_native_get_capabilities() never does, so 
under
  Wayland the tiled branch is skipped and each tile becomes a MetaMonitorNormal.
  Upstream has no gate here at all. Same code in 46.2-1ubuntu0.24.04.12, so this
  is not related to the LP #2131575 change.
  
  Fix is one line in src/backends/native/meta-monitor-manager-native.c, set the
  capability there too. I rebuilt 46.2-1ubuntu0.24.04.16 with it and the 
UltraFine
  is one 5120x2880 monitor again under Wayland, per-monitor scaling works. 
Debdiff
  attached.
  
  Should hit any DisplayPort tiled monitor on the Wayland session (Dell UP2715K,
  UP3218K, Apple Studio Display in tiled mode, ...).

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2166435

Title:
  Tiled monitor (LG UltraFine 5K) shows up as two displays on Wayland,
  fine on Xorg

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mutter/+bug/2166435/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to