Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 09-30-06, 12:29 AM   #1
philipl
Registered User
 
Join Date: May 2003
Location: Sunnyvale, CA
Posts: 116
Default Compiz/Beryl shadow problem

Hi all,

So, I've been trying out compiz and Beryl with the new drivers and everything seems to be working great except that I can't get window shadows to work properly. I end up with solid black (or whatever colour is chosen) rectangles - so none of the transparency or gradient effects are working.

I compiled both compiz and Beryl from scratch against the nvidia headers and linked against the nvidia libraries - I have no mesa files installed at all.

I read one report of this symptom against Beryl but it was in the context of the ATI drivers and Mesa and the reporter said that using an older version of Mesa had fixed his problem.

As i've seen no reports of this problem here, I'm sure it's not an intrinsic problem with the drivers. Any ideas?
__________________
--phil
philipl is offline   Reply With Quote
Old 10-01-06, 08:13 AM   #2
bellaich
Registered User
 
Join Date: Oct 2006
Posts: 1
Default Re: Compiz/Beryl shadow problem

I have exactly the same symptome: solid black rectangles instead of shadows, whatever the window manager I user (emerald, gnome-window-decorator, gtk-window-decorator). I've posted a ticket on Beryl's bug tracker.

Meanwhile, any help would be greatly appreciated, if this is connected to NVidia's new (beta) driver...
bellaich is offline   Reply With Quote
Old 10-02-06, 04:37 PM   #3
philipl
Registered User
 
Join Date: May 2003
Location: Sunnyvale, CA
Posts: 116
Default Re: Compiz/Beryl shadow problem

The problem is that I was using xorg-server-1.1.0 and only xorg-server-1.1.1 and later have a working convolution filter - which is required for the shadow effect to be rendered correctly.

I think all distros with Xorg 7.1 have updated to the new server version but I built my 7.1 from source and didn't pick up the update.
__________________
--phil
philipl is offline   Reply With Quote
Old 10-02-06, 10:40 PM   #4
Lupine
Registered User
 
Join Date: Jun 2004
Posts: 12
Default Re: Compiz/Beryl shadow problem

Thanks for this post, it seems to be helping my issue as well. Only problem is, things seem very unstable. When my screensaver comes on, X crashes. And I can't quite seem to get compiz (latest git from freedesktop) to actually display anything consistently.

I mean, for a brief moment I did see my desktop, and the drop-shadows were working (yay), but then the cube went all black. It's very weird.

This is how I have things installed, and in the following order. Maybe you can see if what you've done is a little different?

Got Mesa-6.5 from:
http://prdownloads.sourceforge.net/m...ib-6.5.tar.bz2
...and installed into standard --prefix=/usr

Got xorg-server-1.1.1 from: http://xorg.freedesktop.org/releases...idual/xserver/
compiled and installed like so:
Code:
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
--datadir=/usr/lib --with-mesa-source=/sources/Xorg/Mesa-6.5
--with-fontdir=/usr/lib/X11/fonts --with-module-dir=/usr/lib/X11/modules
--with-dri-driver-path=/usr/lib/X11/modules/dri --enable-install-setuid
--enable-composite && make && make install
re-ran the NVIDIA-Linux-x86-1.0-9625-pkg1 BETA drivers

then got compiz from:
git-clone git://anongit.freedesktop.org/git/xorg/app/compiz
...and installed like into standard --prefix=/usr

My /etc/X11/xorg.conf file looks like this:
Code:
# /etc/X11/xorg.conf 

Section "Files"
	#FontPath	"unix/:7100"			# local font server
	RgbPath      	"/usr/share/X11/"
	ModulePath   	"/usr/lib/X11/modules/"	
	FontPath	"/usr/lib/X11/fonts/misc"
	FontPath	"/usr/lib/X11/fonts/cyrillic"
	FontPath	"/usr/lib/X11/fonts/100dpi/:unscaled"
	FontPath	"/usr/lib/X11/fonts/75dpi/:unscaled"
	FontPath	"/usr/lib/X11/fonts/Type1"
	FontPath        "/usr/lib/X11/fonts/TTF"
	#FontPath        "/usr/lib/X11/fonts/TrueType"
	FontPath	"/usr/lib/X11/fonts/100dpi"
	FontPath	"/usr/lib/X11/fonts/75dpi"
EndSection

Section "Module"
	Load	"bitmap"
	Load	"dbe"
	Load	"ddc"
	#Load	"dri"
	Load	"extmod"
	Load	"freetype"
	Load	"glx"
	Load	"int10"
	Load	"record"
	Load	"type1"
	Load	"vbe"
EndSection

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

Section "InputDevice"
	Identifier	"Generic Keyboard"
	Driver		"keyboard"
	Option		"CoreKeyboard"
	Option		"XkbRules"	"xorg"
	Option		"XkbModel"	"pc104"
	Option		"XkbLayout"	"en_US"
EndSection

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

