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.
2 Answers
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.
-
-
1Hello 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? Apr 25 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.– DenisJun 3 at 10:37
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.
-
I've those settings already, and I have the same problem :( ubuntu 20.04 . I have three monitors (just in case is relevant).– titusfxSep 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 -
-
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? Apr 25 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 at 19:23