Fedora login manager with multiple screen setup

I’m experimenting with making a switch to Linux for my main desktop, mainly driven by wanting Linux as a development environment for python, rather than Windows.

After installing Fedora 21 Workstation version, its become annoying that the login manager, gdm, isn’t remembering the display configuration for my multiple-monitor setup.  I run Portrait Landscape Portrait setup (PLP) with 2x 1200×1600 and 1x 2560×1600 in the middle, so having the login manager not just use the wrong display output for the primary screen, but also show it at the wrong orientation, is just annoying.

The fix?

1.  Set up your screens as a user using the display settings box.

2.  Copy the configuration to the default gdm settings:

sudo cp ~user/.config/monitors.xml /var/lib/gdm/.config
sudo chown gdm:gdm /var/lib/gdm/.config/monitors.xml

And done!

And for those who don’t have a monitors.xml file for some reason, here’s the contents of mine:

<monitors version="1">
 <configuration>
 <clone>no</clone>
 <output name="DVI-1">
 <vendor>DEL</vendor>
 <product>DELL 2007FP</product>
 <serial>Y991774I1MKL</serial>
 <width>1200</width>
 <height>1600</height>
 <rate>60</rate>
 <x>3760</x>
 <y>0</y>
 <rotation>left</rotation>
 <reflect_x>no</reflect_x>
 <reflect_y>no</reflect_y>
 <primary>no</primary>
 <presentation>no</presentation>
 </output>
 <output name="DisplayPort-1">
 <vendor>DEL</vendor>
 <product>DELL U3011</product>
 <serial>PH5NY13J142L</serial>
 <width>2560</width>
 <height>1600</height>
 <rate>59.971588134765625</rate>
 <x>1200</x>
 <y>400</y>
 <rotation>normal</rotation>
 <reflect_x>no</reflect_x>
 <reflect_y>no</reflect_y>
 <primary>yes</primary>
 <presentation>no</presentation>
 </output>
 <output name="HDMI-0">
 <vendor>DEL</vendor>
 <product>DELL 2007FP</product>
 <serial>Y991773S1KDL</serial>
 <width>1200</width>
 <height>1600</height>
 <rate>60</rate>
 <x>0</x>
 <y>400</y>
 <rotation>left</rotation>
 <reflect_x>no</reflect_x>
 <reflect_y>no</reflect_y>
 <primary>no</primary>
 <presentation>no</presentation>
 </output>
 </configuration>
</monitors>

Ooroo!

Leave a Reply

Your email address will not be published. Required fields are marked *