11.1 x64 fglrx ati KDE 4.3 Dual-Head desktop issue

Earlier in the year I was able to get 4 heads working on this machine. Since then I have stolen hardware for another machine and am again configuring multi-display on this computer. This time only dual-head.

I was running fglrx 8.602 and KDE 4.1.3. I updated KDE to 4.2.4 and was getting one X display(grey) and one desktop. Since several updates have been added to the machine I jumped to 9.7 and also found that KDE 4.2 had an multi-desktop bug that was supposedly fixed in KDE 4.3.

My current issue is I just got the desktop to display on both monitors (single card) again. However, When I try to drag something to the secondary display the window pops back to the main display. When I open a window (konsole or something) on the second display directly all is well until I try to resize or move it then soon as I touch the title bar the window pops back over to the master display.

Has anyone else had a similar issue? At this point I am not sure if it is KDE or ATI.

Thanks for your help!

My Current Config

openSuSE 11.1 x64
KDE 4.3 (factory)
ati fglrx cat 9.7 (hard way)
kernel: 2.6.27.7-9-default #1 SMP 2008-12-04 18:10:04 +0100 x86_64 x86_64 x86_64 GNU/Linux (have not upgraded due to issues with newer kernel on anther installation)

xorg.conf

# /.../
Section "ServerLayout"
        Identifier     "Layout[all]"
        Screen      0  "aticonfig-Screen[0]-0" 0 0
        Screen         "aticonfig-Screen[0]-1" RightOf "aticonfig-Screen[0]-0"
        InputDevice    "Keyboard[0]" "CoreKeyboard"
        InputDevice    "Mouse[1]" "CorePointer"
        InputDevice    "Mouse[3]" "SendCoreEvents"
        Option      "Clone" "off"
        Option      "Xinerama" "on"
EndSection

Section "Files"
        InputDevices   "/dev/gpmdata"
        InputDevices   "/dev/input/mice"
       FontPath     "/usr/share/fonts/misc:unscaled"
<snip> post too long for fourm
        FontPath     "/opt/kde3/share/fonts"
EndSection

Section "Module"
        Load  "dri"
        Load  "dbe"
Load  "freetype"
        Load  "extmod"
        Load  "glx"
EndSection

Section "ServerFlags"
        Option      "AllowMouseOpenFail" "on"
        Option      "ZapWarning" "on"
        Option      "Xinerama" "on"
EndSection

Section "InputDevice"
        Identifier  "Keyboard[0]"
        Driver      "kbd"
        Option      "Protocol" "Standard"
        Option      "XkbLayout" "us"
        Option      "XkbModel" "microsoftpro"
        Option      "XkbRules" "xfree86"
EndSection

Section "InputDevice"
        Identifier  "Mouse[1]"
        Driver      "evdev"
        Option      "InputFashion" "Mouse"
        Option      "Name" "Logitech Media Play Mouse"
        Option      "Pass" "3"
        Option      "Vendor" "Sysp"
        Option      "evBits" "+1-2"
        Option      "keyBits" "~272-287"
        Option      "relBits" "~0-2 ~6 ~8"
EndSection

Section "InputDevice"
        Identifier  "Mouse[3]"
        Driver      "mouse"        Option      "Buttons" "5"
        Option      "Device" "/dev/input/mice"
        Option      "Name" "ImPS/2 Generic Wheel Mouse"
        Option      "Protocol" "explorerps/2"
        Option      "Vendor" "Sysp"
        Option      "ZAxisMapping" "4 5"
EndSection

