After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 788691 - Display settings for multiple multiple monitors not preserved between sessions
Display settings for multiple multiple monitors not preserved between sessions
Status: RESOLVED FIXED
Product: mutter
Classification: Core
Component: general
3.26.x
Other Linux
: Normal normal
: ---
Assigned To: mutter-maint
mutter-maint
Depends on:
Blocks:
 
 
Reported: 2017-10-08 22:26 UTC by Andy Pastuszak
Modified: 2018-02-05 10:23 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Andy Pastuszak 2017-10-08 22:26:27 UTC
When I log into Gnome 3.26 on my Arch Linux Thinkpad 440 connected to two monitors via DisplayPort plugged into a docking station.

When I boot up the laptop, the monitor on the right (monitor 3 according to gnome) is the primary monitor and it is on the left with (monitor 2) on the right.

If I make monitor 2 the default and move it to the left of 3, all is well after I hit Apply, but a log and login or reboot makes all the settings revert back to what they were before I modified them.
Comment 1 roehrdor 2017-10-10 14:17:27 UTC
I have the same problem running Arch Linux on a Thinkpad T420 on a docking station connected to two monitors. Everything used to work fine until I changed from 3.24. 

When I restart, log out, undock / dock all settings are reverted.

The following line from journalctl might be interessting

Failed to get current display configuration state: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Name "org.gnome.Mutter.DisplayConfig" does not exist
Comment 2 Oskar Stroka 2017-10-11 00:55:33 UTC
Same problem here on my Dell E6230, connected to 3 screens (2x HDMI/DVI, 1x VGA). 
No matter which of those screens I set as the "primary display", after rebooting the "left" one becomes the primary again.

What I've tried (unsuccessfully):
- Switching from Wayland back to XOrg
- Deleting ~/.config/monitors.xml and ~/.config/monitors.xml~

I've noticed that GDM also prefers the "left" monitor...

Arch Linux, just received an update for mutter, so everything is up to date.
Comment 3 Nathan Rijksen 2017-10-12 19:49:24 UTC
Same issue here.

My monitors.xml seems correct, but ignored. Here's my monitors.xml:

<monitors version="2">
  <configuration>
    <logicalmonitor>
      <x>3840</x>
      <y>0</y>
      <scale>1</scale>
      <monitor>
        <monitorspec>
          <connector>DP-1-2</connector>
          <vendor>ACI</vendor>
          <product>ASUS VS228</product>
          <serial>C7LMQS146415</serial>
        </monitorspec>
        <mode>
          <width>1920</width>
          <height>1080</height>
          <rate>60</rate>
        </mode>
      </monitor>
    </logicalmonitor>
    <logicalmonitor>
      <x>1920</x>
      <y>0</y>
      <scale>1</scale>
      <primary>yes</primary>
      <monitor>
        <monitorspec>
          <connector>DP-1-1-2</connector>
          <vendor>ACI</vendor>
          <product>VX279</product>
          <serial>ECLMRS015424</serial>
        </monitorspec>
        <mode>
          <width>1920</width>
          <height>1080</height>
          <rate>60</rate>
        </mode>
      </monitor>
    </logicalmonitor>
    <logicalmonitor>
      <x>0</x>
      <y>0</y>
      <scale>1</scale>
      <monitor>
        <monitorspec>
          <connector>DP-1-1-1</connector>
          <vendor>ACI</vendor>
          <product>ASUS VS228</product>
          <serial>C9LMTF180907</serial>
        </monitorspec>
        <mode>
          <width>1920</width>
          <height>1080</height>
          <rate>60</rate>
        </mode>
      </monitor>
    </logicalmonitor>
    <disabled>
      <monitorspec>
        <connector>eDP-1</connector>
        <vendor>SDC</vendor>
        <product>0x424a</product>
        <serial>0x00000000</serial>
      </monitorspec>
    </disabled>
  </configuration>
</monitors>

Here's the xrandr -q output:

