Ubuntu – Login screen appears on second monitor

18.04gdmmultiple-monitorsnvidia-geforce

After I choose Ubuntu from the GRUB menu which appears on the primary monitor, the login screen appears on the second monitor which is something that I don't want.

How can I prevent this, so that everything appears on the primary monitor?

Nvida X Server Settings

Best Answer

  • Ubuntu 18.04 login screen Display settings

    Copying the file monitors.xml from /home/user/.config into /var/lib/gdm3/.config/ and

    sudo cp ~/.config/monitors.xml ~gdm/.config/monitors.xml
    sudo chown gdm:gdm ~gdm/.config/monitors.xml
    

    In /etc/gdm3/custom.conf changing from #WaylandEnable = false to WaylandEnable = false solved the issue.


    UPDATE

    The same things happen on Ubuntu 20.04 LTS Focal Fossa, gdm somehow does not recognize which monitor is set as primary and the login screen appears on second Monitor.

    Copying only monitors.xml solves the issue

    sudo cp ~/.config/monitors.xml ~gdm/.config/monitors.xml