Section "Device"
	Identifier	"NVIDIA Corporation NV41 [GeForce Go 6800]"
	Driver		"nvidia"
	BusID		"PCI:1:0:0"
	Option		"NoLogo"							"true"
	#Option		"TripleBuffer"					"true"
	Option		"AddARGBGLXVisuals"	"true"
EndSection

Section "Modes"
	Identifier "16:10"
	ModeLine "1280x800" 107.2 1280 1360 1496 1712 800 801 804 835
	ModeLine "1280x800" 123.4 1280 1368 1504 1728 800 801 804 840
	ModeLine "1280x800" 147.9 1280 1376 1512 1744 800 801 804 848
	ModeLine "1680x1050" 147.1 1680 1784 1968 2256 1050 1051 1054 1087
	ModeLine "1680x1050" 188.1 1680 1800 1984 2288 1050 1051 1054 1096
	ModeLine "1680x1050" 214.5 1680 1800 1984 2288 1050 1051 1054 1103
	ModeLine "1680x1050" 256.2 1680 1808 1992 2304 1050 1051 1054 1112
	ModeLine "1920x1200" 193.16 1920 2048 2256 2592 1200 1201 1204 1242
	-Hsync +Vsync
EndSection

Section "Monitor"
	Identifier	"DELL Panel WUXGA"
	Option		"DPMS"
   	HorizSync   31.5 - 100.0
   	VertRefresh 30.0 -  90.0
    	DisplaySize	505 315
    	UseModes	"16:10"
EndSection

Section "Screen"
	Identifier	"Default Screen"
	Device		"NVIDIA Corporation NV41 [GeForce Go 6800]"
	Monitor		"DELL Panel WUXGA"
	DefaultDepth	24
	SubSection "Display"
		Depth		24
		Modes		"1920x1200" "1280x1024" "1024x768" "800x600"
	EndSubSection
EndSection

Section "ServerLayout"
	Identifier	"Default Layout"
	Screen		"Default Screen"
	InputDevice	"Generic Keyboard"
	InputDevice	"Configured Mouse"
	Option 		"AIGLX"		"false"
EndSection

#Section "DRI"
#	Mode	0666
#EndSection


So, anything jump out at ya as to why this isn't working for me?
__________________
Desktop: AMD Athlon 64 3200, 1GB RAM, NVIDIA GeForce 6800 256MB
Laptop: Dell Inspiron 9300, 2GB RAM, NVIDIA GeForce 6800 256MB
OS: Beyond Linux from Scratch
Lupine is offline   Reply With Quote
Old 10-02-06, 10:49 PM   #5
philipl
Registered User
 
Join Date: May 2003
Location: Sunnyvale, CA
Posts: 116
Default Re: Compiz/Beryl shadow problem

Your problem is that you installed Mesa. You *only* want Mesa to compile the xserver (ie: for --with-mesa-source). Do not build or install Mesa.

Then you should compile and link compiz against the nvidia GL headers and libs. After that, you'll be fine.
__________________
--phil
philipl is offline   Reply With Quote
Old 10-02-06, 11:17 PM   #6
Lupine
Registered User
 
Join Date: Jun 2004
Posts: 12
Default Re: Compiz/Beryl shadow problem

Woh, now I'm really confused. I thought things like xscreensaver and other OpenGL apps "required" Mesa to be installed. How else are we supposed to solve the probelm of the depedencies on files like:
/usr/lib/libGLU.so.1
...and so forth.

Also, since I installed the NVIDIA drivers overtop of the Mesa install, isn't that "good enough" to remove the Mesa and use NVIDIA?

Thanks for the help,
-Lup
__________________
Desktop: AMD Athlon 64 3200, 1GB RAM, NVIDIA GeForce 6800 256MB
Laptop: Dell Inspiron 9300, 2GB RAM, NVIDIA GeForce 6800 256MB
OS: Beyond Linux from Scratch
Lupine is offline   Reply With Quote
Old 10-02-06, 11:19 PM   #7
philipl
Registered User
 
Join Date: May 2003
Location: Sunnyvale, CA
Posts: 116
Default Re: Compiz/Beryl shadow problem

Sure, you need GLU - but make sure you don't have libGL from Mesa. That's what your symptoms suggest.
__________________
--phil
philipl is offline   Reply With Quote
Old 10-02-06, 11:34 PM   #8
Lupine
Registered User
 
Join Date: Jun 2004
Posts: 12
Default Re: Compiz/Beryl shadow problem