eDP-1 connected (normal left inverted right x axis y axis)
DP-1-1-1 connected 1920x1080+1920+0 (normal left inverted right x axis y axis) 476mm x 268mm
DP-1-1-2 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 598mm x 336mm
DP-1-2 connected 1920x1080+3840+0 (normal left inverted right x axis y axis) 476mm x 268mm

I also have several of the following entries in my log:

Failed to get current display configuration state: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Name "org.gnome.Mutter.DisplayConfig" does not exist
Comment 4 Cédric Bellegarde 2017-10-13 13:56:53 UTC
Can confirm the issue on Fedora 27.
Comment 5 roehrdor 2017-10-15 10:40:10 UTC
Updating to 'mutter 3.26.1+12+gd6e3193c2-1' had no effect, still 
Failed to get current display configuration state: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Name "org.gnome.Mutter.DisplayConfig" does not exist
Comment 6 Oskar Stroka 2017-10-16 02:16:15 UTC
[me@DELL .config]$ ls -lah | grep monitor
-rw-r--r--  1 me users 3.3K Oct 16 03:57 monitors.xml
-rw-r--r--  1 me users 3.3K Oct 16 01:26 monitors.xml~

content of monitors.xml: 

<monitors version="2">
  <configuration>
    <logicalmonitor>
      <x>1280</x>
      <y>0</y>
      <scale>1</scale>
      <primary>yes</primary>
      <monitor>
        <monitorspec>
          <connector>HDMI3</connector>
          <vendor>ACI</vendor>
          <product>ASUS VB195</product>
          <serial>AALMTF042419</serial>
        </monitorspec>
        <mode>
          <width>1280</width>
          <height>1024</height>
          <rate>60.019741058349609</rate>
        </mode>
      </monitor>
    </logicalmonitor>
    <logicalmonitor>
      <x>2560</x>
      <y>0</y>
      <scale>1</scale>
      <monitor>
        <monitorspec>
          <connector>VGA1</connector>
          <vendor>ACI</vendor>
          <product>ASUS VB198</product>
          <serial>CALMTF164175</serial>
        </monitorspec>
        <mode>
          <width>1280</width>
          <height>1024</height>
          <rate>60.019741058349609</rate>
        </mode>
      </monitor>
    </logicalmonitor>
    <logicalmonitor>
      <x>0</x>
      <y>0</y>
      <scale>1</scale>
      <monitor>
        <monitorspec>
          <connector>HDMI2</connector>
          <vendor>ACI</vendor>
          <product>ASUS VB195</product>
          <serial>BCLMTF054310</serial>
        </monitorspec>
        <mode>
          <width>1280</width>
          <height>1024</height>
          <rate>60.019741058349609</rate>
        </mode>
      </monitor>
    </logicalmonitor>
    <disabled>
      <monitorspec>
        <connector>LVDS1</connector>
        <vendor>AUO</vendor>
        <product>0x106c</product>
        <serial>0x00000000</serial>
      </monitorspec>
    </disabled>
  </configuration>
  <configuration>
    <logicalmonitor>
      <x>2560</x>
      <y>0</y>
      <scale>1</scale>
      <monitor>
        <monitorspec>
          <connector>VGA-1</connector>
          <vendor>ACI</vendor>
          <product>ASUS VB198</product>
          <serial>CALMTF164175</serial>
        </monitorspec>
        <mode>
          <width>1280</width>
          <height>1024</height>
          <rate>60.020236968994141</rate>
        </mode>
      </monitor>
    </logicalmonitor>
    <logicalmonitor>
      <x>1280</x>
      <y>0</y>
      <scale>1</scale>
      <primary>yes</primary>
      <monitor>
        <monitorspec>
          <connector>HDMI-3</connector>
          <vendor>ACI</vendor>
          <product>ASUS VB195</product>
          <serial>AALMTF042419</serial>
        </monitorspec>
        <mode>
          <width>1280</width>
          <height>1024</height>
          <rate>60.020236968994141</rate>
        </mode>
      </monitor>
    </logicalmonitor>
    <logicalmonitor>
      <x>0</x>
      <y>0</y>
      <scale>1</scale>
      <monitor>
        <monitorspec>
          <connector>HDMI-2</connector>
          <vendor>ACI</vendor>
          <product>ASUS VB195</product>
          <serial>BCLMTF054310</serial>
        </monitorspec>
        <mode>
          <width>1280</width>
          <height>1024</height>
          <rate>60.020236968994141</rate>
        </mode>
      </monitor>
    </logicalmonitor>
    <disabled>
      <monitorspec>
        <connector>LVDS-1</connector>
        <vendor>AUO</vendor>
        <product>0x106c</product>
        <serial>0x00000000</serial>
      </monitorspec>
    </disabled>
  </configuration>