Section "Modes"
        Identifier     "Modes[0]"
        ModeLine     "1900x1200" 153.8 1904 2024 2224 2544 1200 1201 1204 1234
        ModeLine     "1896x1200" 121.0 1896 1944 1976 2056 1200 1203 1213 1228 +hsync -vsync
        ModeLine     "1920x1080" 154.0 1920 2032 2240 2560 1080 1081 1084 1114
        ModeLine     "1920x1080" 122.0 1920 1968 2000 2080 1080 1083 1088 1107 +hsync -vsync
        ModeLine     "1600x1200" 152.7 1600 1704 1880 2160 1200 1201 1204 1240
        ModeLine     "1600x1200" 121.2 1600 1648 1680 1760 1200 1203 1207 1232 +hsync -vsync
        ModeLine     "1680x1050" 152.2 1680 1784 1968 2256 1050 1051 1054 1088
        ModeLine     "1680x1050" 121.2 1680 1728 1760 1840 1050 1053 1059 1081 +hsync -vsync
        ModeLine     "1600x1024" 154.0 1600 1704 1880 2160 1024 1025 1028 1064
        ModeLine     "1600x1024" 122.8 1600 1648 1680 1760 1024 1027 1037 1057 +hsync -vsync
        ModeLine     "1600x1000" 152.8 1600 1704 1880 2160 1000 1001 1004 1040
        ModeLine     "1600x1000" 121.5 1600 1648 1680 1760 1000 1003 1009 1032 +hsync -vsync
        ModeLine     "1400x1050" 151.6 1400 1496 1648 1896 1050 1051 1054 1095
        ModeLine     "1400x1050" 121.8 1400 1448 1480 1560 1050 1053 1057 1086 +hsync -vsync
        ModeLine     "1600x900" 152.3 1600 1704 1880 2160 900 901 904 940
        ModeLine     "1600x900" 140.6 1600 1704 1872 2144 900 901 904 937
        ModeLine     "1600x900" 129.2 1600 1696 1864 2128 900 901 904 934
        ModeLine     "1600x900" 121.2 1600 1648 1680 1760 900 903 908 932 +hsync -vsync
        ModeLine     "1600x900" 119.0 1600 1696 1864 2128 900 901 904 932

<snip>

        ModeLine     "1920x1200" 154.0 1920 1968 2000 2080 1200 1203 1209 1235
EndSection

Section "Monitor"
        Identifier   "aticonfig-Monitor[0]-0"
        VendorName   "SAMSUNG"
        ModelName    "SYNCMASTER 245B/245BW/245BPlus (DIGITAL)"
        DisplaySize  518        324
        HorizSync    29.0 - 81.0
        VertRefresh  46.0 - 75.0
#       Option      "VendorName" "ATI Proprietary Driver"
#       Option      "ModelName" "Generic Autodetecting Monitor"
        Option      "DPMS" "true"
EndSection

Section "Monitor"
        Identifier   "aticonfig-Monitor[0]-1"
        VendorName   "SAMSUNG"
        ModelName    "SYNCMASTER 245B/245BW/245BPlus (DIGITAL)"
        DisplaySize  518        324
        HorizSync    29.0 - 81.0
        VertRefresh  46.0 - 75.0
#       Option      "VendorName" "ATI Proprietary Driver"
#       Option      "ModelName" "Generic Autodetecting Monitor"
        Option      "DPMS" "true"
EndSection

Section "Device"
        Identifier  "aticonfig-Device[0]-0"
        Driver      "fglrx"
        BusID       "PCI:6:0:0"
EndSection

Section "Device"
        Identifier  "aticonfig-Device[0]-1"
        Driver      "fglrx"
        BusID       "PCI:6:0:0"
        Screen      1
EndSection

Section "Screen"
        Identifier "Screen[0]"
        Device     "Device[0]"
        Monitor    "Monitor[0]"
        DefaultDepth     24
        SubSection "Display"
                Virtual   3840 1200
                Depth     15
                Modes    "1920x1200" "1900x1200" "1920x1080" "1600x1200" "1680x1050" "1600x10
24" "1600x1000" "1400x1050" "1600x900" "1280x1024" "1440x900" "1280x960" "1366x768" "1360x768
" "1280x800" "1152x864" "1280x768" "1280x720" "1024x768" "1280x600" "1024x600" "800x600" "768
x576" "640x480"
        EndSubSection
        SubSection "Display"
                Virtual   3840 1200
                Depth     16
                Modes    "1920x1200" "1900x1200" "1920x1080" "1600x1200" "1680x1050" "1600x10
24" "1600x1000" "1400x1050" "1600x900" "1280x1024" "1440x900" "1280x960" "1366x768" "1360x768
" "1280x800" "1152x864" "1280x768" "1280x720" "1024x768" "1280x600" "1024x600" "800x600" "768x576" "640x480"
        EndSubSection
        SubSection "Display"
                Virtual   3840 1200
                Depth     24
                Modes    "1920x1200" "1900x1200" "1920x1080" "1600x1200" "1680x1050" "1600x10
