How do you configure your displays for GDM?

I’d like to change which of my displays are active and primary during the login screen.

I found this discussion elsewhere the recommended solution didn’t work for me.

Here is the wiki entry for that discussion: GDM - ArchWiki. Mind the note that you can’t use a Wayland monitors.xml file on Xorg and vice versa. So make sure your user session runs on the same that GDM runs on before creating the monitors.xml file.

How did you try the solution from the discussion you linked to? The steps are:

  1. Move your ~/.config/monitors.xml file elsewhere or rename it (to get rid of cruft and old monitors info). Then in Settings > Displays configure your monitors as you want. Check a new ~/.config/monitors.xml is created.
  2. Copy the new file to the gdm user with correct permissions:
sudo cp ~/.config/monitors.xml ~gdm/.config
sudo chown gdm: ~gdm/.config/monitors.xml
  1. Reboot or restart GDM to activate.
  1. If you can, log into a Wayland GNOME session.
  2. Change some display settings and apply them.
  3. Run the following commands
    sudo cp ~/.config/monitors.xml -t ~gdm/.config
    sudo chown gdm: ~gdm/.config/monitors.xml
    

My problem was using Xorg on the Desktop and Wayland in GDM.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.