</monitors>

content of monitors.xml~:

<monitors version="2">
  <configuration>
    <logicalmonitor>
      <x>1280</x>
      <y>0</y>
      <scale>1</scale>
      <primary>yes</primary>
      <monitor>
        <monitorspec>
          <connector>HDMI3</connector>
          <vendor>ACI</vendor>
          <product>ASUS VB195</product>
          <serial>AALMTF042419</serial>
        </monitorspec>
        <mode>
          <width>1280</width>
          <height>1024</height>
          <rate>60.019741058349609</rate>
        </mode>
      </monitor>
    </logicalmonitor>
    <logicalmonitor>
      <x>2560</x>
      <y>0</y>
      <scale>1</scale>
      <monitor>
        <monitorspec>
          <connector>VGA1</connector>
          <vendor>ACI</vendor>
          <product>ASUS VB198</product>
          <serial>CALMTF164175</serial>
        </monitorspec>
        <mode>
          <width>1280</width>
          <height>1024</height>
          <rate>60.019741058349609</rate>
        </mode>
      </monitor>
    </logicalmonitor>
    <logicalmonitor>
      <x>0</x>
      <y>0</y>
      <scale>1</scale>
      <monitor>
        <monitorspec>
          <connector>HDMI2</connector>
          <vendor>ACI</vendor>
          <product>ASUS VB195</product>
          <serial>BCLMTF054310</serial>
        </monitorspec>
        <mode>
          <width>1280</width>
          <height>1024</height>
          <rate>60.019741058349609</rate>
        </mode>
      </monitor>
    </logicalmonitor>
    <disabled>
      <monitorspec>
        <connector>LVDS1</connector>
        <vendor>AUO</vendor>
        <product>0x106c</product>
        <serial>0x00000000</serial>
      </monitorspec>
    </disabled>
  </configuration>
  <configuration>
    <logicalmonitor>
      <x>2560</x>
      <y>0</y>
      <scale>1</scale>
      <monitor>
        <monitorspec>
          <connector>VGA-1</connector>
          <vendor>ACI</vendor>
          <product>ASUS VB198</product>
          <serial>CALMTF164175</serial>
        </monitorspec>
        <mode>
          <width>1280</width>
          <height>1024</height>
          <rate>60.020236968994141</rate>
        </mode>
      </monitor>
    </logicalmonitor>
    <logicalmonitor>
      <x>1280</x>
      <y>0</y>
      <scale>1</scale>
      <primary>yes</primary>
      <monitor>
        <monitorspec>
          <connector>HDMI-3</connector>
          <vendor>ACI</vendor>
          <product>ASUS VB195</product>
          <serial>AALMTF042419</serial>
        </monitorspec>
        <mode>
          <width>1280</width>
          <height>1024</height>
          <rate>60.020236968994141</rate>
        </mode>
      </monitor>
    </logicalmonitor>
    <logicalmonitor>
      <x>0</x>
      <y>0</y>
      <scale>1</scale>
      <monitor>
        <monitorspec>
          <connector>HDMI-2</connector>
          <vendor>ACI</vendor>
          <product>ASUS VB195</product>
          <serial>BCLMTF054310</serial>
        </monitorspec>
        <mode>
          <width>1280</width>
          <height>1024</height>
          <rate>60.020236968994141</rate>
        </mode>
      </monitor>
    </logicalmonitor>
    <disabled>
      <monitorspec>
        <connector>LVDS-1</connector>
        <vendor>AUO</vendor>
        <product>0x106c</product>
        <serial>0x00000000</serial>
      </monitorspec>
    </disabled>
  </configuration>
