PDA

View Full Version : compiz crashes immediately


chni
November 15th, 2006, 05:43 PM
Hi,

I recently installed the latest stable NVidia driver on my GeForce Go 7600. I had to comment the following lines in gdm.conf-custom in order to get direct rendering enabled (why? don't know...):

[servers]
#0=Xgl

#[server-Xgl]
#name=Xgl server
#command=/usr/bin/Xgl :0 -fullscreen -ac -accel glx:pbuffer -accel xv:fbo
#flexible=true

Anyway, with my previous (but unfortunately buggy) "nvidia-glx" driver which is the outdated NVidia driver provided on the Ubuntu repositories, Compiz worked fine (but the display jittered).
What would I have to do in order to make Compiz work again?

I tried those two Compizes:
* 0.0.13.38-0ubuntu3
* 0.3.2 from the freedesktop.org website

thanks in advance

RYX
November 17th, 2006, 08:42 PM
Hi, chni! It looks like you previously used Xgl (that's why you needed to comment out that part in gdm.conf) ... and now you have switched to the new NVIDIA-driver that provides accelerated rendering by itself. It can be that you are still using old start-scripts/-utils to start compiz and that causes errors. Did you modify your /etc/X11/xorg.conf (if unsure, post the "Device" and "Screen" sections)? What Ubuntu version are you using - Dapper or Edgy (so 6.04 or 6.10)? And how did you try to start compiz?

:)

mikedee
November 17th, 2006, 09:03 PM
Also make sure you delete the ~/.compiz folder if you have used compiz before. I expect it is probably an xorg configuration issue, thankfully we do not have to use Xgl or AIXGL anymore. You must make sure that your xorg version is at least 7.1 though.

The compiz version you should use is 0.3.2

chni
November 18th, 2006, 03:41 AM
Hi, thank you for your suggestions.

@RYX: I use Edgy, my Compiz start script is very simple (but it used to work :wink: ):
#!/bin/bash
# launch compiz

compiz --replace gconf & gnome-window-decorator &

exit 0

This way to launch Compiz is out of a Wiki: http://wiki.ubuntuusers.de/Baustelle/Compiz?highlight=%28compiz%29 (but I omitted the --indirect-rendering and --strict-binding switches)

Did you modify your /etc/X11/xorg.conf (if unsure, post the "Device" and "Screen" sections)?
Yes, I took the new xorg.conf which was generated by the NVidia driver installer and made some minor changes (e.g. changed the modes, keyboard type,...).

This is my current (NVidia) xorg.conf (I also tried many variants, including the "DRI" section with the 0666 option,...):
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig: version 1.0 (buildmeister@builder3) Wed Nov 1 19:47:17 PST 2006

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

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

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

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

Section "InputDevice"
# generated from default
Identifier "Keyboard0"
Driver "kbd"
Option "CoreKeyboard"
Option "XkbRules" "xorg"
Option "XkbModel" "pc105"
Option "XkbLayout" "de"
Option "XkbOptions" "lv3:ralt_switch"
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"
Option "TripleBuffer" "true"


#Option "RenderAccel" "true"
#Option "AllowGLXWithComposite" "true"
#Option "backingstore" "true"
#Option "TripleBuffer" "true"
#Option "AddARGBGLXVisuals" "True"

EndSection

Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"

Option "AddARGBGLXVisuals" "True"
#Option "DisableGLXRootClipping" "True"

DefaultDepth 24
SubSection "Display"
Depth 24
#Modes "1600x1200" "1280x1024" "1024x768" "800x600" "640x480"
Modes "1400x1050"
EndSubSection
EndSection

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


@mikedee:
Interestingly there isn't a .compiz folder in my home directory...
My Xorg is 1:7.1.1ubuntu6 (anyway, >= 7.1).

I'm glad you guys posted some advice.

RYX
November 18th, 2006, 03:44 AM
If you comment out the last three lines (the extensions block), it looks like my xorg.conf. Then try to start compiz with:compiz --replace --use-cow --indirect-rendering &
And the decorator with:
gtk-window-decorator --replace &


Edit: And uncomment this: #Option "DisableGLXRootClipping" "True"

Edit: The .compiz-dir in ~ should not be very important if it is not automatically created.

:)

chni
November 18th, 2006, 01:02 PM
Now Compiz says the following:
./compiz: Couldn't load default window icon.
./compiz: Failed to manage screen: 0
./compiz: No manageable screens found on display :0.0

What does this output mean? What is a default window icon :shock: ?

chni
November 18th, 2006, 04:41 PM
Ok, I hazarded to perform a "make install". Now compiz does'nt output that strange "Couldn't load default window icon." message any more. Compiz works fine again, but there aren't any window borders :? .

What might I try?

RYX
November 18th, 2006, 04:58 PM
Check the options with the gconf-editor. And check if the "decoration"-plugin is really loaded. (Key is /apps/compiz/general/allscreens/options/active_plugins). If the "decoration" is not listed, add it. If decoration is listed, try running the following command from a terminal:
gtk-window-decorator --replace &

chni
November 18th, 2006, 05:38 PM
Thanks a lot for your help! Indeed the decoration plugin wasn't in the gconf key. Now it works like a charm again (except for a minor crash).

This forum is fantastic, particularly the Compiz howto you posted.

Ich hatte mich die ganze Woche über vergebens darum bemüht, das Ding zum Laufen zu bekommen. Dank deiner Mithilfe ging es jetzt zum Glück innerhalb kürzester Zeit :D .

RYX
November 18th, 2006, 06:03 PM
Thank you - I'm always happy when I can help ...

:)