9

The login screen was fine on first boot with Nouveau but when I installed nvidia-381 from the graphics-drivers ppa and rebooted my login resolution is extremely high making the font and ui really small. I can still login just fine but it's an eyesore and I'd like to get it fixed.

In my searching for an answer I found a solution of setting my resolution through system settings and copying the monitors.xml file from my ~/.config folder to /var/lib/gdm3/.config but obviously that didn't work.

  • Ubuntu Gnome 17.04

  • Nvidia 381.09 w/ nomodeset (It won't display the login screen otherwise.) I've also tried 378.13 and it didn't work either.

  • Screen res 1360x768

https://i.stack.imgur.com/IfPk2.jpg

Recent update fixed the issue for me!

Start-Date: 2017-05-29 20:35:51

Commandline: apt upgrade

Requested-By: cxf (1000)

Upgrade: gnome-settings-daemon-schemas:amd64 (3.24.1-0ubuntu1, 3.24.2-0ubuntu0.1), gnome-settings-daemon:amd64 (3.24.1-0ubuntu1, 3.24.2-0ubuntu0.1)

End-Date: 2017-05-29 20:36:23

  • I upgraded from 16.10 to 17.04 but in my case the login screen has lower resolution and everything is larger than normal. All results I found about this are outdated, would also want to know how to easily fix the resolution of gdm3. – Sir_FZ May 06 '17 at 12:21

3 Answers3

9

I figured this one out! I have an Asus Q534UX with a 4k display. I noticed that my screen resolution was set to 4k, but I had my scaling set to 2 which makes the desktop usable while still in high resolution.

Once choice is to set the screen resolution to something other than 4k, but that isn't ideal especially when it's not your displays native resolution.

The answer is to do as you've said, copy the monitor.xml file to /var/lib/gdm3/.config, i.e.

sudo cp ~/.config/monitors.xml /var/lib/gdm3/.config/

Next, edit it so you change the resolution to something more reasonable in the login screen. I changed mine to 2560x1440 but that may be still a bit high. It is MUCH better.

You're only in the login screen for a bit, then when the desktop comes up the resolution and scaling goes to normal.

Save your edits and reboot to see the changes.

Sun Bear
  • 2,302
  • Set it to 1280x720 and 800x600 but it still doesn't work. It doesn't scale the UI just the resolution. Pastebin – Ubuntuthrow May 13 '17 at 08:18
  • This solution allows a Ubuntu 20.04 user to change the resolution of their Ubuntu 20.04 login screen. I write this because most new user do not know gdm3 powers the Ubuntu 20.04 login screen. I tried this solution and it works. – Sun Bear Apr 28 '21 at 20:53
  • After copying monitors.xml to /var/lib/gdm3/.config/, you need to run "sudo dpkg-reconfigure gdm3" – gkso Aug 05 '21 at 05:39
3

For Ubuntu 20.04, not only did I have to create a copy of the monitors.xml file as described in other answers, but I also had to disable Wayland at the login screen. To do this, I ran sudo nano /etc/gdm3/custom.conf, and then uncommented the line WaylandEnable=false. This forces gdm3 to use Xorg at the login screen. Restarting gdm3 with sudo systemctl restart gdm3 (which also killed my current login session) brought me back to the login screen with the expected monitor resolution.

maff1989
  • 216
  • 1
  • 4
  • This was it. In VirtualBox running Ubuntu 20.04, the login screen resolution just wouldn't change at all. WaylandEnable=false is what did the trick. – Mendhak Nov 13 '21 at 23:14
1

It worked also for me.

sudo cp ~/.config/monitors.xml /var/lib/gdm3/.config/

To generate ~/.config/monitors.xml I had to attache an external monitor to laptop. Then boot up, and when the login screen was shown I closed the lid. Then the login screen moved to the external monitor and I could login. Then run 'Settings', open the lid again and adjust the display on the internal monitor. Then the ~/.config/monitors.xml is created and can be copied.

Mind the "s" at the end of "monitors"!

hschou
  • 121
  • 4
    Is this solution Ubuntu 17 specific? I tried in Ubuntu 20.04 without success :( – Carlos Garcia-Vaso Oct 15 '20 at 13:36
  • 3
    What @JoseCarlosM.Garcia-Vaso says is correct, copying monitors.xml from user home to /var/lib/ folder does not resolve the problem in Ubuntu 20.04. It works in Ubuntu 18.04. though. – OpenITeX Dec 14 '20 at 02:17