So this is a problem for me since I have two monitors set up for my Ubuntu Desktop. I'm running Ubuntu 12.04.
Ok, so first when I installed Ubuntu I had this problem with enabling the second monitor as at the same time not mirroring the two monitors. Ubuntu did not now how to set the required resolution. I searched for an answer and got one fixing my problem. I simply edited my xorg.conf file and added a virtual size for my desktop, now with the virtuyal resolution of 3840 1080. Log out and back in and it works and I can now use both of my monitors.
But, then after a few reboots, the secondary screen started to act weird. Like for example, when I drag a window over to that screen, the contours sticks and it looks really strange (a little like this if you know what I mean). So to get the secondary screen back to normal I have to go to the top right "start button" -> Displays... -> Select secondary monitor -> Turn it of -> Apply -> Keep Configuration -> Turn it on -> Apply -> Keep Configuration.
As you can imagine this is a little annoying and therefor it would be awsome if I could make a script that does this at every startup. A few commands for doing the same thing but in terminal would be all I need.
Hope you guys understand what I want to accomplish.
I have a Radeon HD7870 video card, so I use the drivers from ATI/AMD. I have catalyst center installed version 8.96.7-120312a-135598C-ATI. My primary screen, wich works super is connected through DP and my secondary screen through VGA. Both 1920x1080
Thanks in advance!