Have a read of this thread. Essentially, its only a matter of including a suitable xrandr line in ~/.xprofile (or a script located in .kde4/Autostart/).
You may prefer to invoke it manually with a simple executable script (launched via a 1-click desktop icon).
But when I reboot I have to set them up again because the settings don’t stick/endure through a reboot.
The GUI configurator that I use is at Menu –> Config Desktop –> General –> Display.
AFAIU, this has been corrected (finally) in KDE4.6
And I hope you had a good one too in KiwiLand.
That worked for me, a script that sets the laptop screen in auto mode, then places the HDMI scree to the left of the lappy screen, like so:
Well that had two drawbacks:
1: the lappy screen becomes misconfigured if the HDMI monitor is not connected at boot time
2: the screens are different sizes and I like the bottom of the screens to be aligned rather than the tops
So this fixed it:
For readers with laptops, that makes the lappy screen start in auto mode and places the extra screen with the large area 1920 pixels to the left of it and shifts the lappy alignment by 180 pixels (relative coordinates) so the bottoms of the screens are aligned.
The benefit of starting the lappy screen first then the attached screen second is that if you don’t plug the second screen in, its absence wont screw with the lappy screen because the command aborts right after the lappy screen is set up.
Yes, screens of differing display resolutions, and those not permanently connected, create additional configuration issues to think about. I’m sure this will helpful to others with similar setups. (Maybe next Christmas, I will get a nice new secondary monitor)
Now that it’s Boxing day, I have a compulsion to buy another screen to match my big screen and also a new desktop computer with 64 bit CPU, 8Gb RAM and a top-rate Nvidia card with twin outputs, or maybe twin cards, all in a box with good ventilation.
And since I have a netbook as well as my 17" laptop, I would sell the laptop.
Oh well, reality intrudes and I’ll probably do naught because I spent too much over Xmas!
In your home directory you can also copy the file ‘.xinitrc.template’ to ‘.xinitrc’ and then open ‘.xinitrc’ in your favorite editor and add your ‘xrandr…’ configuration command(s) after the line:
‘# Add your own lines here…’.
BTW thanks for the configuration line, I was so lost until I saw this thread.
Was quick and easy to setup that script.
I placed mine in ~/.kde4/Autostart and it works like a charm.
I have a second scenario,
I have a docking station… when I boot my laptop up when connected to it the laptop display is turned off ( as the lid is closed ),
I have VGA1 and HDMI1
I can create the script for this and it works…
But if i have that script running, my laptop display does not turn on when I power on my laptop without being hooked to the docking station…
Any Suggestions as to how I could have the system “detect” if its plugged into the docking station and execute the appropriate script at that time?
Now, instead of using the xorg.conf approach, edit the script so that 1 of 2 xrandr scripts is renamed at boot instead. Then your Autostart script could call the one that got renamed, to configure your attached display device(s). Hope that makes sense. There is more than one way to do this, so there may more elegant solutions available if you search…
Edit: Maybe this Ubuntu-based solution will be useful to you