Bernaerts #, V1.1 - Wait 5 seconds for X to fully initialize #, V1.2 - K. # See # for instructions # Revision history : #, V1.0 - Creation by N. # In case of multiple definitions in monitor.xml only first one is used. #!/bin/bash # - # Get monitors configuration from monitor.xml and apply it for current user session. Reboot your machine and now your configuration should persist! Use the System - Startup Applications tool to add update-monitor-position so that it runs when you login. Sudo wget -O /usr/local/sbin/update-monitor-position /assets/files/update-monitor-positionĬhmod +x /usr/local/sbin/update-monitor-position Install the libxml2-utils package if not already installed.Ĭopy and paste the below script (or download it using wget) to a directory on your path and make it executable. Open ~/.config/monitors.xml in an editor and make sure the display you want to be primary has a “yes” for the primary flag. Now go to Displays, and change the positions to how you would like them. Setup a clean configuration, as you want it by deleting your old monitors.xml file and starting fresh with a new one, created using the Gnome display settings tool. Here are instructions, summarized from N. ![]() For me, the display manager was not only reversing the left/right positions of the monitors, but was also setting the wrong one to be primary. I have made a minor extension to this script that also handles correcting the primary monitor flag. Bernaerts wrote an excellent post on how to fix this, complete with a dynamic script that fixes your monitor positions based on your monitors.xml. Upon switching to Gnome 3/Shell I found that my two monitor positions were not persisting after reboot, or even after suspending.
0 Comments
Leave a Reply. |