This is a folow-up to a previous question (Saving monitor settings?), where we learned that the configuration is saved in file ~/.config/monitors.xml
.
My problem is that my configuration is usually, but not always restored. I.e., quite often I have to call the display capplet to reconfigure the 3 monitors when I come to work. This is tedious and I want to avoid that.
I can save the monitors.xml
file so that even when ubuntu overwrites it I can restore it. However, the question is: how do I tell ubuntu to read the file? I don't want to logout or reboot.
PS. System76 Gazelle Pro, Ubuntu 15.10, Unity.
PPS. The configuration is:
<configuration>
<clone>no</clone>
<output name="eDP1">
<vendor>CMN</vendor>
<product>0x15bb</product>
<serial>0x00000000</serial>
<width>1920</width>
<height>1080</height>
<rate>60</rate>
<x>1080</x>
<y>0</y>
<rotation>normal</rotation>
<reflect_x>no</reflect_x>
<reflect_y>no</reflect_y>
<primary>yes</primary>
</output>
<output name="HDMI1">
<vendor>DEL</vendor>
<product>0xa07a</product>
<serial>0x354c3553</serial>
<width>1920</width>
<height>1200</height>
<rate>60</rate>
<x>3000</x>
<y>0</y>
<rotation>left</rotation>
<reflect_x>no</reflect_x>
<reflect_y>no</reflect_y>
<primary>no</primary>
</output>
<output name="VGA1">
<vendor>DEL</vendor>
<product>0x4071</product>
<serial>0x414b314c</serial>
<width>1920</width>
<height>1080</height>
<rate>60</rate>
<x>0</x>
<y>0</y>
<rotation>left</rotation>
<reflect_x>no</reflect_x>
<reflect_y>no</reflect_y>
<primary>no</primary>
</output>
<output name="VIRTUAL1">
</output>
</configuration>
PPPS. xrandr output:
$ xrandr
Screen 0: minimum 8 x 8, current 4200 x 1920, maximum 32767 x 32767
eDP1 connected primary 1920x1080+1080+0 (normal left inverted right x axis y axis) 344mm x 194mm
1920x1080 60.01*+ 59.93
1680x1050 59.95 59.88
1600x1024 60.17
1400x1050 59.98
1600x900 60.00
1280x1024 60.02
1440x900 59.89
1280x960 60.00
1368x768 60.00
1360x768 59.80 59.96
1152x864 60.00
1280x720 60.00
1024x768 60.00
1024x576 60.00
960x540 60.00
800x600 60.32 56.25
864x486 60.00
640x480 59.94
720x405 60.00
640x360 60.00
HDMI1 connected 1200x1920+3000+0 left (normal left inverted right x axis y axis) 518mm x 324mm
1920x1200 59.95*+
1920x1080 60.00
1600x1200 60.00
1680x1050 59.88
1280x1024 60.02
1280x960 60.00
1024x768 60.00
800x600 60.32
640x480 60.00
720x400 70.08
VGA1 connected 1080x1920+0+0 left (normal left inverted right x axis y axis) 510mm x 287mm
1920x1080 60.00*+
1280x1024 75.02 60.02
1152x864 75.00
1024x768 75.08 60.00
800x600 75.00 60.32
640x480 75.00 60.00
720x400 70.08
VIRTUAL1 disconnected (normal left inverted right x axis y axis)
xrandr
, and also what you have changed from the default?monitors.xml
. Shouldn't it be enough?xrandr
, which reads more comfortably IMO.