8

I don't understand why this important and many users concerned bug (easy to solve) exists since so many years and all the discussions refer to mark something as duplicate and outdated. This bug https://gitlab.gnome.org/GNOME/gdm/-/issues/372 still exists in my fresh installation of ubuntu desktop 20.04 from yesterday. My tv is the primary screen, notebook via hdmi is open for powerbutton. Login screen appears unreadable for me on the build in notebook screen.

1

2 Answers 2

11

I have fixed the problem with these line of code:

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

It only works if the desired monitor has been marked as primary first.

3
  • Note: A reboot after may be required for it to take effect
    – jjcf89
    Nov 10, 2022 at 16:51
  • 1
    Hello from the future, currently using latest ubuntu 23.04. I tried this but it only works when you suspend. I also tried this with 22.04 as well as 22.10 both times same results. Do you know of anything else we can try to have monitor work after a reboot or power off?
    – Blah blah
    Apr 25, 2023 at 20:36
  • @Blahblah, did you "chown gdm:gdm ~gdm/.config/monitors.xml" like shown in the comment above? It works for me on 23.04. Btw I did not enable Xorg for gdm by disabling Wayland in /etc/gdm3/custom.conf.
    – Denis
    Jun 3, 2023 at 10:37
4

I had to do some additional steps:

If you haven't done it yet, go to Settings → Devices → Displays and set your primary monitor. Save your settings.

Open a terminal and run the following:

sudo cp ~/.config/monitors.xml ~gdm/.config/monitors.xml
sudo chown gdm:gdm ~gdm/.config/monitors.xml
sudoedit /etc/gdm3/custom.conf

In the file uncomment WaylandEnable=false, and save.

5
  • I've those settings already, and I have the same problem :( ubuntu 20.04 . I have three monitors (just in case is relevant).
    – titusfx
    Sep 4, 2021 at 7:37
  • The two first commands can be merged into one with: sudo install -m 0664 -o gdm -g gdm ~/.config/monitors.xml ~gdm/.config/monitors.xml Feb 24, 2022 at 8:48
  • It's neither working for me. Also on ubuntu 20.04LTS
    – Celdor
    Jun 7, 2022 at 9:20
  • Hello from the future, currently using latest ubuntu 23.04. I tried this but it only works when you suspend. I also tried this with 22.04 as well as 22.10 both times same results. Do you know of anything else we can try to have monitor work after a reboot or power off?
    – Blah blah
    Apr 25, 2023 at 20:25
  • @Blahblah I did it right now, and at least for me, it worked, I'm using ubuntu 22.04, I didn't disabled Wayland, have you checked if the <primary> tag is set in the right display? May 7, 2023 at 19:23

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .