Bug 157844 - KDE4 refuses to show desktop on a xinerama enabled multiscreen setup
Summary: KDE4 refuses to show desktop on a xinerama enabled multiscreen setup
Status: RESOLVED WORKSFORME
Alias: None
Product: plasma4
Classification: Plasma
Component: multiscreen (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-14 22:05 UTC by prasadae
Modified: 2008-04-17 05:21 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
plasma startup error (18.79 KB, text/plain)
2008-02-20 04:45 UTC, prasadae
Details

Note You need to log in before you can comment on or make changes to this bug.
Description prasadae 2008-02-14 22:05:51 UTC
Version:            (using KDE 4.0.1)
Installed from:    Ubuntu Packages
Compiler:          gcc 4.1.3 
OS:                Linux

After installing kde4-core on a kubuntu 7.10 system with kde 3.5.x, logging out and logging back into kde4 causes the screen to be blank for quite a while, and after which logs in (The KDE4 tips and tricks are displayed) and the background is shown, but fails to show either kicker or the desktop and freezes. 

After a ctr+alt+del, it slows the log out menu from which I can log out and log back into kde3.

Configuration:
Intel Pentium 4 machine.
Graphics Card: Nvidia Quadro 4 980 XGL
Dual monitors at a resolution of 1280x1024 

nvidia driver: NVIDIA-Linux-x86-96.43.05-pkg1.run

xorg.conf configured through NVIDIA X Server settings

NOTE: All installation of the drivers and dual screen setup was performed prior to installing kde4 on the existing kde3.5.x setup.

xorg.conf:

# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings:  version 1.0  (buildmeister@builder3)  Tue Jan 22 19:54:38 PST 2008

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" "1"
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: edid, VertRefresh source: edid
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "HP 1825"
    HorizSync       30.0 - 82.0
    VertRefresh     56.0 - 76.0
    Option         "DPMS"
EndSection

Section "Monitor"
    # HorizSync source: edid, VertRefresh source: edid
    Identifier     "Monitor1"
    VendorName     "Unknown"
    ModelName      "DELL 1800FP"
    HorizSync       30.0 - 80.0
    VertRefresh     56.0 - 75.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Videocard0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "Quadro4 980 XGL"
    BusID          "PCI:1:0:0"
    Screen          0
EndSection

Section "Device"
    Identifier     "Videocard1"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "Quadro4 980 XGL"
    BusID          "PCI:1:0:0"
    Screen          1
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Videocard0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "metamodes" "CRT-0: 1280x1024 +0+0; CRT-0: 1024x768 +0+0; CRT-0: 832x624 +0+0; CRT-0: 800x600 +0+0; CRT-0: 640x480 +0+0"
    SubSection     "Display"
        Depth       24
        Modes      "1600x1200" "1280x1024" "1024x768" "800x600" "640x480"
    EndSubSection
EndSection

Section "Screen"
    Identifier     "Screen1"
    Device         "Videocard1"
    Monitor        "Monitor1"
    DefaultDepth    24
    Option         "metamodes" "CRT-1: nvidia-auto-select +0+0"
    SubSection     "Display"
        Depth       24
        Modes      "1600x1200" "1280x1024" "1024x768" "800x600" "640x480"
    EndSubSection
EndSection
Comment 1 Aaron J. Seigo 2008-02-14 22:21:34 UTC
there is no kicker in 4.0.1 and this is obviously an installation and/or packaging issue since plasma works just fine with xinerama including on upgraded-from-3.5.x systems.

can you include the output of running plasma directly from a konsole/xterm? you can run it by pressing alt-f2 to get the run command dialog.
Comment 2 prasadae 2008-02-18 05:00:23 UTC
Ok, here is what I did:

from kde3, 
1. ctr+alt+f2.
2. sudo /usr/lib/kde4/plasma

Error Message:
<unknown program name> (6298) /: Cannot connect to the X server
Plasma (6299) : KUniqueApplication : Cannot find the D-Bus session server
Plasma (6298) : KUniqueApplication : Pipe closed unexpectedly 

If this was not what you wanted me to do, can you provide me with a step by step procedure to follow?

Comment 3 Aaron J. Seigo 2008-02-18 18:44:26 UTC
that isn't what i meant, no.

open a konsole.
from that konsole window start plasma (no sudo...)
Comment 4 prasadae 2008-02-20 04:45:40 UTC
Created attachment 23627 [details]
plasma startup error

This is the error outputted by plasma upon running it from a console.
Comment 5 prasadae 2008-02-20 04:47:15 UTC
Ok, I opened konsole in kde 3.5.9 and executed plasma as
/usr/lib/kde4/bin/plasma

and the output is in the attachment (id=23627)

Comment 6 prasadae 2008-03-06 06:30:36 UTC
I tried another thing:
Changed from
Section "ServerFlags"
    Option         "Xinerama" "1"
EndSection 

to 

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

Now everything works fine, EXCEPT the DUAL SCREEN.
And hence agreeing that it is a problem with xinerama.
Comment 7 sayth 2008-03-07 10:25:34 UTC
I cannot get kde4 to use dual screen either, although I don't use xinerama. I do have have dual screen working on kde 3.5.8. The xorg that I use for my dual display is.

# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings:  version 1.0  (buildmeister@builder3)  Thu Oct  4 10:34:46 PDT 2007

# xorg.conf (xorg X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the xorg.conf manual page.
# (Type "man xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
#   sudo dpkg-reconfigure -phigh xserver-xorg

Section "ServerLayout"

	# Uncomment if you have a wacom tablet
	#	InputDevice     "stylus"	"SendCoreEvents"
	#	InputDevice     "cursor"	"SendCoreEvents"
	#	InputDevice     "eraser"	"SendCoreEvents"
    Identifier     "Default Layout"
    Screen      0  "Screen0" 0 0
    Screen      1  "Screen1" RightOf "Screen0"
    InputDevice    "Generic Keyboard"
    InputDevice    "Configured Mouse"
EndSection

Section "Files"
EndSection

Section "Module"
    Load           "glx"
EndSection

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

Section "InputDevice"
    Identifier     "Generic Keyboard"
    Driver         "kbd"
    Option         "CoreKeyboard"
    Option         "XkbRules" "xorg"
    Option         "XkbModel" "pc105"
    Option         "XkbLayout" "us"
EndSection

Section "InputDevice"
    Identifier     "Configured Mouse"
    Driver         "mouse"
    Option         "CorePointer"
    Option         "Device" "/dev/input/mice"
    Option         "Protocol" "ImPS/2"
    Option         "ZAxisMapping" "4 5"
    Option         "Emulate3Buttons" "true"
EndSection

Section "InputDevice"
    Identifier     "stylus"
    Driver         "wacom"
    Option         "Device" "/dev/input/wacom"
    Option         "Type" "stylus"
    Option         "ForceDevice" "ISDV4"# Tablet PC ONLY
EndSection

Section "InputDevice"
    Identifier     "eraser"
    Driver         "wacom"
    Option         "Device" "/dev/input/wacom"
    Option         "Type" "eraser"
    Option         "ForceDevice" "ISDV4"# Tablet PC ONLY
EndSection

Section "InputDevice"
    Identifier     "cursor"
    Driver         "wacom"
    Option         "Device" "/dev/input/wacom"
    Option         "Type" "cursor"
    Option         "ForceDevice" "ISDV4"# Tablet PC ONLY
EndSection

Section "Monitor"
    Identifier     "Generic Monitor"
    HorizSync       30.0 - 70.0
    VertRefresh     50.0 - 160.0
    Option         "DPMS"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "LG L194WT"
    HorizSync       30.0 - 83.0
    VertRefresh     56.0 - 75.0
EndSection

Section "Monitor"
    Identifier     "Monitor1"
    VendorName     "Unknown"
    ModelName      "TV-0"
    HorizSync       28.0 - 33.0
    VertRefresh     43.0 - 72.0
EndSection

Section "Device"
    Identifier     "nVidia Corporation NV44A [GeForce 6200]"
    Driver         "nvidia"
    Option         "AddARGBVisuals" "True"
    Option         "AddARGBGLXVisuals" "True"
    Option         "NoLogo" "True"
    BusID          "PCI:1:0:0"
EndSection

Section "Device"
    Identifier     "Videocard0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce 6200"
    BusID          "PCI:1:0:0"
    Screen          0
EndSection

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

Section "Screen"
    Identifier     "Default Screen"
    Device         "nVidia Corporation NV44A [GeForce 6200]"
    Monitor        "Generic Monitor"
    DefaultDepth    24
    Option         "AddARGBGLXVisuals" "True"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Videocard0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "TwinView" "0"
    Option         "metamodes" "CRT: nvidia-auto-select +0+0"
EndSection

Section "Screen"
    Identifier     "Screen1"
    Device         "Videocard1"
    Monitor        "Monitor1"
    DefaultDepth    24
    Option         "TwinView" "0"
    Option         "metamodes" "TV: nvidia-auto-select +0+0"
EndSection

Section "Extensions"
    Option         "Composite" "Enable"
EndSection

Comment 8 Aaron J. Seigo 2008-03-17 20:37:47 UTC
@sayth: dual head is a completely different issue. see BR#156475

@prasadae: i still can't reproduce your problems here with xinerama. others are also running it fine with xinerama. i'm really at a loss at what to do for you. the debug output shows everything is being detected and set up properly as well. *shrug*
Comment 9 prasadae 2008-03-17 22:11:47 UTC
I am new at these things. Can you clarify if what I understand is right?
Xinrama working is unrelated to Dual head working? That is currently xinerama DOES working, but dual head does not not? Cos I can get KDE4 to work when I comment out all references to the other screen. 

If so, I can close this issue and comment on BR#156475? Which is more related to dual head. I have the same set up on my laptop and KDE4 is coming up to be really great! Thanks..
Comment 10 Aaron J. Seigo 2008-03-17 23:04:52 UTC
Dual head does not work, yes, while Xinerama does (with some provisos for things like struts which are messes in x.org itself).

The difference between "dual head" and "xinerama" is that in dual head there is actually a different X session running on each screen, while in xinerama there is one X session and all the screens belong within it.
Comment 11 prasadae 2008-04-17 05:21:05 UTC
You were right Aaron. This was a packaging issue.
I recently upgraded to Kubuntu 8.04 Beta (Hardy) and everything is fine, except a minor issue which is not related so I will not comment about it here.

Probably a packaging issue or Xorg 7.3 (One of the things new in 8.04) works better with plasma or whatever, It works now. And it was never kde4 as I still had the same kde 4.0.3 before upgrade!

Thanks anyway. And plasma rules. I cannot wait to show this off with other people in my lab! :-)