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 785751 - Forgets monitor configuration at every login and every tty switch
Forgets monitor configuration at every login and every tty switch
Status: RESOLVED OBSOLETE
Product: mutter
Classification: Core
Component: general
git master
Other Linux
: Normal major
: ---
Assigned To: mutter-maint
mutter-maint
Depends on:
Blocks:
 
 
Reported: 2017-08-02 21:05 UTC by Adam Williamson
Modified: 2021-07-05 13:45 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
journal messages around the time of a VT switch (13.56 KB, text/plain)
2017-08-08 15:40 UTC, Adam Williamson
Details

Description Adam Williamson 2017-08-02 21:05:10 UTC
Since I upgraded to Fedora Rawhide after the F26 release - currently on gnome-settings-daemon 3.25.2-1.fc27 - GNOME forgets my monitor configuration every time I log in, and every time I switch TTYs. I have two monitors and I configure them for portrait orientation, side-by-side - but every time I log out and in again, or switch TTYs, they come up in landscape orientation, so I have to work my way through the Displays applet with my head screwed over to one side. Rather annoying.
Comment 1 Adam Williamson 2017-08-03 20:19:24 UTC
Looking at my ~/.config/monitors.xml , it seems like perhaps the 'serial' property of the displays keeps changing, for some reason? Because I see multiple entries for outputs with the same name, vendor and product, but with different serial (I'm presuming that each time my configuration is 'forgotten' and I go back through Displays, another section is being added to the file...):

  <configuration>
    <clone>no</clone>
    <output name="DVI-I-2">
      <vendor>DEL</vendor>
      <product>0x405e</product>
      <serial>0x414a364c</serial>
      <width>1920</width>
      <height>1080</height>
      <rate>60</rate>
      <x>0</x>
      <y>0</y>
      <rotation>left</rotation>
      <reflect_x>no</reflect_x>
      <reflect_y>no</reflect_y>
      <primary>yes</primary>
      <presentation>no</presentation>
      <underscanning>no</underscanning>
    </output>
    <output name="DVI-I-1">
      <vendor>DEL</vendor>
      <product>0x405e</product>
      <serial>0x4153384c</serial>
      <width>1920</width>
      <height>1080</height>
      <rate>60</rate>
      <x>1080</x>
      <y>0</y>
      <rotation>left</rotation>
      <reflect_x>no</reflect_x>
      <reflect_y>no</reflect_y>
      <primary>no</primary>
      <presentation>no</presentation>
      <underscanning>no</underscanning>
    </output>
  </configuration>
  <configuration>
    <clone>no</clone>
    <output name="DVI-I-1">
      <vendor>DEL</vendor>
      <product>DELL U2211H</product>
      <serial>XVV580BIAS8L</serial>
      <width>1080</width>
      <height>1920</height>
      <rate>60.000495910644531</rate>
      <x>1080</x>
      <y>0</y>
      <rotation>left</rotation>
      <reflect_x>no</reflect_x>
      <reflect_y>no</reflect_y>
      <primary>no</primary>
      <presentation>no</presentation>
      <underscanning>no</underscanning>
    </output>
    <output name="DVI-I-2">
      <vendor>DEL</vendor>
      <product>DELL U2211H</product>
      <serial>XVV580BIAJ6L</serial>
      <width>1080</width>
      <height>1920</height>
      <rate>60.000495910644531</rate>
      <x>0</x>
      <y>0</y>
      <rotation>left</rotation>
      <reflect_x>no</reflect_x>
      <reflect_y>no</reflect_y>
      <primary>yes</primary>
      <presentation>no</presentation>
      <underscanning>no</underscanning>
    </output>
  </configuration>
  <configuration>
    <clone>no</clone>
    <output name="DVI-I-1">
      <vendor>DEL</vendor>
      <product>DELL U2211H</product>
      <serial>XVV580BIAJ6L</serial>
      <width>1080</width>
      <height>1920</height>
      <rate>60.000495910644531</rate>
      <x>0</x>
      <y>0</y>
      <rotation>left</rotation>
      <reflect_x>no</reflect_x>
      <reflect_y>no</reflect_y>
      <primary>yes</primary>
      <presentation>no</presentation>
      <underscanning>no</underscanning>
    </output>
    <output name="DVI-I-2">
      <vendor>DEL</vendor>
      <product>DELL U2211H</product>
      <serial>XVV580BIAS8L</serial>
      <width>1080</width>
      <height>1920</height>
      <rate>60.000495910644531</rate>
      <x>1080</x>
      <y>0</y>
      <rotation>left</rotation>
      <reflect_x>no</reflect_x>
      <reflect_y>no</reflect_y>
      <primary>no</primary>
      <presentation>no</presentation>
      <underscanning>no</underscanning>
    </output>
  </configuration>
Comment 2 Adam Williamson 2017-08-03 20:34:36 UTC
hmm, no, now I look at it more closely there's only a couple of different serial numbers in there (the first entry looks like it's in hex; then all the later ones have the same two serial numbers, though with different combinations of which serial number is attached to which output). Still dunno what's going on here.
Comment 3 Jonas Ådahl 2017-08-08 08:52:24 UTC
What is the version of mutter you have installed? Did you ever try to set the configuration again with gnome-control-center? If you set it again, with gnome-control-center, does it then set configuration next time you log in? If not, do you have a file called ~/.config/monitors-experimental.xml?
Comment 4 Adam Williamson 2017-08-08 15:08:38 UTC
[adamw@adam ~]$ rpm -q mutter
mutter-3.25.4-1.fc27.x86_64

"Did you ever try to set the
configuration again with gnome-control-center?"

Of course. I have to do it every time I log in or switch ttys, or my monitors are sideways.

"If you set it again, with
gnome-control-center, does it then set configuration next time you log in?"

No. That's exactly the point of this bug.

"If
not, do you have a file called ~/.config/monitors-experimental.xml?"

No.
Comment 5 Jonas Ådahl 2017-08-08 15:24:06 UTC
Are there any messages in the journal?
Comment 6 Adam Williamson 2017-08-08 15:38:29 UTC
Well, there are quite a lot, but hard to be sure which are relevant. I'll attach all the ones I get on a TTY switch. One that does also show up on session startup and may be relevant is this:

Aug 08 08:36:16 adam.happyassassin.net gnome-shell[2615]: Failed to apply DRM plane transform 0: Invalid argument
Aug 08 08:36:16 adam.happyassassin.net gnome-shell[2615]: Failed to apply DRM plane transform 0: Invalid argument
Comment 7 Adam Williamson 2017-08-08 15:40:11 UTC
Created attachment 357208 [details]
journal messages around the time of a VT switch
Comment 8 GNOME Infrastructure Team 2021-07-05 13:45:24 UTC
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org.
As part of that, we are mass-closing older open tickets in bugzilla.gnome.org
which have not seen updates for a longer time (resources are unfortunately
quite limited so not every ticket can get handled).

If you can still reproduce the situation described in this ticket in a recent
and supported software version, then please follow
  https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines
and create a new ticket at
  https://gitlab.gnome.org/GNOME/mutter/-/issues/

Thank you for your understanding and your help.