Hi, HWDude. Your problem is KDE can't remember the setting. Try to do the following (which works for me):
1. Configure the KDE to run multiple monitor (from your description, you already know how to do this):
-Configure Your Desktop >Hardware > Display and Monitor > Set your preferences (position, primary output, etc ). In your case: set DVI-I-2 as primary output, set DVI-I-3 monitor's position to be "left of" DVI-I-2.
- hit Apply and Save as default.
2. Make KDE remember your setting because on reboot KDE will not remember your setting ( I'm not sure if it's KDE fault or PCLOS):
- First, look for information in a file named krandrcc located in ~/.kde4/share/config . You don't need all the information. Focus on information about xrandr under [Display] . For example (my config):
[Display]
ApplyOnStartup=true
StartupCommands=xrandr --output LVDS1 --pos 1366x0 --mode 1280x800 --refresh 60.0038\nxrandr --output VGA1 --pos 0x0 --mode 1366x768 --refresh 59.7895\nxrandr --output LVDS1 --primary
- Copy thatxrandr information to a new file. Replace \n with newlines . For example (my config).
xrandr --output LVDS1 --pos 1366x0 --mode 1280x800 --refresh 60.0038
xrandr --output VGA1 --pos 0x0 --mode 1366x768 --refresh 59.7895
xrandr --output LVDS1 --primary
again don't forget to replace \n with newlines.
- Save the file.
- Set the file to be executable
- Right click to that file > Properties > Permission tab > check the 'Is executable'
- Make that file to be executed at boot process
Configure Your Desktop > System Administration > Startup and Shutdown > Autostart > Add Script > point to the script
- Reboot
It might happen that the wallpaper is swapped out between your two monitor after reboot ( if you set different wall for your 2 monitor). Try to change position the line with --primary . Something like:
xrandr --output LVDS1 --primary
xrandr --output LVDS1 --pos 1366x0 --mode 1280x800 --refresh 60.0038
xrandr --output VGA1 --pos 0x0 --mode 1366x768 --refresh 59.7895
or
xrandr --output LVDS1 --pos 1366x0 --mode 1280x800 --refresh 60.0038
xrandr --output LVDS1 --primary
xrandr --output VGA1 --pos 0x0 --mode 1366x768 --refresh 59.7895
Well, its close but not there yet....
After the settings are set correctly and saved, the krandrrc file has the following info in it (I edited out the /n's and added newlines here - it's all on 1 line in the file)
xrandr --output DVI-I-2 --pos 1920x0 --mode 1920x1080 --refresh 60
xrandr --output DVI-I-3 --pos 0x0 --mode 1920x1080 --refresh 60
xrandr --output DVI-I-2 --primary
I then saved it as SetScrnPos.sh and added it to the script at startup (NOT as a symlink)
Rebooting the system yields the normal reversal, then about 1 sec after the 2 desktops show up they both go black, then
I get two screens identical to each other. Going into the CYD->HW->DAM->S&O it shows DVI-I-3 as a clone of DVI-I-2

If I now start a konsole window, go to the ~/.kde4/share/config directory, log in as root, and look at the krandrrc file it has
the correct configuration in it.

So, I tried to execute the script file:
>./SetScrnPos.sh
The screens both go black and everything comes up correctly.
Now the setting is set to run the script at startup, so I set it to run before KDE starts. Now when its in the bootup splash screen
the display goes black and when it comes back I now have both screens the same again (DVI-I-3 is cloned).
Going to the ~/.kde4/share/config directory the file krandrrc is still correct.
Running the script as root fixes the problem as before.
my entire krandrrc file looks like this:
[Display]
ApplyOnStartup=true
StartupCommands=xrandr --output DVI-I-2 --pos 1920x0 --mode 1920x1080 --refresh 60\nxrandr --output DVI-I-3 --pos 0x0 --mode 1920x1080 --refresh 60\nxrandr --output DVI-I-2 --primary
[Screen_0]
OutputsUnified=false
UnifiedRect=0,0,0,0
UnifiedRotation=1
[Screen_0_Output_DVI-I-2]
Active=true
Rect=1920,0,1920,1080
RefreshRate=60
Rotation=1
[Screen_0_Output_DVI-I-3]
Active=true
Rect=0,0,1920,1080
RefreshRate=60
Rotation=1
[Screen_0_Output_default]
Active=true
Rect=0,0,1920,1080
RefreshRate=60
Rotation=1
And my script file (which runs at KDE startup) looks like:
xrandr --output DVI-I-2 --pos 1920x0 --mode 1920x1080 --refresh 60
xrandr --output DVI-I-3 --pos 0x0 --mode 1920x1080 --refresh 60
xrandr --output DVI-I-2 --primary
I've tried moving the "xrandr --output DVI-I-2 --primary" command to the first line of the script, the second line of the script and the last line (as it's shown here). Still get the same results.
This is sooooooo close to fixing the problem I'm most likely missing something simple...
What am I missing or doing in the wrong sequence?
HWDude