A Brief But Accurate Documentation, BSD Linux And Programming

 Docker

Wednesday, April 19, 2023

GDM Gnome automatically set the screen with the last use of multiple Monitors configurations

 Yes as the titled implied, I was just wondering why the GDM or Gnome Display Manager is not automatically show on the last of Desktop Environment configuration with Multiple Monitors.
I found it on Arch Wiki and it just works on Fedora too.

To test it just run this command in the terminal
    sudo cp ~/.config/monitors.xml /var/lib/gdm/.config/

you can log that out to see the GDM is synchronously with your last configuration of the DE.

To make it re-configure by default on Start up we can achieve it through so called "drop-in file"
    sudo systemctl edit gdm --drop-in=gdm.service

Add the following line make sure that you change the home user to yours may example is "ivan" past in it
    

/etc/systemd/system/gdm.service.d/override.conf
[Service]
ExecStartPre=/bin/cp /home/ivan/.config/monitors.xml /var/lib/gdm/.config/monitors.xml


Save it then you can reboot to see the if it is working just fine.

I tested on my laptop which has dual Graphics and using Wayland session by default.
All the made had changes were stored every settings like  (resolution, refresh rate, orientation, scaling, primary and monitor position on the left or right)

Source here
    
    

    







No comments:

Post a Comment

Back to top