24" "1600x1000" "1400x1050" "1600x900" "1280x1024" "1440x900" "1280x960" "1366x768" "1360x768
" "1280x800" "1152x864" "1280x768" "1280x720" "1024x768" "1280x600" "1024x600" "800x600" "768
x576" "640x480"
        EndSubSection
        SubSection "Display"
                Virtual   3840 1200
                Depth     8
                Modes    "1920x1200" "1900x1200" "1920x1080" "1600x1200" "1680x1050" "1600x10
24" "1600x1000" "1400x1050" "1600x900" "1280x1024" "1440x900" "1280x960" "1366x768" "1360x768
" "1280x800" "1152x864" "1280x768" "1280x720" "1024x768" "1280x600" "1024x600" "800x600" "768
x576" "640x480"
        EndSubSection
EndSection

Section "Screen"
        Identifier "aticonfig-Screen[0]-0"
        Device     "aticonfig-Device[0]-0"
        Monitor    "aticonfig-Monitor[0]-0"
        DefaultDepth     24
        SubSection "Display"
                Virtual   3840 1200
                Depth     15
                Modes    "1920x1200" "1900x1200" "1920x1080" "1600x1200" "1680x1050" "1600x10
24" "1600x1000" "1400x1050" "1600x900" "1280x1024" "1440x900" "1280x960" "1366x768" "1360x768
" "1280x800" "1152x864" "1280x768" "1280x720" "1024x768" "1280x600" "1024x600" "800x600" "768
x576" "640x480"
        EndSubSection
        SubSection "Display"
                Virtual   3840 1200
                Depth     16
                Modes    "1920x1200" "1900x1200" "1920x1080" "1600x1200" "1680x1050" "1600x10
24" "1600x1000" "1400x1050" "1600x900" "1280x1024" "1440x900" "1280x960" "1366x768" "1360x768
" "1280x800" "1152x864" "1280x768" "1280x720" "1024x768" "1280x600" "1024x600" "800x600" "768
x576" "640x480"
        EndSubSection
        SubSection "Display"
                Virtual   3840 1200
                Depth     24
                Modes    "1920x1200" "1900x1200" "1920x1080" "1600x1200" "1680x1050" "1600x10
24" "1600x1000" "1400x1050" "1600x900" "1280x1024" "1440x900" "1280x960" "1366x768" "1360x768
" "1280x800" "1152x864" "1280x768" "1280x720" "1024x768" "1280x600" "1024x600" "800x600" "768
x576" "640x480"
        EndSubSection
EndSection

Section "Screen"
        Identifier "aticonfig-Screen[0]-1"
        Device     "aticonfig-Device[0]-1"
        Monitor    "aticonfig-Monitor[0]-1"
        DefaultDepth     24
        SubSection "Display"
<snip> (text too long for forum)

Section "DRI"
        Group        "video"
        Mode         0660
EndSection

