14

This bug poisons my ubuntu experience. When the pc resumes (re-open the lid) the windows are re-sized. See example below (screenshot) for FF:

enter image description here

Is there anything I can switch off to fix this?

graham
  • 10,436
user2413
  • 14,337

2 Answers2

14

I had exactly the same problem and I had real trouble finding a solution. Eventually, I solved it by turning off Gnome's automatic window scaling. You can check your current setting with the following:

gsettings get org.gnome.desktop.interface scaling-factor

If this returns a value of uint32 0, then it means you have automatic scaling turned on. I found that setting this to a specific value (in my case 1) fixed the issue, which you can do using the following:

gsettings set org.gnome.desktop.interface scaling-factor 1

I discovered this by following this answer about scaling gnome's login screen. The problem seems to be caused by a mismatch between the login screen and desktop scaling factors.

zx485
  • 2,426
flypig
  • 166
  • 2
  • 3
  • 1
    My issue wasn't solved when I set scaling-factor to 2; I'm running Bionic on a desktop with a 4K display on 200% scaling, and widows are resized after I lock the screen and then resume. – Jonathan Y. Feb 27 '19 at 12:31
  • Although I upvoted this answer, this bug is persistent on 22.04 – Tom Jan 28 '24 at 13:20
0

You can upgrade dist too

sudo apt-get dist-upgrade

I'm sure this solution is working for you.

Nadimibox
  • 101