How to enable glx compositing??

Hi,

I have been going crazy for a few days trying to enable compiz on my tc1100.

I have a GeForge 420 legacy card and I compiled the proprietary NVIDIA driver. I realize that this is an old card. So perhaps that is why NVIDIA compositing is not enabled by default. If I go to Desktop settings and try to enable 3D effects, it tells me that compositing is not enabled.

So I figured I best go with xlg.

I installed all that is necessary for compiz-fusion. However, the command glx is not recognised. I also cannot find a package called xlg. Only patterns-openSUSE-xlg.

Shouldn t there be a package for xlg? How do I enable compositing??

This is the contents of my xorg.conf

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 1.0  (buildmeister@builder63)  Tue Jul 13 13:31:50 PDT 2010

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

Section "Files"
EndSection

Section "Module"
Load "glx"
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"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
    HorizSync       30.0 - 110.0
    VertRefresh     50.0 - 150.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
        Modes      "1600x1200" "1280x1024" "1024x768" "800x600" "640x480"
    EndSubSection
EndSection


Are you using gnome or kde?

Hi,

Sorry, I forgot the mention, I am using kde 4.4

You realize kde does not install with Compiz, if you installed just the kde desktop.
kde uses kwin which can provide effects
If you really want Compiz you will need to install it and probably half the gnome desktop too. And you will be required to loose kde-pure package.

In Default applications in the system settings, you should go to the window manager and use kde’s own kwin

to enable glx with a nvidia driver do the folowing: in xorg.conf

Section “Module”
Load “dbe”
Load “freetype”
Load “extmod”
Load “glx”
EndSectionorg.

Section “Extensions”
Option “RENDER” “true”
Option “DAMAGE” “true”
Option “Composite” “Enable”
EndSection

xorg will use wat it thinks it needs but glx is activates and composite.

Succes

I see, I thought only compiz could do the wobbly things, I see I was wrong. I don’t mind using kwin. I guess that is the one in System Settings -> desktop effects then?

But still, it will need compositing. I have added the suggested to my xorg.conf file and rebooted. But still no compositing. I can’t even use xrandr.

Any suggestions? xrandr worked with nouveau, but I figured the desktop effects would not?

Any suggestions on how to proceed?

Meanwhile, I had totally reinstalled my system due to some issue with the wacom stylus. To be complete, here is my latest xorg.conf:

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 1.0  (buildmeister@builder63)  Tue Jul 13 13:31:50 PDT 2010

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

Section "Files"
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"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
    HorizSync       30.0 - 110.0
    VertRefresh     50.0 - 150.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
        Modes      "1600x1200" "1280x1024" "1024x768" "800x600" "640x480"
    EndSubSection
EndSection
Section "Module"
Load "dbe"
Load "freetype"
Load "extmod"
Load "glx"
EndSection

Section "Extensions"
Option "RENDER" "true"
Option "DAMAGE" "true"
Option "Composite" "Enable"
EndSection 

The output of grep Composite /var/log/Xorg.0.log gives me:

dorien@linux-hvme:~> grep Composite /var/log/Xorg.0.log
    22.331] (**) Extension "Composite" is enabled
    25.317] (II) NVIDIA(0): Support for GLX with the Damage and Composite X extensions is

/etc/sysconfig/displaymanager tells me my displaymanager is kdm

When I go to desktop effects, in sys config, I cannot check desktop effects, because:


Failed to activate desktop effects using the given configuration options. Settings will be reverted to their previous values.

Check your X configuration. You may also consider changing advanced options, especially changing the compositing type.

Ok, so the solution lies in my xorg.conf?

Look.

I don’t even have a xorg.conf
So I suggest the solution is get rid of it
mv /etc/X11/xorg.conf /etc/X11/xorg.conf-bak

Here is how I installed nvidia for myself
nVidia Driver via Repo in 11.3 - Guide

That’s it!

Thanks a lot for your suggestion, it is really appreciated. Installing the opensuse NVIDIA driver was my first try before compiling as well. However, there is no driver yet available for 11.3 legacy (I reported this here at the time). There is only a file in that repository for G1 and G2 unfortunately.

I already tried deleting my xorg.conf. No change. I

Sorry I missed the ‘Legacy’ bit.
Didn’t nVidia just drop support for a bunch of old stuff?
So you may be out of luck, I’m not sure. Sorry.

You obviously found the archived drivers at nvidia and tried those, but it’s not working…correct?

No, they don’t seem to be working correctly. Before I could rotate my screen and had 60Hz, after installing NVIDIA, I could not do that anymore and I dropped to 50Hz.

Anyways, I couldn’t get back to the original config, so I just reinstalled.

Now I am using nouveau, without xconfig :wink: and I am able to rotate my tablet’s screen again.

Unfortunately, the 3D effects still says that compositing is disabled.

I read that nouveau might work better with gnome. Do you think it is worth installing gnome. I have never used it before, but on my vintage tablet it might be good to have a slimmer desktop.

I use Gnome as well as kde but only with the nVidia driver.
But whilst you are in install mode, just give it a go. But I doubt it will be different.