Ahhh, ok...so by the looks of this:
Code:
ls -lah /usr/lib/libGL*
-rw-r--r-- 1 root root  653 Oct  3 00:18 /usr/lib/libGL.la
lrwxrwxrwx 1 root root   10 Oct  3 00:18 /usr/lib/libGL.so -> libGL.so.1
lrwxrwxrwx 1 root root   17 Oct  3 00:18 /usr/lib/libGL.so.1 -> libGL.so.1.0.9625
-rwxr-xr-x 1 root root 555K Oct  3 00:18 /usr/lib/libGL.so.1.0.9625
lrwxrwxrwx 1 root root   11 Oct  3 00:16 /usr/lib/libGLU.so -> libGLU.so.1
lrwxrwxrwx 1 root root   20 Oct  3 00:16 /usr/lib/libGLU.so.1 -> libGLU.so.1.3.060500
-rwxrwxr-x 1 root root 1.6M Oct  3 00:16 /usr/lib/libGLU.so.1.3.060500
lrwxrwxrwx 1 root root   21 Oct  3 00:18 /usr/lib/libGLcore.so.1 -> libGLcore.so.1.0.9625
-rwxr-xr-x 1 root root 8.6M Oct  3 00:18 /usr/lib/libGLcore.so.1.0.9625
lrwxrwxrwx 1 root root   11 Oct  3 00:16 /usr/lib/libGLw.so -> libGLw.so.1
lrwxrwxrwx 1 root root   15 Oct  3 00:16 /usr/lib/libGLw.so.1 -> libGLw.so.1.0.0
-rwxrwxr-x 1 root root  32K Oct  3 00:16 /usr/lib/libGLw.so.1.0.0
and this:
Code:
ldd `which compiz`
        linux-gate.so.1 =>  (0xffffe000)
        libpng12.so.0 => /usr/lib/libpng12.so.0 (0xb7ee1000)
        libXcomposite.so.1 => /usr/lib/libXcomposite.so.1 (0xb7ede000)
        libXdamage.so.1 => /usr/lib/libXdamage.so.1 (0xb7edb000)
        libXfixes.so.3 => /usr/lib/libXfixes.so.3 (0xb7ed6000)
        libXrandr.so.2 => /usr/lib/libXrandr.so.2 (0xb7ed2000)
        libXrender.so.1 => /usr/lib/libXrender.so.1 (0xb7ec9000)
        libXinerama.so.1 => /usr/lib/libXinerama.so.1 (0xb7ec5000)
        libstartup-notification-1.so.0 => /usr/lib/libstartup-notification-1.so.0 (0xb7ebd000)
        libSM.so.6 => /usr/lib/libSM.so.6 (0xb7eb4000)
        libICE.so.6 => /usr/lib/libICE.so.6 (0xb7e9c000)
        libXau.so.6 => /usr/lib/libXau.so.6 (0xb7e99000)
        libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0xb7e94000)
        libGL.so.1 => /usr/lib/libGL.so.1 (0xb7e07000)
        libXext.so.6 => /usr/lib/libXext.so.6 (0xb7df9000)
        libX11.so.6 => /usr/lib/libX11.so.6 (0xb7d0b000)
        libdl.so.2 => /lib/libdl.so.2 (0xb7d07000)
        libm.so.6 => /lib/libm.so.6 (0xb7ce2000)
        libc.so.6 => /lib/libc.so.6 (0xb7bc1000)
        libz.so.1 => /lib/libz.so.1 (0xb7bac000)
        libGLcore.so.1 => /usr/lib/libGLcore.so.1 (0xb732e000)
        libnvidia-tls.so.1 => /usr/lib/tls/libnvidia-tls.so.1 (0xb732c000)
        /lib/ld-linux.so.2 (0xb7f33000)
....it looks like the NVIDIA are in the proper place, and non of the Mesa stuff is in the way.
__________________
Desktop: AMD Athlon 64 3200, 1GB RAM, NVIDIA GeForce 6800 256MB
Laptop: Dell Inspiron 9300, 2GB RAM, NVIDIA GeForce 6800 256MB
OS: Beyond Linux from Scratch
Lupine is offline   Reply With Quote

Old 10-02-06, 11:38 PM   #9
Lupine
Registered User
 
Join Date: Jun 2004
Posts: 12
Default Re: Compiz/Beryl shadow problem

Woo Hoo....double-post!!!


That got it....I think I had some Mesa stuff still sitting around, so I had to manually remove some of it, and then re-ran the NVIDIA drivers. Now I'm seeing the proper drop-shadow. Thanks so much for the help!!!
__________________
Desktop: AMD Athlon 64 3200, 1GB RAM, NVIDIA GeForce 6800 256MB
Laptop: Dell Inspiron 9300, 2GB RAM, NVIDIA GeForce 6800 256MB
OS: Beyond Linux from Scratch
Lupine is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
Post working out problem with 40.xx trying to work problem out, ONLY system specs b5fan NVIDIA Windows Graphics Drivers 11 10-19-02 09:17 AM
nv30 problem rumor bob747b Rumor Mill 37 10-10-02 03:14 PM
Ti4200 and Linux Install Problem ultrajava NVIDIA Linux 5 09-28-02 08:13 AM
Geforce 4 Go and X-Server Problem with shutdown rapljenovic NVIDIA Linux 2 08-30-02 10:11 AM
Nvidia Go on laptop, black border within XFree86 problem raxip NVIDIA Linux 3 07-31-02 10:58 AM

All times are GMT -5. The time now is 09:50 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.