Edit: I have just realized, the same resizing happens if I maximize a window and then restore it, but only in nautilus, and not in evince/gedit.

Ever since I started using Bionic, I've had the following issue with two desktops connected to HiDPI monitors (3840x2160), at work and at home: if I lock the screen and step away for some time, when I get back some windows are resized/shrinked.

It happens for applications like Nautilus and Evince, but not for others like Firefox or Texmaker. See before: Before resize and after: After resize

Subsequent lock and login cycles shrink the windows further, so that if I'd forgotten an open folder in the morning, by next day Nautilus opens by default to a really small window.

I did some Googling (Ask Ubuntu Question 1, Ask Ubuntu Question 2, Ask Ubuntu Answer, Launchpad bug) and it seems like maybe the culprit is the fact that I use 200% scaling and the login screen. But nothing I tried solved the issue. Is there anything I can do to debug this issue further?

I tried the solutions in Ask Ubuntu Question 1, to set Gnome's automatic window scaling the match what I use by:

$ gsettings set org.gnome.desktop.interface scaling-factor 2

but that didn't work.

I also tried to scale gdm3's login screen so that it matches my desktop as described in Ask Ubuntu Question 2, by editing /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml so that the scaling-factor key reads:

<key name="scaling-factor" type="u">
  <summary>Window scaling factor</summary>
    Integer factor used to scale windows by. For use on high-dpi screens.
    0 means pick automatically based on monitor.

and like the second answer suggested creating /usr/share/glib-2.0/schemas/93_hidpi.gschema.override with content


then running

$ sudo glib-compile-schemas /usr/share/glib-2.0/schemas

and that didn't work either.

Finally, trying to make sure gdm3's login screen uses the same resolution as my desktop, I followed this Ask Ubuntu Answer and ran

$ sudo cp -i .config/monitors.xml /var/lib/gdm3/.config/
$ sudo dpkg-reconfigure gdm3

still, no joy. (I'll paste my monitors.xml below, just in case that could help.)

<monitors version="2">
          <product>DELL S2817Q</product>
  • I have exactly the same problem (I'm using pop os 19.04), did you solve it? – Lukasz Zuchowski Nov 27 '19 at 21:42
  • @LukaszZuchowski I haven't. – Jonathan Y. Nov 28 '19 at 6:38

My setup is 1x 4k monitor 3840x2160 and PC under my desk. The issue I had was similar to yours. I observed it mainly on two apps: terminal and chrome.

Now everything works fine, what helped in my case:

  1. Disabling HiDpi deamon in settings

  2. cp /usr/share/applications/google-chrome.desktop ~/.local/share/applications

  3. In copy, change the [Exec] line to: Exec=/usr/bin/google-chrome-stable %U --high-dpi-support=1 --force-device-scale-factor=2

  4. logout/login (or restart just to be sure ;)

TBH I'm not 100% sure if disabling the HiDpi daemon was necessary but since I'm using PC not a laptop, it's not necessary.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.