GNOME Bugzilla – Bug 785751
Forgets monitor configuration at every login and every tty switch
Last modified: 2021-07-05 13:45:24 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.
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>
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.
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?
[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.
Are there any messages in the journal?
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
Created attachment 357208 [details] journal messages around the time of a VT switch
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.