</monitors>

I logged back on at 03:57.

got no ""org.gnome.Mutter.DisplayConfig" does not exist" in my journalctl. 

Version of mutter: mutter-3.26.1+7+g41f7a5fdf-1
Comment 7 Christophe Aubry 2017-10-17 09:39:06 UTC
Same problem for me on Arch Linux and Debian SID but i didn't see any error messages with journalctl.
I use and HP EliteBook 9470m with integrated Intel connected to one DisplayPort to DVI and one VGA.
Comment 8 Daniel Playfair Cal 2017-10-25 22:52:25 UTC
Same here. Arch Linux, Gnome 3.26.1, integrated 3840x2160 laptop screen, one usb-c-displayport adapter connected to an external 2560x1440 screen, and one hdmi cord connected to an external 1920x1080 monitor.
Comment 9 Daniel Playfair Cal 2017-10-25 22:53:02 UTC
Also I'm running wayland
Comment 10 jochym 2017-11-13 10:34:07 UTC
Gnome 3.26, debian testing, running on X11, same issue. My config is similar to the first comment: Thinkpad T430s on the dock with two external monitors with the *right* one as main. I can arrange it that way but it does not stick. I does not survive Alt-F2-r. This is *very* uncomfortable. 

Also the new configuration dialog is *very* buggy. But that is a matter for the other bug report.
Comment 11 Rui Matos 2017-11-14 16:47:03 UTC
(In reply to jochym from comment #10)
> Gnome 3.26, debian testing, running on X11, same issue. My config is similar
> to the first comment: Thinkpad T430s on the dock with two external monitors
> with the *right* one as main. I can arrange it that way but it does not
> stick. I does not survive Alt-F2-r. This is *very* uncomfortable. 

Which mutter version exactly?

> Also the new configuration dialog is *very* buggy. But that is a matter for
> the other bug report.

This is probably bug 789711.
Comment 12 Oskar Stroka 2017-11-19 16:46:02 UTC
(In reply to Rui Matos from comment #11)
> (In reply to jochym from comment #10)
> > Gnome 3.26, debian testing, running on X11, same issue. My config is similar
> > to the first comment: Thinkpad T430s on the dock with two external monitors
> > with the *right* one as main. I can arrange it that way but it does not
> > stick. I does not survive Alt-F2-r. This is *very* uncomfortable. 
> 
> Which mutter version exactly?
> 
> > Also the new configuration dialog is *very* buggy. But that is a matter for
> > the other bug report.
> 
> This is probably bug 789711.

Also happens with version "mutter-3.26.2-1"
Comment 13 Hesham Ahmed 2017-12-13 06:32:05 UTC
This appears to be solved for me with mutter 3.26.2+31+gbf91e2b4c-1 on ArchLinux
Comment 14 Oskar Stroka 2017-12-16 11:20:25 UTC
yes, it's also fixed for me - on arch.
Thanks =)
Comment 15 jochym 2018-02-05 09:58:54 UTC
(In reply to Rui Matos from comment #11)
> (In reply to jochym from comment #10)
> > Gnome 3.26, debian testing, running on X11, same issue. My config is similar
> > to the first comment: Thinkpad T430s on the dock with two external monitors
> > with the *right* one as main. I can arrange it that way but it does not
> > stick. I does not survive Alt-F2-r. This is *very* uncomfortable. 
> 
> Which mutter version exactly?
> 
> > Also the new configuration dialog is *very* buggy. But that is a matter for
> > the other bug report.
> 
> This is probably bug 789711.

3.26.2-1 on debian testing. Sorry for not replying sooner. It seems that on wayland it works.
Comment 16 Jonas Ådahl 2018-02-05 10:05:34 UTC
Lets assume its fixed.
Comment 17 jochym 2018-02-05 10:23:22 UTC
Please do not, at least yet! It may be misconfig on my side but I have trouble finding the place. I have noticed this when I run gnome-control-center from the terminal:

Config not applicable: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: The requested configuration is based on stale information

All files in my home directory are owned by me. Can I check something else?