When i'm connecting an external Monitor to my notebook (specs below), whether with VGA or Displayport, I always have to configure the screen resolution and display position. At the moment i'm doing this with an GUI utility for XRandR calld arandr. Another issue is, that always the lowest possible display resolution is used, instead of the highest, when connecting a monitor.
Is it possible to automatically recall a previously made configuration every time I connect a specific monitor? For example, when I connect the monitor at work, I want to the displays setup side-by-side, at home instead, I use a vertical layout.
This problem exists with both of my laptops. They are running Fedora 18 and Xubuntu 13.04, all with XFCE as Window Manager. They are the same devices, Lenovo X220, with the integrated Intel HD3000 graphics.
I tried to make a per monitor setting, but unfortunately fedora don't uses a xorg.conf file , instead it tries to do an automatic configuration every time X is started (see create xorg.conf)
Creation of xorg.conf file with
Xorg :1 -configure, like described in the fedora wiki, fails with
Number of created screens does not match number of detected devices.
I've made a little workaround that solves the problem, but only for displays connected at the displayport. Arandr can save the display setup as shell script, so i used the saved settings and putted them into the
cat ~/.screenlayout/<name_of_your_settingsfile>.sh > ~/.xinitrc
chmod u+x ~/.xinitrc
That should do the trick, if someone has a better way to do it, please let me know.