Bug 158850

Summary: Multihead: not supported by plasma
Product: [Unmaintained] plasma4 Reporter: joe.rutledge
Component: multiheadAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: arndttwickel, aseigo, asraniel, jonas.vejlin, jussi01, mdige, mikaeljans, notmart, p.stolz, psychonaut, spammer_
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description joe.rutledge 2008-03-06 12:13:03 UTC
Version:            (using KDE 4.0.2)
Installed from:    Ubuntu Packages
OS:                Linux

I run a current Kubuntu system with a dual head NVidia card and the proprietary NVidia drivers. For various reasons I have to run the dual head as two X servers. My current X config runs fine with KDE3, when running KDE4 however both heads desktops are drawn on top of one another on only one of my displays, the other display is inaccessible. Additionally the desktop config tool under KDE3 correctly identifies the two displays but under KDE4 it sees only one the displays. I enquired about this problem on the Kubuntu-kde4 IRC channel where another user reported the same issue, but no known fix.

xorg.conf:

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" RightOf "Screen1"
    Screen      1  "Screen1" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection

Section "Files"
    RgbPath         "/usr/X11R6/lib/X11/rgb"
EndSection

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

Section "ServerFlags"
    Option         "Xinerama" "0"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    # HorizSync source: twinview, VertRefresh source: twinview
    Identifier     "Monitor1"
    VendorName     "Unknown"
    ModelName      "ViewSonic VX715"
    HorizSync       31.5 - 80.0
    VertRefresh     60.0
    Option         "DPMS"
EndSection

Section "Monitor"
    # HorizSync source: edid, VertRefresh source: edid
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "ViewSonic VX2235wm"
    HorizSync       30.0 - 82.0
    VertRefresh     50.0 - 75.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Videocard0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce 7600 GT"
    BusID          "PCI:2:0:0"
    Screen          0
EndSection

Section "Device"
    Identifier     "Videocard1"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce 7600 GT"
    BusID          "PCI:2:0:0"
    Screen          1
EndSection

Section "Screen"
    Identifier     "Screen1"
    Device         "Videocard0"
    Monitor        "Monitor1"
    DefaultDepth    24
    Option         "metamodes" "DFP-1: 1280x1024 +0+0; DFP-1: 1024x768 +0+0"
    SubSection     "Display"
        Depth       16
        Modes      "1600x1200" "1280x1024" "1024x768" "800x600" "640x480"

        Depth       24
        Modes      "1600x1200" "1280x1024" "1024x768" "800x600" "640x480"

        Depth       32
        Modes      "1600x1200" "1280x1024" "1024x768" "800x600" "640x480"
    EndSubSection
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Videocard1"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "metamodes" "DFP-0: 1680x1050 +0+0; DFP-0: 1280x1024 +0+0; DFP-0: 1024x768 +0+0"
    SubSection     "Display"
        Depth       16
        Modes      "1600x1200" "1280x1024" "1024x768" "800x600" "640x480"

        Depth       24
        Modes      "1600x1200" "1280x1024" "1024x768" "800x600" "640x480"

        Depth       32
        Modes      "1600x1200" "1280x1024" "1024x768" "800x600" "640x480"
    EndSubSection
