What I found is, when I'm saving my settings in monitors.xml, is have
the following:

 <configuration>
    <logicalmonitor>
      <x>0</x>
      <y>0</y>
      <scale>1</scale>
      <monitor>
        <monitorspec>
          <connector>HDMI-A-1</connector>
          <vendor>ACI</vendor>
          <product>ASUS PB278</product>
          <serial>D3LMTF056504</serial>
        </monitorspec>
        <mode>
          <width>2560</width>
          <height>1440</height>
          <rate>59.950550079345703</rate>
        </mode>
      </monitor>
    </logicalmonitor>
    <logicalmonitor>
      <x>5120</x>
      <y>0</y>
      <scale>1.5</scale>
      <primary>yes</primary>
      <monitor>
        <monitorspec>
          <connector>DisplayPort-1</connector>
          <vendor>ACI</vendor>
          <product>ASUS PB287Q</product>
          <serial>0x0001ecd2</serial>
        </monitorspec>
        <mode>
          <width>3840</width>
          <height>2160</height>
          <rate>59.996623992919922</rate>
        </mode>
      </monitor>
    </logicalmonitor>
  </configuration>

As you can see first one resolution is 2560x1440, but the second one by
position starts at x=5120, so 2560x2, as the second one is saved with
1.5 scale. But gnome-shell probably expects them to be adjacent, so
expects x=2560

So, when gnome-shell starts it looks like we are failing to pass the
adjacent check. And that's exactly what it's saying:

Apr 25 13:28:28 xxx gnome-shell[10304]: Failed to read monitors config
file '/home/xxx/.config/monitors.xml': Logical monitors not adjacent

To verify that I made x=2560 in monitors.xml and restarted gnome-shell,
all scaling remained in place as they saved and no errors from gnome-
shell anymore, but the right screen is half overridden by left one
(which is exactly how to position specified now for the scaled screen).

So it looks like config validator in gnome-shell needs to be fixed to
behave differently when logical monitors are scaled.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1825593

Title:
  Display: 100% scale not remembered when X11 Fractional Scaling is
  enabled

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-control-center/+bug/1825593/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to