RandR fractional scaling patch interferes with manual RandR output scaling
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mutter (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
$ lsb_release -rd
Description: Ubuntu 20.04.3 LTS
Release: 20.04
$ apt-cache policy mutter
mutter:
Installed: 3.36.9-
Candidate: 3.36.9-
Version table:
*** 3.36.9-
500 http://
100 /var/lib/
3.
500 http://
---
As an example with one output, scaling it with e.g. 'xrandr --output <output> --mode 3840x2160 --scale-from 1920x1080', would usually result in a screen size of 1920x1080, as xrandr sets the screen size to the bounding box of the configured crtcs.
Ubuntu carries an out-of-tree patch for Mutter:
x11-Add-
With the modesetting driver, this isn't a huge issue. The resulting screen size is larger than you can actually interact with, wasting memory, but it doesn't cause any visible functional issues.
The NVIDIA driver automatically configures panning when the requested outputs' viewports are smaller than the screen size. This increases crtc size, which impacts Mutter's screen size calculation. When Mutter sets the larger-than-outputs screen size, it triggers the NVIDIA driver to automatically configure panning. Mutter reacts to the RandR configuration change by again recalculating the screen size, this time growing it even larger due to the larger crtcs. In response, the NVIDIA driver sets up the new, larger panning configuration, causing the crtcs to be even larger, and causing Mutter to once again recalculate the screen size. This goes on until all memory is consumed and gnome-shell is killed by the OOM killer, or the screen reaches maximum size. In the meantime, the screen is black with only a cursor while gnome-shell spins.
It appears that meta_monitor_
The attachment "x11-Add- support- for-fractional- scaling- using-Randr. patch" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.
[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]