I have two monitors attached to my video card. Primary monitor has a resolution equal to 1280x1024 and the second has 1920x1200. My gdm login screen always appears on the second monitor even if it is switched off. My question is how to force gdm to show the login screen always on the primary monitor with resolution 1280x1024?
I use Nvidia GT9500 videcard in Twinview mode. I can't use Xinerama because vpdau doesn't work correclty in this mode.
What I have found is that mouse pointer always appears in the center of union of the screens and center is always on the monitor with higher resolution. Login screen always shows where mouse cursor is.
Now my primary monitor has a resolution equal to 1920x1080. The problem still persists, mouse cursor always appears in the right-bottom corner of the second monitor.
~gdm/.config/is/var/lib/gdm/.config/in case anyone else wonders. – Forage Nov 28 '13 at 19:13sudo cp ~/.config/monitors.xml /var/lib/gdm3/.config/– Francois Nov 20 '16 at 10:35sudofor cp as ~/ggm/.config is owned by gdm user - not currently logged in user. I also had to reboot the machine for the config change to take effect (log off doesn't restart gdm) – Soichi Hayashi Jun 16 '21 at 13:47~/.config/monitors.xmlbefore running the display settings app, because the existingmonitors.xmlhad a lot of cruft from previous monitor setups. The display settings app will then create a new, "clean" file and it is easier to see what is going on (setting primary, secondary monitor x/y location, etc). – Troy Folger Sep 22 '22 at 20:00sudo mkdir -p ~gdm/.config/; sudo chown -R gdm:gdm ~gdm; sudo cp ~/.config/monitors.xml ~gdm/.config/– Gibezynu Nu Jun 06 '23 at 15:01