Bug 156786 - Composite activated but don't work
Summary: Composite activated but don't work
Status: RESOLVED NOT A BUG
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-27 16:03 UTC by Neliger
Modified: 2008-01-28 12:11 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Neliger 2008-01-27 16:03:50 UTC
Version:            (using KDE 4.0.0)
Installed from:    Gentoo Packages
OS:                Linux

Composite is activated in xorg, and OpenGL works.

# glxinfo | grep direct
direct rendering: Yes

# xdpyinfo | grep Composite
Composite

Kwin is compiled with xcomposite option too.

The problem is, in the KDE configuration panel, I enable effets, and it's marked enable, but no effets works.

In logs I just can see "Failed to create Scene object. Compositing disabled".

I have elredy USE beryl with the same configuration, and I've try many compilations, but the result with kwin is always "Failed to create Scene object. Compositing disabled", and I can't understand where the problem is.
Comment 1 Cristian Tibirna 2008-01-27 17:16:50 UTC
I had something similar happen to me because my distro's X config tool chose to assign a default color depth of 16 to my screen's configuration. (Option "Default Depth" in the "Screen" section in the xorg.conf file)

Changing that to 24 fixed the non-working composite.
Comment 2 Neliger 2008-01-27 19:19:45 UTC
Thanks for your comment, but I use a 24 color depth, this is not the problem here.

(**) NVIDIA(0): Depth 24, (--) framebuffer bpp 32
(**) NVIDIA(1): Depth 24, (--) framebuffer bpp 32

(yes, I use two screens on the same nVidia card, vith xinerama.)
Comment 3 Lubos Lunak 2008-01-27 21:23:28 UTC
Does it work if you try without Xinerama?
Comment 4 Neliger 2008-01-27 23:14:09 UTC
I've just try, and it works without xinerama.

What's a shame, I need xinerama :/
Comment 5 Mike 2008-01-28 01:39:30 UTC
I have 2 screens on the same card using nvidia twinview, compositing works here so maybe it is something to do with the setup?

Here is my device and screen sections.

Section "Device"
    Identifier     "Videocard0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce 7900 GS"
    Option         "RenderAccel" "true"
    Option         "DisableGLXRootClipping" "true"
    Option         "AddARGBGLXVisuals" "true"
    Option         "AllowGLXWithComposite" "true"

    Option "UseCompositeWrapper" "true"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Videocard0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "TwinView" "1"
    Option         "metamodes" "CRT: nvidia-auto-select +1680+0, DFP: nvidia-auto-select +0+0"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection
Comment 6 Neliger 2008-01-28 08:45:18 UTC
I've add this two lines in the "Device" section, but the result is the same.

I know that with twinview, it's more easy to USE composite effets, but the problem is that twinview does nots allow more than 2 screens...
Comment 7 Lubos Lunak 2008-01-28 12:11:36 UTC
Compositing does not work with the original Xinerama implementation, you need things like Twinview, MergedFB, etc.