EndSection
Comment 1 Jonathan Harper 2008-07-16 17:56:00 UTC
Remove your metamode entries and see if that helps.
Comment 2 Alex Merry 2008-08-06 16:13:29 UTC
Joe: do you get the same problem with the metamode option lines removed (as per Jonathan's comment)?
Comment 3 joe.rutledge 2008-08-06 16:29:04 UTC
Sorry for the slow reponse, it's a work machine and it's difficult to get chance to fiddle with it that much!

I'm now using KDE 4.1, whatever Ubuntu feeds me from deb http://ppa.launchpad.net/kubuntu-members-kde4/ubuntu hardy main

Removing meta-modes has made no difference :-(

However if I go away from the two X server approach to use TwinView (not my preference) I do get both displays rendered correctly. I then get a different bug where using the Display System Setting applet the primary screen shuts down (probably out of range/res etc for that display) and the sceondary screen is left, with little use (moving mouse pointer no right click menu). I'm assuming I should file this as a separate bug but I've also included the info here in case it's of any interest to solving this issue?

Interestingly it appears to be picking the smaller display as the primary and the larger display as secondary, the inverse of how it appears under KDE3.
Comment 4 Aaron J. Seigo 2008-11-13 11:48:45 UTC
*** Bug 174160 has been marked as a duplicate of this bug. ***
Comment 5 Aaron J. Seigo 2008-12-19 16:05:09 UTC
*** Bug 166174 has been marked as a duplicate of this bug. ***
Comment 6 Marco Martin 2008-12-23 22:15:30 UTC
can this thing be reproduced with 4.2 beta2 or better  recent trunk?
i can't reproduce it at all.
Comment 7 Arndt 2008-12-24 02:00:28 UTC
Marco: Yes (See also duplicate bug 166174). My setup is Kubuntu 8.10 with Kde 4.2 beta2 from the launchpad repos (4.1.85-0ubuntu1~intrepid1~ppa1), proprietary amd fglrx driver (8.561) and dual head setup. Under KDE4 the second screen stays blank. Amdcccle (amd graphical config tool) can identify second screen (displays identification number on second screen) and I can move the cursor over but it will have a different shape (X) on the second screen. On first screen panel is not visible (maybe because screen size is taken from 2nd display which has 1600x1200 instead of 1st displays 1400x1050??). Good old Windowmaker works perfectly fine with an otherwise unchanged setup. Under Kubuntu 8.04 with KDE 3.5.10 and same fglrx version dual head setup also works (although 3.5.10 has introduced another dual head Bug 170465).
Comment 8 Aaron J. Seigo 2008-12-24 05:01:40 UTC
Marco: this is about multihead (multiple X servers running at once, one per physical screen), not xinerama/mergefb/twinview/etc (one X server across all physical screens)
Comment 9 RSB 2009-01-16 00:46:56 UTC
*** This bug has been confirmed by popular vote. ***
Comment 10 Arndt 2009-01-16 01:28:58 UTC
Reconfirmed for 4.2 RC1.
Comment 11 Jonathan Thomas 2009-03-10 02:32:09 UTC
*** Bug 181349 has been marked as a duplicate of this bug. ***
Comment 12 Jussi Schultink 2009-03-18 21:02:21 UTC
I also have the issue that Multihead is not supported by KDE. I have briefly reported a bug on LP (https://bugs.edge.launchpad.net/ubuntu/+source/nvidia-common/+bug/329466) also. My setup is as follows: 1 Nvidia 9500 GT graphics card, with 3 outputs - DVI, HDMI and VGA. I have 3 screens, 2x 22" (1680x1050) and 1x 26" (1920x1200). Now because separate x screens are not supported, there is no way to make all of this hardware work together nicely. 

At the moment I can use twinview, with any combination of the screens, and any combination of the outputs. 

I am on Kubuntu Jaunty. (KDE 4.2.1)
Comment 13 Jonas Vejlin 2009-04-23 17:55:38 UTC
I can still confirm this running kde 4.2.2 from a kubuntu 9.04  live CD. Wonder if this bug will be fixed
Comment 14 Martin Dige 2009-04-27 01:27:44 UTC
I can also confirm this bug.
Comment 15 Aaron J. Seigo 2009-06-13 19:55:48 UTC
*** Bug 169887 has been marked as a duplicate of this bug. ***
Comment 16 Beat Wolf 2009-07-09 13:53:40 UTC
Those blogposts might be interesting for people that reported that bug:
http://aseigo.blogspot.com/2009/07/multihead.html
http://aseigo.blogspot.com/2009/07/43-rc1-tasks-widget-crashiness-multi.html
Comment 17 Beat Wolf 2009-08-31 10:36:57 UTC
could somebody with multihead comment on this bug?
Comment 18 Jonas Vejlin 2009-08-31 13:10:52 UTC
I will retest when kde 4.3.1 hits debian unstable.
Comment 19 Beat Wolf 2009-09-01 22:14:52 UTC
since there where some positive reports about kde on multihead (i'm not talking about little bugs etc), i'm closing this now
Comment 20 Myriam Schweingruber 2012-05-17 13:41:48 UTC
Closing correctly.