HiDPI monitor and window resize after lockScaling Gnome login screen on HiDPI displayHow to change the login screen resolution in Ubuntu 18.04Preventing Window resizing after resumeUsing different wallpapers on multiple monitors (Gnome 2 + Compiz)can't resize Nautilus window in gnome-flashback using Ambiance themehow to adjust window decoration *and* font size settings in xenialHiDPI Screen + Monitor application scaling issues (Wayland and X windows)

US entry with tourist visa but past alcohol arrest

Escape the labyrinth!

Automate tasks with Lambdas in java

Social leper versus social leopard

Did HaShem ever command a Navi (Prophet) to break a law?

Why do different vector<bool> elements share the same address?

Temporarily moving a SQL Server 2016 database to SQL Server 2017 and then moving back. Is it possible?

Did Apollo carry and use WD40?

Creating a 16x16(NxN) grid

Is there a connection between IT and Ghostbusters?

How should I avoid someone patenting technology in my paper/poster?

Wired to Wireless Doorbell

Cheap antenna for new HF HAM

How to deal with my team leader who keeps calling me about project updates even though I am on leave for personal work?

Can Northern Ireland's border issue be solved by repartition?

Can Bless or Bardic Inspiration help a creature from rolling a 1 on a death save?

What do solvers like Gurobi and CPLEX do when they run into hard instances of MIP

How do I improve in sight reading?

Can planetary bodies have a second axis of rotation?

Create a magic square of 4-digit numbers

Reaction of aqueous sodium carbonate with aluminum foil

Microservices and Stored Procedures

What can a pilot do if an air traffic controller is incapacitated?

Would a flying character fall prone after dashing if they had lost a leg?



HiDPI monitor and window resize after lock


Scaling Gnome login screen on HiDPI displayHow to change the login screen resolution in Ubuntu 18.04Preventing Window resizing after resumeUsing different wallpapers on multiple monitors (Gnome 2 + Compiz)can't resize Nautilus window in gnome-flashback using Ambiance themehow to adjust window decoration *and* font size settings in xenialHiDPI Screen + Monitor application scaling issues (Wayland and X windows)






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








1















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">
<default>2</default>
<summary>Window scaling factor</summary>
<description>
Integer factor used to scale windows by. For use on high-dpi screens.
0 means pick automatically based on monitor.
</description>
</key>


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



[org.gnome.desktop.interface]
scaling-factor=2


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">
<configuration>
<logicalmonitor>
<x>0</x>
<y>0</y>
<scale>2</scale>
<primary>yes</primary>
<monitor>
<monitorspec>
<connector>DP-2</connector>
<vendor>DEL</vendor>
<product>DELL S2817Q</product>
<serial>J42MC89E181I</serial>
</monitorspec>
<mode>
<width>3840</width>
<height>2160</height>
<rate>59.997123718261719</rate>
</mode>
</monitor>
</logicalmonitor>
</configuration>
</monitors>









share|improve this question
































    1















    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">
    <default>2</default>
    <summary>Window scaling factor</summary>
    <description>
    Integer factor used to scale windows by. For use on high-dpi screens.
    0 means pick automatically based on monitor.
    </description>
    </key>


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



    [org.gnome.desktop.interface]
    scaling-factor=2


    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">
    <configuration>
    <logicalmonitor>
    <x>0</x>
    <y>0</y>
    <scale>2</scale>
    <primary>yes</primary>
    <monitor>
    <monitorspec>
    <connector>DP-2</connector>
    <vendor>DEL</vendor>
    <product>DELL S2817Q</product>
    <serial>J42MC89E181I</serial>
    </monitorspec>
    <mode>
    <width>3840</width>
    <height>2160</height>
    <rate>59.997123718261719</rate>
    </mode>
    </monitor>
    </logicalmonitor>
    </configuration>
    </monitors>









    share|improve this question




























      1












      1








      1








      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">
      <default>2</default>
      <summary>Window scaling factor</summary>
      <description>
      Integer factor used to scale windows by. For use on high-dpi screens.
      0 means pick automatically based on monitor.
      </description>
      </key>


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



      [org.gnome.desktop.interface]
      scaling-factor=2


      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">
      <configuration>
      <logicalmonitor>
      <x>0</x>
      <y>0</y>
      <scale>2</scale>
      <primary>yes</primary>
      <monitor>
      <monitorspec>
      <connector>DP-2</connector>
      <vendor>DEL</vendor>
      <product>DELL S2817Q</product>
      <serial>J42MC89E181I</serial>
      </monitorspec>
      <mode>
      <width>3840</width>
      <height>2160</height>
      <rate>59.997123718261719</rate>
      </mode>
      </monitor>
      </logicalmonitor>
      </configuration>
      </monitors>









      share|improve this question
















      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">
      <default>2</default>
      <summary>Window scaling factor</summary>
      <description>
      Integer factor used to scale windows by. For use on high-dpi screens.
      0 means pick automatically based on monitor.
      </description>
      </key>


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



      [org.gnome.desktop.interface]
      scaling-factor=2


      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">
      <configuration>
      <logicalmonitor>
      <x>0</x>
      <y>0</y>
      <scale>2</scale>
      <primary>yes</primary>
      <monitor>
      <monitorspec>
      <connector>DP-2</connector>
      <vendor>DEL</vendor>
      <product>DELL S2817Q</product>
      <serial>J42MC89E181I</serial>
      </monitorspec>
      <mode>
      <width>3840</width>
      <height>2160</height>
      <rate>59.997123718261719</rate>
      </mode>
      </monitor>
      </logicalmonitor>
      </configuration>
      </monitors>






      18.04 gnome nautilus gdm hdpi






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited May 19 at 16:06







      Jonathan Y.

















      asked Apr 15 at 12:38









      Jonathan Y.Jonathan Y.

      50412 silver badges30 bronze badges




      50412 silver badges30 bronze badges























          0






          active

          oldest

          votes














          Your Answer








          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "89"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );














          draft saved

          draft discarded
















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1134080%2fhidpi-monitor-and-window-resize-after-lock%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded















































          Thanks for contributing an answer to Ask Ubuntu!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1134080%2fhidpi-monitor-and-window-resize-after-lock%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Tamil (spriik) Luke uk diar | Nawigatjuun

          Align equal signs while including text over equalitiesAMS align: left aligned text/math plus multicolumn alignmentMultiple alignmentsAligning equations in multiple placesNumbering and aligning an equation with multiple columnsHow to align one equation with another multline equationUsing \ in environments inside the begintabularxNumber equations and preserving alignment of equal signsHow can I align equations to the left and to the right?Double equation alignment problem within align enviromentAligned within align: Why are they right-aligned?

          Training a classifier when some of the features are unknownWhy does Gradient Boosting regression predict negative values when there are no negative y-values in my training set?How to improve an existing (trained) classifier?What is effect when I set up some self defined predisctor variables?Why Matlab neural network classification returns decimal values on prediction dataset?Fitting and transforming text data in training, testing, and validation setsHow to quantify the performance of the classifier (multi-class SVM) using the test data?How do I control for some patients providing multiple samples in my training data?Training and Test setTraining a convolutional neural network for image denoising in MatlabShouldn't an autoencoder with #(neurons in hidden layer) = #(neurons in input layer) be “perfect”?