Unable to set different scale correctly on different monitors

Bug #1735986 reported by Piotr Kołaczkowski
120
This bug affects 20 people
Affects Status Importance Assigned to Milestone
gnome-control-center
New
Unknown
gnome-control-center (Ubuntu)
Fix Released
High
Unassigned
mutter (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Upstream: https://gitlab.gnome.org/GNOME/gnome-control-center/issues/17

I have a system that was upgraded from 16.04 -> 16.10 -> 17.04 -> 17.10. So now running on 17.10.
I upgraded to 17.10 because I hoped for better HiDPI scaling support.

My laptop is Dell Precision 5520 with 4k 3840x2160 15" screen, with Intel graphics (it has nvidia too, but disabled).

Additionally, I have an external Dell U3011 2560x1600 30" display connected to it.

When I logged into graphical session (selected the default Ubuntu session), I confirmed wayland is running by checking loginctl:

loginctl show-session 2 -p Type
Type=wayland

With external display connected, display settings show that the high DPI laptop screen got scaling set automatically to 200%, and the external low DPI display got scaling set to 100%. So far, looks good - automatic detection of hi dpi screens did the right thing.

The built-in Ubuntu applications like terminal, file browser or setting window work fine. When I start e.g. the terminal, it appears first on the laptop screen - it is scaled properly, then I drag it to the external screen and once I release the mouse button, the window shrinks to 2x smaller, so it adapts to lower DPI of that screen. Everything is sharp and crispy and the sizes are ok.

Problems:

* Firefox, Chrome, Chromium, Intellij IDEA all do not scale correctly on the external screen. Everything is twice too big. When started, they appear first on the built-in hiDPI screen with the correct size, but after dragging to the external screen, they remain scaled by 200%.

* When I enabled dock to be displayed on all screens, the dock icons are twice too big on the external screen. So, 200% scaling seems to be applied to the dock on both screens.

* Sometimes the mouse pointer is twice as large. Sometimes it is twice too small. I didn't figure out yet when it happens. Sometimes it is only twice too large when over the desktop background, but ok when over an application window. This is a very minor issue, but looks funny.

-----
What I tried so far:

Resetting dconf to factory settings with:
dconf reset -f /org/gnome/
did not help.

Then I tried enabling experimental fractional scaling, with 200% / 100% scales set (I do not really need fractional scaling, but I hoped it changes how things are rendered and where scaling is applied). This actually helped for both scaling issues - including the dock scaling problem. Windows get even properly scaled in the *middle of dragging* between displays. Everything is the right size with this setting on. Really cool.

Unfortunately now the image on the builtin display for the non-native applications like Firefox, Chrome or Idea is severely blurred. And it is blurred even if I disconnect the external display. It looks as if it rendered these apps at half the resolution (I noticed xrandr shows 1920x1080 for that screen, but ubuntu display settings window shows 3840x2160) and then upscaled twice the bitmap to reach higher 4k real screen resolution. The blur does not happen for native Ubuntu apps like terminal.

Unfortunately the blurring effect is much stronger than if I just manually force the builtin screen to 1920x1080. In this case everything is a bit lower resolution, but still sharp enough.

Therefore so far, Ubuntu 17.10 and Wayland did not improve hi dpi support for me at all, despite some rumours it should have. I still have to switch to lower resolution on the builtin display to get everything crisp and the right size.
---
ApportVersion: 2.20.7-0ubuntu3.5
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
DistributionChannelDescriptor:
 # This is a distribution channel descriptor
 # For more information see http://wiki.ubuntu.com/DistributionChannelDescriptor
 canonical-oem-somerville-xenial-amd64-20160624-2
DistroRelease: Ubuntu 17.10
InstallationDate: Installed on 2017-04-12 (234 days ago)
InstallationMedia: Ubuntu 16.04 "Xenial" - Build amd64 LIVE Binary 20160624-10:47
Package: gnome-control-center 1:3.26.2-0ubuntu0.1
PackageArchitecture: amd64
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=pl_PL.UTF-8
 SHELL=/bin/bash
Tags: artful wayland-session
Uname: Linux 4.14.3-041403-generic x86_64
UpgradeStatus: Upgraded to artful on 2017-12-02 (0 days ago)
UserGroups: adm cdrom dip kvm libvirt lpadmin plugdev sambashare sudo
_MarkForUpload: True

Revision history for this message
Piotr Kołaczkowski (pkolaczk-u) wrote : Dependencies.txt

apport information

tags: added: apport-collected artful wayland-session
description: updated
Revision history for this message
Piotr Kołaczkowski (pkolaczk-u) wrote : JournalErrors.txt

apport information

Revision history for this message
Piotr Kołaczkowski (pkolaczk-u) wrote : ProcCpuinfoMinimal.txt

apport information

Revision history for this message
Launchpad Janitor (janitor) wrote : Re: Ubuntu 17.10 on Wayland doesn't scale some applications properly on external low DPI display

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

Changed in gnome-control-center (Ubuntu):
status: New → Confirmed
Revision history for this message
Lindsay Gaines (aethr) wrote :

I just installed a fresh install of Ubuntu artful (17.10) yesterday, on a Dell XPS 13 9630, and am affected by the same issue.

My laptop has a HiDPI built-in display with a resolution of 3200x1800, and I also connect an external ASUS monitor at work, which has a resolution of 1920x1080.

The laptop has an integrated Intel graphics card, and the external display is connected via a USB Type-C hub that has an HDMI output.

The display arrangement was set correctly when I plugged in the external monitor, except for the positioning of the external display, which I adjusted.

* Built-in display:
** Resolution: 3200x1800
** Scale: 200%
* External display:
** Resolution: 1920x1080
** Scale: Not shown, but set to 100%

Moving native apps like terminal, settings windows, file explorer across monitors correctly scales them based on the scale setting of each monitor. However:

* Chrome, Firefox, PHPstorm (IntelliJ) are always scaled to 200% on both monitors
* Moving these windows between monitors does not adjust their scaling
* Maximising a window on the external display does not adjust its scaling

Not sure what commands / log files might be helpful here but I'd be happy to run any kind of diagnostic necessary.

Thanks for opening this bug.
Lindsay

summary: - Ubuntu 17.10 on Wayland doesn't scale some applications properly on
- external low DPI display
+ Unable to set different scale correctly on different monitors
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: hidpi multimonitor
Revision history for this message
Sebastien Bacher (seb128) wrote :
Changed in gnome-control-center (Ubuntu):
importance: Undecided → High
status: Confirmed → Triaged
description: updated
tags: added: bionic cosmic
tags: removed: artful cosmic
Revision history for this message
Anton Alexandrenok (the-spyke) wrote :

Same issue for me on Ubuntu 19.10 and Wayland. Laptop screen (primary) is 1080p at 100%, one external display is 4K at 200%. Opening Chrome and moving it to the external display has no effect: it stays super small.

Revision history for this message
Dale Kube (dalekube) wrote :

This is affecting me on Ubuntu 20.04. My first monitor is 1080p, and my second monitor is 2K. Everything is small on the 2K monitor, and I'm trying to fractionally scale the display to 125%. This results in the display automatically going to 200% instead of 125%. The display crashes when I subsequently turn off fractional scaling.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Dale, it sounds like you're experiencing a different issue like maybe bug 1870736 and/or bug 1873403.

So that we can find out, please log a new bug by running:

  ubuntu-bug mutter

affects: gnome-shell (Ubuntu) → mutter (Ubuntu)
tags: added: focal
Revision history for this message
Sören Parton (soerenp15s) wrote :

Still on 22.04

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Sören, this bug has been idle a few years... To help us confirm which issue you are really experiencing in 22.04, please report it as a new bug by running:

  ubuntu-bug gnome-shell

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

The three problems listed in the description here are potentially unrelated to each other so really need to be tracked separately. They're likely already fixed too...

If any of them are still present in Ubuntu 20.04 or 22.04 then please open a new bug for each issue.

Changed in mutter (Ubuntu):
status: Confirmed → Incomplete
Changed in gnome-control-center (Ubuntu):
status: Triaged → Incomplete
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

"Fix Released" since the issue in the title "Unable to set different scale correctly on different monitors" really has been working for a few years at least.

Please open new bugs about any remaining issues you have.

Changed in gnome-control-center (Ubuntu):
status: Incomplete → Invalid
status: Invalid → Fix Released
Changed in mutter (Ubuntu):
status: Incomplete → Fix Released
Changed in gnome-control-center:
status: Unknown → New
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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