Fractional scaling zooms to 200% and crops half the screen

Bug #1875285 reported by Alexandre Speltri
82
This bug affects 14 people
Affects Status Importance Assigned to Milestone
mutter (Ubuntu)
Confirmed
High
Unassigned

Bug Description

I'm using Ubuntu 20.04 with a NVIDIA MX250. Firstly, nvidia-prime was not working. Even when selecting nvidia only, it was using Intel HD Graphics.
[IMAGE1]

I've forced the use of NVIDIA as the primary GPU by creating /etc/X11/xorg.conf.d/10-nvidia-drm-outputclass.conf with: Option "PrimaryGPU" "yes" (seen here https://wiki.archlinux.org/index.php/NVIDIA_Optimus).
[IMAGE2]
This works, now nvidia-settings show all options (before was showing only prime options, and nothing more - even when selecting NVIDIA Only).

But now, fractional scalling crops half of the screen. The funny thing is that when I try to printscreen, on the picture it looks fine, but in reality is not. I had to make a photo with my cellphone. As you can see, elements don't fit the screen (Note firefox title bar, for example).[IMAGE3]

ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: gnome-shell 3.36.1-5ubuntu1
ProcVersionSignature: Ubuntu 5.4.0-26.30-generic 5.4.30
Uname: Linux 5.4.0-26-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.20.11-0ubuntu27
Architecture: amd64
CasperMD5CheckResult: skip
CurrentDesktop: ubuntu:GNOME
Date: Mon Apr 27 02:49:29 2020
DisplayManager: gdm3
InstallationDate: Installed on 2020-04-27 (0 days ago)
InstallationMedia: Ubuntu 20.04 LTS "Focal Fossa" - Release amd64 (20200423)
RelatedPackageVersions: mutter-common 3.36.1-3ubuntu3
SourcePackage: gnome-shell
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Alexandre Speltri (alexandreporks) wrote :
Revision history for this message
Alexandre Speltri (alexandreporks) wrote :
Revision history for this message
Alexandre Speltri (alexandreporks) wrote :
Revision history for this message
Alexandre Speltri (alexandreporks) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gnome-shell (Ubuntu):
status: New → Confirmed
tags: added: nvidia xrandr-scaling
affects: gnome-shell (Ubuntu) → mutter (Ubuntu)
summary: - Ubuntu 20.04 Fractional scalling “cuting” elements
+ [nvidia] Ubuntu 20.04 Fractional scalling “cuting” elements
summary: - [nvidia] Ubuntu 20.04 Fractional scalling “cuting” elements
+ [nvidia] Ubuntu 20.04 Fractional scaling crops half the screen
Revision history for this message
Daniel van Vugt (vanvugt) wrote : Re: [nvidia] Ubuntu 20.04 Fractional scaling crops half the screen

I'm finding it hard to see what the issue looks like other than a hint from looking at image3.jpg. Can you please attach more photos of the problem in better light?

Changed in mutter (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
acspalmeiras (alexpalmeiras) wrote :

This is how it looks like. Notice that it crops almost everything (after the time) at the top panel, the windows don't fit the screen real size and even the ubuntu dock is croped, I can't see "Show applications" at it's bottom.

Revision history for this message
alex gtz (lucernalriver) wrote :

If I take a screenshot, it looks normal. But I took a photo so you can see how it's being cropped. Looks like fractional scaling gets the correct scale but doesn't manage to fit it to the screen size. Hope this photo helps.

Revision history for this message
alex gtz (lucernalriver) wrote :

This is how a screenshot looks like for reference. If this could be squeezed into the monitor frame size the bug would be resolved.

Revision history for this message
Daniel van Vugt (vanvugt) wrote : Re: Ubuntu 20.04 Fractional scaling crops half the screen

Duplicate bug 1876530 shows it can happen on an Intel-only system too.

summary: - [nvidia] Ubuntu 20.04 Fractional scaling crops half the screen
+ Ubuntu 20.04 Fractional scaling crops half the screen
Changed in mutter (Ubuntu):
status: Incomplete → Confirmed
summary: - Ubuntu 20.04 Fractional scaling crops half the screen
+ Ubuntu 20.04 Fractional scaling crops half the screen or shrinks it
+ (root window larger than the monitor resolution)
summary: - Ubuntu 20.04 Fractional scaling crops half the screen or shrinks it
- (root window larger than the monitor resolution)
+ Ubuntu 20.04 Fractional scaling crops half the screen
Changed in mutter (Ubuntu):
importance: Undecided → High
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Nvidia users see also bug 1870736

summary: - Ubuntu 20.04 Fractional scaling crops half the screen
+ Fractional scaling zooms to 200% and crops half the screen
Revision history for this message
Peter Roelants (peter-roelants) wrote :

Same Issue here on Lenovo P1 with Nvidia Quadro T1000 (see attached screenshot which is a picture of my secondary monitor).

I cannot use fractional scaling with a secondary monitor, the scaling zooms to 200% and crops part the screen on the secondary monitor.

I have had this issue with both 20.04 and 22.04 X-Window manager (Wayland doesn't even work on my Lenovo...)

Revision history for this message
Peter Roelants (peter-roelants) wrote :

Same Issue here on Lenovo P1 with Nvidia Quadro T1000 (see attached screenshot which is a picture of my secondary monitor).

I cannot use fractional scaling with a secondary monitor, the scaling zooms to 200% and crops part the screen on the secondary monitor.

I have had this issue with both 20.04 and 22.04 X-Window manager (Wayland doesn't even work on my Lenovo...)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.