I have hacked the /etc/ati/amdpcsdb according to my post ATI multi-head Issue - openSUSE Forums and the one reference in it about hacking the amd database [ubuntu] two ati graphic cards HD 3650 with fglrx driver doesn’t work together [Archive] - Ubuntu Forums](http://ubuntuforums.org/archive/index.php/t-920898.html)

After much searching, reviewing, and testing I discovered the issue.

For some reason the default aticonfig causes the screens to be dealt with individually. I have been unable in KDE 4.2x and 4.3x to get amdcccle/Sax2 to allow (display) the BigDesk function.

My updated ServerLayout portion of the xorg.conf is as follows:

Section “ServerLayout”
Identifier “Layout[all]”
Screen 0 “aticonfig-Screen[0]-0” 0 0
Screen “aticonfig-Screen[0]-1” 1920 0

Screen “aticonfig-Screen[0]-1” RightOf “aticonfig-Screen[0]-0”

    InputDevice    "Keyboard[0]" "CoreKeyboard"
    InputDevice    "Mouse[1]" "CorePointer"
    InputDevice    "Mouse[3]" "SendCoreEvents"
    Option      "Clone" "off"
    Option      "Xinerama" "on"

EndSection

Notice the change to the second screen starts at the screen resolution and not RightOf nor LeftOf; which is commented out.

I am SO close to getting this setup working… can you explain… other than that section you described… I need to add the second monitor in the monitor section, and turn on Xinerama in 1 more place?

the resolution is maxed out of my VGA and it’s cloning fine… but as soon as a turn on dual monitor in amdcccle it screws up the resolution… I cannot figure it out.


# /.../
# SaX generated X11 config file
# Created on: 2010-01-17T13:05:59-0800.
#
# Version: 8.1
# Contact: Marcus Schaefer <sax@suse.de>, 2005
# Contact: SaX-User list <https://lists.berlios.de/mailman/listinfo/sax-users>
#
# Automatically generated by [ISaX] (8.1)
# PLEASE DO NOT EDIT THIS FILE!
#

Section "ServerLayout"
	Identifier     "Layout[all]"
	Screen      0  "amdcccle-Screen[1]-0" 0 0
	InputDevice    "Keyboard[0]" "CoreKeyboard"
	InputDevice    "Mouse[1]" "CorePointer"
	Option	    "Clone" "off"
	Option	    "Xinerama" "off"
EndSection

Section "Files"
	InputDevices   "/dev/gpmdata"
	InputDevices   "/dev/input/mice"
	FontPath     "/usr/share/fonts/misc:unscaled"
	FontPath     "/usr/share/fonts/local"
	FontPath     "/usr/share/fonts/75dpi:unscaled"
	FontPath     "/usr/share/fonts/100dpi:unscaled"
	FontPath     "/usr/share/fonts/Type1"
	FontPath     "/usr/share/fonts/URW"
	FontPath     "/usr/share/fonts/Speedo"
	FontPath     "/usr/share/fonts/PEX"
	FontPath     "/usr/share/fonts/cyrillic"
	FontPath     "/usr/share/fonts/latin2/misc:unscaled"
	FontPath     "/usr/share/fonts/latin2/75dpi:unscaled"
	FontPath     "/usr/share/fonts/latin2/100dpi:unscaled"
	FontPath     "/usr/share/fonts/latin2/Type1"
	FontPath     "/usr/share/fonts/latin7/75dpi:unscaled"
	FontPath     "/usr/share/fonts/baekmuk:unscaled"
	FontPath     "/usr/share/fonts/japanese:unscaled"
	FontPath     "/usr/share/fonts/kwintv"
	FontPath     "/usr/share/fonts/truetype"
	FontPath     "/usr/share/fonts/uni:unscaled"
	FontPath     "/usr/share/fonts/CID"
	FontPath     "/usr/share/fonts/ucs/misc:unscaled"
	FontPath     "/usr/share/fonts/ucs/75dpi:unscaled"
	FontPath     "/usr/share/fonts/ucs/100dpi:unscaled"
	FontPath     "/usr/share/fonts/hellas/misc:unscaled"
	FontPath     "/usr/share/fonts/hellas/75dpi:unscaled"
	FontPath     "/usr/share/fonts/hellas/100dpi:unscaled"
	FontPath     "/usr/share/fonts/hellas/Type1"
	FontPath     "/usr/share/fonts/misc/sgi:unscaled"
	FontPath     "/usr/share/fonts/xtest"
	FontPath     "/opt/kde3/share/fonts"
EndSection

Section "Module"
	Load  "freetype"
	Load  "glx"
	Load  "dbe"
	Load  "extmod"
	Load  "dri"
EndSection

Section "ServerFlags"
	Option	    "AIGLX" "on"
	Option	    "AllowMouseOpenFail" "on"
	Option	    "IgnoreABI" "on"
	Option	    "ZapWarning" "on"
	Option	    "Xinerama" "off"
EndSection

Section "InputDevice"
	Identifier  "Keyboard[0]"
	Driver      "kbd"
	Option	    "Protocol" "Standard"
	Option	    "XkbLayout" "us"
	Option	    "XkbModel" "microsoftpro"
	Option	    "XkbRules" "xfree86"
EndSection

Section "InputDevice"
	Identifier  "Mouse[1]"
	Driver      "mouse"
	Option	    "Buttons" "7"
	Option	    "Device" "/dev/input/mice"
	Option	    "Name" "Chic Browser Mouse"
	Option	    "Protocol" "explorerps/2"
	Option	    "Vendor" "Sysp"
	Option	    "ZAxisMapping" "4 5"
EndSection

Section "Modes"
	Identifier     "Modes[0]"
EndSection

Section "Monitor"
	Identifier   "Monitor[0]"
	VendorName   "Unknown"
	ModelName    "Unknown"
	UseModes     "Modes[0]"
	DisplaySize  372	301
	HorizSync    30.0 - 81.0
	VertRefresh  56.0 - 75.0
	Option	    "CalcAlgorithm" "XServerPool"
	Option	    "DPMS"
	Option	    "PreferredMode" "1280x1024"
EndSection

Section "Monitor"
	Identifier   "amdcccle-Monitor[1]-0"
	Option	    "VendorName" "ATI Proprietary Driver"
	Option	    "ModelName" "Generic Autodetecting Monitor"
	Option	    "DPMS" "true"
EndSection

Section "Monitor"
	Identifier   "amdcccle-Monitor[1]-1"
	Option	    "VendorName" "ATI Proprietary Driver"
	Option	    "ModelName" "Generic Autodetecting Monitor"
	Option	    "DPMS" "true"
EndSection

Section "Device"
	Identifier  "Device[0]"
	Driver      "fglrx"
	VendorName  "ATI"
	BoardName   "RADEON X700 PRO (RV410 5E4B)"
	Option	    "SaXDualHead"
	Option	    "XAANoOffscreenPixmaps" "true"
	Option	    "Capabilities" "0x00000000"
	Option	    "SaXDualOrientation" "LeftOf"
	Option	    "SaXDualMode" "Xinerama"
	Option	    "ForceMonitors" "auto,crt1"
	Option	    "SaXDualHSync" "30-81"
	Option	    "SaXDualMonitorModel" "Unknown"
	Option	    "SaXDualVSync" "56-75"
	Option	    "VRefresh2" "56-75"
	Option	    "Mode2" "1280x1024,1280x960,1280x800,1152x864,1280x768,1280x720,1024x768,1280x600,1024x600,800x600,768x576,640x480"
	Option	    "OpenGLOverlay" "off"
	Option	    "FSAAScale" "0"
	Option	    "FSAAEnable" "off"
	Option	    "VideoOverlay" "on"
	Option	    "SaXDualMonitorVendor" "Unknown"
	Option	    "HSync2" "30-81"
	Option	    "DesktopSetup" "Horizontal"
	Option	    "SaXDualResolution" "1280x1024"
EndSection

Section "Device"
	Identifier  "amdcccle-Device[1]-0"
	Driver      "fglrx"
	BusID       "PCI:1:0:0"
EndSection

Section "Device"
	Identifier  "amdcccle-Device[1]-1"
	Driver      "fglrx"
	BusID       "PCI:1:0:0"
	Screen      1
EndSection

Section "Screen"
	Identifier "Screen[0]"
	Device     "Device[0]"
	Monitor    "Monitor[0]"
	DefaultDepth     24
	SubSection "Display"
		Depth     15
		Modes    "1280x1024" "1280x960" "1280x800" "1152x864" "1280x768" "1280x720" "1024x768" "1280x600" "1024x600" "800x600" "768x576" "640x480"
	EndSubSection
	SubSection "Display"
		Depth     16
		Modes    "1280x1024" "1280x960" "1280x800" "1152x864" "1280x768" "1280x720" "1024x768" "1280x600" "1024x600" "800x600" "768x576" "640x480"
	EndSubSection
	SubSection "Display"
		Depth     24
		Modes    "1280x1024" "1280x960" "1280x800" "1152x864" "1280x768" "1280x720" "1024x768" "1280x600" "1024x600" "800x600" "768x576" "640x480"
	EndSubSection
	SubSection "Display"
		Depth     8
		Modes    "1280x1024" "1280x960" "1280x800" "1152x864" "1280x768" "1280x720" "1024x768" "1280x600" "1024x600" "800x600" "768x576" "640x480"
	EndSubSection
EndSection

Section "Screen"
	Identifier "amdcccle-Screen[1]-0"
	Device     "amdcccle-Device[1]-0"
	Monitor    "amdcccle-Monitor[1]-0"
	DefaultDepth     24
	SubSection "Display"
		Viewport   0 0
		Depth     24
	EndSubSection
EndSection

Section "Screen"
	Identifier "amdcccle-Screen[1]-1"
	Device     "amdcccle-Device[1]-1"
	Monitor    "amdcccle-Monitor[1]-1"
	DefaultDepth     24
	SubSection "Display"
		Viewport   0 0
		Depth     24
	EndSubSection
EndSection

Section "DRI"
	Group        "video"
	Mode         0660
EndSection

Section "Extensions"
	Option	    "Composite" "on"
EndSection