scaling changes when closing/re-opening the lid

Bug #1793496 reported by Matthias Klose on 2018-09-20
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Mutter
Fix Released
Unknown
mutter (Ubuntu)
Medium
Marco Trevisan (Treviño)
Bionic
Undecided
Marco Trevisan (Treviño)

Bug Description

scaling changes when closing/re-opening the lid. Seen in bionic.

Mz scaling is set to 100%, but the laptop is considered highdpi by mutter, and during suspend/resume it changes back to default ignoring settings.

$ xprop -spy -root RESOURCE_MANAGER
[...]
RESOURCE_MANAGER(STRING) = "*customization:\t-color\nXft.dpi:\t192\nXft.antialias:\t1\nXft.hinting:\t1\nXft.hintstyle:\thintslight\nXft.rgba:\trgb\nXcursor.size:\t48\nXcursor.theme:\tDMZ-White\n"
RESOURCE_MANAGER(STRING) = "*customization:\t-color\nXft.dpi:\t96\nXft.antialias:\t1\nXft.hinting:\t1\nXft.hintstyle:\thintslight\nXft.rgba:\trgb\nXcursor.size:\t24\nXcursor.theme:\tDMZ-White\n"

xrandr
Screen 0: minimum 320 x 200, current 2560 x 1440, maximum 8192 x 8192
eDP-1 connected primary 2560x1440+0+0 (normal left inverted right x axis y axis) 309mm x 174mm
   2560x1440 60.00*+ 59.99 59.99 59.96 59.95

Changed in mutter (Ubuntu):
status: Triaged → Fix Released

This has been fixed by

mutter (3.32.0-1ubuntu2) disco; urgency=medium

  * debian/patches/x11-Add-support-for-fractional-scaling-using-Randr.patch:
    - Don't invert the screen size when rotation is enabled (LP: #1822513)
    - Remove unneeded cleanup changes
    - Use xcb checked function to set scaling to catch errors
    - Update screen size only after monitors modes have been derived
      (LP: #1822616)
    - Trigger a monitors rebuild only if scale has changed (LP: #1823485)
    - Only update UI scaling when output scaling is enabled (LP: #1822478)

 -- Marco Trevisan (Treviño) Wed, 03 Apr 2019 19:19:59 -0400

I expect this is fixed by https://gitlab.gnome.org/GNOME/mutter/merge_requests/336 (issue https://gitlab.gnome.org/GNOME/mutter/issues/407)

Matthias Klose (doko) on 2019-06-26
tags: added: rls-bb-incoming
Iain Lane (laney) on 2019-06-26
no longer affects: mutter (Ubuntu Bionic)
Changed in mutter:
status: Unknown → New
Matthias Klose (doko) wrote :

fyi, with the packages provided by Marco I still can reproduce the issue with bionic.

tags: added: xrandr-scaling
Changed in mutter:
status: New → Fix Released
Will Cooke (willcooke) on 2019-09-10
Changed in mutter (Ubuntu Bionic):
assignee: nobody → Marco Trevisan (Treviño) (3v1n0)
tags: removed: rls-bb-incoming
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

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