Do vertical align for multiple display in kubuntu
I gather information and detail from google. The first thing i did is about
~/.kde/share/config/krandrrc
[Display]
ApplyOnStartup=true
StartupCommands=xrandr --output LVDS --pos 0x1080 --mode 1920x1080 --refresh 60.0147\nxrandr --output CRT1 --pos 0x0 --mode 1920x1080 --refresh 60\nxrandr --output CRT1 --primary
[Screen_0]
OutputsUnified=false
UnifiedRect=0,0,0,0
UnifiedRotation=1
[Screen_0_Output_CRT1]
Active=true
Rect=0,0,1920,1080
RefreshRate=60
Rotation=1
[Screen_0_Output_LVDS]
Active=true
Rect=0,1080,1920,1080
RefreshRate=60.0146789550781
Rotation=1
then I found more that I must have script when start up that should be in
/etc/X11/1920x2.sh
mine is (copy from ~/.kde/share/config/krandrrc
xrandr --output LVDS --pos 0x1080 --mode 1920x1080 --refresh 60.0147
xrandr --output CRT1 --pos 0x0 --mode 1920x1080 --refresh 60
xrandr --output CRT1 --primary
and the last is /etc/X11/xorg.conf
mine is
Section "Monitor"
Identifier "0-LVDS"
Option "VendorName" "ATI Proprietary Driver"
Option "ModelName" "Generic Autodetecting Monitor"
Option "DPMS" "true"
Option "PreferredMode" "1920x1080"
Option "TargetRefresh" "60"
# Option "Position" "1920 0"
Option "Position" "0 1080"
Option "Rotate" "normal"
Option "Disable" "false"
EndSection
Section "Monitor"
Identifier "0-CRT1"
Option "VendorName" "ATI Proprietary Driver"
Option "ModelName" "Generic Autodetecting Monitor"
Option "DPMS" "true"
Option "PreferredMode" "1920x1080"
Option "TargetRefresh" "60"
Option "Position" "0 0"
Option "Rotate" "normal"
Option "Disable" "false"
EndSection
Section "Device"
Identifier "amdcccle-Device[2]-0"
Driver "fglrx"
Option "Monitor-LVDS" "0-LVDS"
Option "Monitor-CRT1" "0-CRT1"
BusID "PCI:2:0:0"
EndSection
Section "Device"
Identifier "amdcccle-Device[2]-1"
Driver "fglrx"
Option "Monitor-CRT1" "0-CRT1"
BusID "PCI:2:0:0"
Screen 1
EndSection
Section "Screen"
Identifier "Default Screen"
DefaultDepth 24
EndSection
Section "Screen"
Identifier "amdcccle-Screen[2]-0"
Device "amdcccle-Device[2]-0"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
# Virtual 3840 1920
Virtual 1920 2160
Depth 24
EndSubSection
EndSection
~/.kde/share/config/krandrrc
[Display]
ApplyOnStartup=true
StartupCommands=xrandr --output LVDS --pos 0x1080 --mode 1920x1080 --refresh 60.0147\nxrandr --output CRT1 --pos 0x0 --mode 1920x1080 --refresh 60\nxrandr --output CRT1 --primary
[Screen_0]
OutputsUnified=false
UnifiedRect=0,0,0,0
UnifiedRotation=1
[Screen_0_Output_CRT1]
Active=true
Rect=0,0,1920,1080
RefreshRate=60
Rotation=1
[Screen_0_Output_LVDS]
Active=true
Rect=0,1080,1920,1080
RefreshRate=60.0146789550781
Rotation=1
then I found more that I must have script when start up that should be in
/etc/X11/1920x2.sh
mine is (copy from ~/.kde/share/config/krandrrc
xrandr --output LVDS --pos 0x1080 --mode 1920x1080 --refresh 60.0147
xrandr --output CRT1 --pos 0x0 --mode 1920x1080 --refresh 60
xrandr --output CRT1 --primary
and the last is /etc/X11/xorg.conf
mine is
Section "Monitor"
Identifier "0-LVDS"
Option "VendorName" "ATI Proprietary Driver"
Option "ModelName" "Generic Autodetecting Monitor"
Option "DPMS" "true"
Option "PreferredMode" "1920x1080"
Option "TargetRefresh" "60"
# Option "Position" "1920 0"
Option "Position" "0 1080"
Option "Rotate" "normal"
Option "Disable" "false"
EndSection
Section "Monitor"
Identifier "0-CRT1"
Option "VendorName" "ATI Proprietary Driver"
Option "ModelName" "Generic Autodetecting Monitor"
Option "DPMS" "true"
Option "PreferredMode" "1920x1080"
Option "TargetRefresh" "60"
Option "Position" "0 0"
Option "Rotate" "normal"
Option "Disable" "false"
EndSection
Section "Device"
Identifier "amdcccle-Device[2]-0"
Driver "fglrx"
Option "Monitor-LVDS" "0-LVDS"
Option "Monitor-CRT1" "0-CRT1"
BusID "PCI:2:0:0"
EndSection
Section "Device"
Identifier "amdcccle-Device[2]-1"
Driver "fglrx"
Option "Monitor-CRT1" "0-CRT1"
BusID "PCI:2:0:0"
Screen 1
EndSection
Section "Screen"
Identifier "Default Screen"
DefaultDepth 24
EndSection
Section "Screen"
Identifier "amdcccle-Screen[2]-0"
Device "amdcccle-Device[2]-0"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
# Virtual 3840 1920
Virtual 1920 2160
Depth 24
EndSubSection
EndSection
Comments
Post a Comment