Set default display for GDM

Hello everyone, I've got a question not entirely related to Bazzite I assume, but I am using it so I figured i'd start here first. I have a triple monitor setup, two are used all the time, and one is a TV used sometimes for gaming/media. I've got my default display configured in GNOME for my regular desktop usage, but on a cold boot GDM picks the TV I don't always use to show the login screen. How can I select a specific display to show the login screen? Thanks.
4 Replies
Lixo
Lixo2mo ago
Basically this https://discourse.gnome.org/t/how-do-you-configure-your-displays-for-gdm/13762 Move your ~/.config/monitors.xml file elsewhere or rename it (to get rid of cruft and old monitors info). Then in Settings > Displays configure your monitors as you want. Check a new ~/.config/monitors.xml is created. Copy the new file to the gdm user with correct permissions:
sudo cp ~/.config/monitors.xml ~gdm/.config
sudo chown gdm: ~gdm/.config/monitors.xml
sudo cp ~/.config/monitors.xml ~gdm/.config
sudo chown gdm: ~gdm/.config/monitors.xml
GNOME Discourse
How do you configure your displays for GDM?
I’d like to change which of my displays are active and primary during the login screen. I found this discussion elsewhere the recommended solution didn’t work for me.
Lixo
Lixo2mo ago
Configure your displays the way you want it to look on the login screen, then execute the commands Also just make sure the same experimental features that your user has enabled are also enabled in the gdm user in the terminal with your normal user, copy the result of this gsettings get org.gnome.mutter experimental-features then enter the gdm user with machinectl shell gdm@ /bin/bash and run the same get command to check if it's equal gsettings get org.gnome.mutter experimental-features if not then run (in my case I have these 3 features enabled) gsettings set org.gnome.mutter experimental-features "['variable-refresh-rate', 'scale-monitor-framebuffer', 'xwayland-native-scaling']"
Lixo
Lixo2mo ago
Or the easy way: Install this https://flathub.org/en/apps/io.github.realmazharhussain.GdmSettings Go to Display and click Apply
Install GDM Settings on Linux | Flathub
Customize your login screen
Luke
LukeOP2mo ago
I used this method and it worked just fine. Had to check the all system files and all user files in flatseal. Thanks so much for your help

Did you find this page helpful?