PDA

View Full Version : [ubuntu] Hardy - 9600GT (171.06) Compiz not working


Linz
April 28th, 2008, 06:31 AM
Hello all.

I have recently obtained an MSI 9600GT 512MB OC graphics card, and I installed it in my computer. Ubuntu had display problems (when I say display problems, I mean flickered bars that are unreadable, and also being forced to run in low graphics mode (using VESA drivers?)) with it at first, but then I downloaded the 173.08 linux driver from NVIDIA, and I followed the instructions given elsewhere on the forum to install it, and somehow I got it to work after numerous restarts and playing with xconf files.

Last night I upgraded my operating system to 8.04, using an ISO file burnt to DVD. I do not remember if I had display problems with it, but I had it working. However, compiz's visual effects were turned off. So I proceded to turn them on, to get the following error: "Desktop effects could not be enabled."

So after playing around with a few suggestions, such as installing xgl, I still could not enable desktop effects. Also, I noticed that something else didn't like my driver (I think it is because I compiled it on the gutsy kernel, not the hardy kernel?). So I tried reinstalling the 173.08 driver, and this gave me display problems... so I got the 171.06 driver, and installed that, and I have the display working now.

I am not sure if Ubuntu is using the nvidia driver, because I open the nvidia x server settings, it tells "You do not appear to be using the NVIDIA X driver. Please edit your X configuration file (just run `nvidia-xconfig` as root), and restart the X server." However last time I ran nvidia-xconfig, it caused display problems, so I haven't tried that right at the moment.

I have tried to be informative, however I really don't know exactly what I'm talking about, as I'm fairly new to linux. I have looked around other threads, and tried some suggestions, to no avail. So I will post the output of a few commands I have seen requested in those other threads.

lspci | grep VGA
01:00.0 VGA compatible controller: nVidia Corporation Geforce 9600 GT 512mb (rev a1)

compiz --replace
Checking for Xgl: not present.
No whitelisted driver found
aborting and using fallback: /usr/bin/metacity

xorg.conf
# xorg.conf (X.Org X Window System server configuration file)
#
# This file was generated by failsafeDexconf, using
# values from the debconf database and some overrides to use vesa mode.
#
# You should use dexconf or another such tool for creating a "real" xorg.conf
# For example:
# sudo dpkg-reconfigure -phigh xserver-xorg
Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "XkbRules" "xorg"
Option "XkbModel" "pc105"
Option "XkbLayout" "us"
EndSection

Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
EndSection

Section "Device"
Identifier "Configured Video Device"
Boardname "vesa"
Busid "PCI:1:0:0"
Driver "nv"
Screen 0
EndSection

Section "Monitor"
Identifier "Configured Monitor"
Vendorname "Generic LCD Display"
Modelname "LCD Panel 1680x1050"
Horizsync 31.5-65.5
Vertrefresh 56.0 - 65.0
modeline "800x600@56" 36.0 800 824 896 1024 600 601 603 625 +hsync +vsync
modeline "800x600@60" 40.0 800 840 968 1056 600 601 605 628 +hsync +vsync
modeline "1280x768@60" 80.14 1280 1344 1480 1680 768 769 772 795 -hsync +vsync
modeline "1280x720@60" 74.48 1280 1336 1472 1664 720 721 724 746 -hsync +vsync
modeline "1280x800@60" 83.46 1280 1344 1480 1680 800 801 804 828 -hsync +vsync
modeline "1440x900@60" 106.47 1440 1520 1672 1904 900 901 904 932 -hsync +vsync
modeline "1600x1024@60" 136.36 1600 1704 1872 2144 1024 1025 1028 1060 -hsync +vsync
modeline "1680x1050@60" 147.14 1680 1784 1968 2256 1050 1051 1054 1087 -hsync +vsync
Gamma 1.0
EndSection

Section "Screen"
Identifier "Default Screen"
Device "Configured Video Device"
Monitor "Configured Monitor"
Defaultdepth 24
SubSection "Display"
Depth 24
Modes "1680x1050@60" "1600x1024@60" "1440x900@60" "1280x800@60" "1280x720@60" "1280x768@60" "800x600@60" "800x600@56"
EndSubSection
EndSection

Section "ServerLayout"
Identifier "Default Layout"
screen 0 "Default Screen" 0 0
EndSection
Section "Module"
Load "glx"
Load "GLcore"
Load "v4l"
EndSection
Section "ServerFlags"
EndSection

uname -a
Linux linz-desktop 2.6.24-16-generic #1 SMP Thu Apr 10 13:23:42 UTC 2008 i686 GNU/Linux


dpkg-query -s nvidia-glx-new
Package: nvidia-glx-new
Status: install ok installed
Priority: optional
Section: restricted/misc
Installed-Size: 15256
Maintainer: Ubuntu Kernel Team <kernel-team@lists.ubuntu.com>
Architecture: i386
Source: linux-restricted-modules-2.6.24 (2.6.24.12-16.34)
Version: 169.12+2.6.24.12-16.34
Replaces: nvidia-glx-src
Provides: nvidia-glx, xserver-xorg-video-2
Depends: libc6 (>= 2.1.3), libgl1-mesa | libgl1, libglu1-mesa | libglu1, libx11-6, libxext6, linux-restricted-modules-common, xserver-xorg-core (>= 1:0.99.0-1)
Suggests: nvidia-new-kernel-source (>= 169.12), nvidia-settings
Conflicts: nvidia-glx, nvidia-glx-legacy, nvidia-glx-src, nvidia-xconfig
Description: NVIDIA binary XFree86 4.x/X.Org 'new' driver
These XFree86 4.x/X.Org binary drivers provide optimized hardware acceleration
of OpenGL applications via a direct-rendering X Server and supports the newer
GeForce, nForce and Quadro families of NVIDIA chipsets. AGP, TV-out and
flat panel displays are also supported.
.
If you have a TNT, TNT2, or older GeForce, you may need the nvidia-glx-legacy
package instead of this one. If you have a GeForce4, you may need the nvidia-glx
package.

nvidia-installer.log
nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Mon Apr 28 19:50:12 2008

option status:
license pre-accepted : false
update : false
force update : false
expert : false
uninstall : false
driver info : false
precompiled interfaces : true
no ncurses color : false
query latest version : false
OpenGL header files : true
no questions : false
silent : false
no recursion : false
no backup : false
kernel module only : false
sanity : false
add this kernel : false
no runlevel check : false
no network : false
no ABI note : false
no RPMs : false
no kernel module : false
force SELinux : default
no X server check : false
force tls : (not specified)
X install prefix : (not specified)
X library install path : (not specified)
X module install path : (not specified)
OpenGL install prefix : (not specified)
OpenGL install libdir : (not specified)
utility install prefix : (not specified)
utility install libdir : (not specified)
doc install prefix : (not specified)
kernel name : (not specified)
kernel include path : (not specified)
kernel source path : (not specified)
kernel output path : (not specified)
kernel install path : (not specified)
proc mount point : /proc
ui : (not specified)
tmpdir : /tmp
ftp mirror : ftp://download.nvidia.com
RPM file list : (not specified)

Using: nvidia-installer ncurses user interface
-> License accepted.
-> There appears to already be a driver installed on your system (version: 173.
08). As part of installing this driver (version: 171.06.01), the existing d
river will be uninstalled. Are you sure you want to continue? ('no' will ab
ort installation) (Answer: Yes)
-> No precompiled kernel interface was found to match your kernel; would you li
ke the installer to attempt to download a kernel interface for your kernel f
rom the NVIDIA ftp site (ftp://download.nvidia.com)? (Answer: No)
-> No precompiled kernel interface was found to match your kernel; this means
that the installer will need to compile a new kernel interface.
-> Performing CC sanity check with CC="cc".
-> Performing CC version check with CC="cc".
-> Kernel source path: '/lib/modules/2.6.24-16-generic/build'
-> Kernel output path: '/lib/modules/2.6.24-16-generic/build'
-> Performing rivafb check.
-> Performing nvidiafb check.
-> Performing Xen check.
-> Cleaning kernel module build directory.
executing: 'cd ./usr/src/nv; make clean'...
-> Building kernel module:
executing: 'cd ./usr/src/nv; make module SYSSRC=/lib/modules/2.6.24-16-gener
ic/build SYSOUT=/lib/modules/2.6.24-16-generic/build'...
NVIDIA: calling KBUILD...
make CC=cc KBUILD_VERBOSE=1 -C /lib/modules/2.6.24-16-generic/build SUBDIRS
=/tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/src/nv modules
test -e include/linux/autoconf.h -a -e include/config/auto.conf || ( \
echo; \
echo " ERROR: Kernel configuration is invalid."; \
echo " include/linux/autoconf.h or include/config/auto.conf are mis
sing."; \
echo " Run 'make oldconfig && make prepare' on kernel src to fix it
."; \
echo; \
/bin/false)
mkdir -p /tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/src/nv/.tmp_ver
sions ; rm -f /tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/src/nv/.tm
p_versions/*
make -f scripts/Makefile.build obj=/tmp/selfgz6763/NVIDIA-Linux-x86-171.06.0
1-pkg1/usr/src/nv
cc -Wp,-MD,/tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/src/nv/.nv.
o.d -nostdinc -isystem /usr/lib/gcc/i486-linux-gnu/4.2.3/include -D__KERNEL
__ -Iinclude -include include/linux/autoconf.h -Wall -Wundef -Wstrict-prot
otypes -Wno-trigraphs -fno-
strict-aliasing -fno-common -Werror-implicit-function-declaration -O2 -pipe
-msoft-float -mregparm=3 -freg-struct-return -mpreferred-stack-boundary=2 -
march=i586 -mtune=generic -ffreestanding -maccumulate-outgoing-args -Iincl
ude/asm-x86/mach-default -fomit-frame-pointer -g -fno-stack-protector -Wdec
laration-after-statement -Wno-pointer-sign -I/tmp/selfgz6763/NVIDIA-Linux-
x86-171.06.01-pkg1/usr/src/nv -Wall -Wimplicit -Wreturn-type -Wswitch -Wform
at -Wchar-subscripts -Wparentheses -Wpointer-arith -Wno-multichar -Werror -M
D -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -D
NV_VERSION_STRING=\"171.06.01\" -UDEBUG -U_DEBUG -DNDEBUG -DMODULE -D"KBUIL
D_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv)" -D"KBUILD_MODNAME=KBUILD_ST
R(nvidia)" -c -o /tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/src/nv/
.tmp_nv.o /tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/src/nv/nv.c
In file included from include/linux/list.h:8,
from include/linux/preempt.h:11,
from include/linux/spinlock.h:49,
from include/linux/seqlock.h:29,
from include/linux/time.h:8,
from include/linux/timex.h:57,
from include/linux/sched.h:53,
from include/linux/utsname.h:35,
from /tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/sr
c/nv/nv-linux.h:19,
from /tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/sr
c/nv/nv.c:14:
include/linux/prefetch.h: In function ‘prefetch_range’:
include/linux/prefetch.h:57: warning: pointer of type ‘void *’ used in a
rithmetic
In file included from include/asm/dma-mapping_32.h:5,
from include/asm/dma-mapping.h:2,
from include/linux/dma-mapping.h:52,
from include/asm-generic/pci-dma-compat.h:7,
from include/asm/pci.h:88,
from include/linux/pci.h:796,
from /tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/sr
c/nv/nv-linux.h:86,
from /tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/sr
c/nv/nv.c:14:
include/linux/scatterlist.h: In function ‘sg_virt’:
include/linux/scatterlist.h:293: warning: pointer of type ‘void *’ used
in arithmetic
cc -Wp,-MD,/tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/src/nv/.nv-
vm.o.d -nostdinc -isystem /usr/lib/gcc/i486-linux-gnu/4.2.3/include -D__KER
NEL__ -Iinclude -include include/linux/autoconf.h -Wall -Wundef -Wstrict-p
rototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-f
unction-declaration -O2 -pipe -msoft-float -mregparm=3 -freg-struct-return -
mpreferred-stack-boundary=2 -march=i586 -mtune=generic -ffreestanding -macc
umulate-outgoing-args -Iinclude/asm-x86/mach-default -fomit-frame-pointer
-g -fno-stack-protector -Wdeclaration-after-statement -Wno-pointer-sign -
I/tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/src/nv -Wall -Wimplicit
-Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wpointer-ar
ith -Wno-multichar -Werror -MD -Ws
ign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERS
ION_STRING=\"171.06.01\" -UDEBUG -U_DEBUG -DNDEBUG -DMODULE -D"KBUILD_STR(s
)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv_vm)" -D"KBUILD_MODNAME=KBUILD_STR(nv
idia)" -c -o /tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/src/nv/.tmp
_nv-vm.o /tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/src/nv/nv-vm.c
In file included from include/linux/list.h:8,
from include/linux/preempt.h:11,
from include/linux/spinlock.h:49,
from include/linux/seqlock.h:29,
from include/linux/time.h:8,
from include/linux/timex.h:57,
from include/linux/sched.h:53,
from include/linux/utsname.h:35,
from /tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/sr
c/nv/nv-linux.h:19,
from /tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/sr
c/nv/nv-vm.c:14:
include/linux/prefetch.h: In function ‘prefetch_range’:
include/linux/prefetch.h:57: warning: pointer of type ‘void *’ used in a
rithmetic
In file included from include/asm/dma-mapping_32.h:5,
from include/asm/dma-mapping.h:2,
from include/linux/dma-mapping.h:52,
from include/asm-generic/pci-dma-compat.h:7,
from include/asm/pci.h:88,
from include/linux/pci.h:796,
from /tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/sr
c/nv/nv-linux.h:86,
from /tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/sr
c/nv/nv-vm.c:14:
include/linux/scatterlist.h: In function ‘sg_virt’:
include/linux/scatterlist.h:293: warning: pointer of type ‘void *’ used
in arithmetic
cc -Wp,-MD,/tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/src/nv/.os-
agp.o.d -nostdinc -isystem /usr/lib/gcc/i486-linux-gnu/4.2.3/include -D__KE
RNEL__ -Iinclude -include include/linux/autoconf.h -Wall -Wundef -Wstrict-
prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-im
plicit-function-declaration -O2 -pipe -msoft-float -mregparm=3 -freg-struct-
return -mpreferred-stack-boundary=2 -march=i586 -mtune=generic -ffreestandi
ng -maccumulate-outgoing-args -Iinclude/asm-x86/mach-default -fomit-frame-
pointer -g -fno-stack-protector -Wdeclaration-after-statement -Wno-pointer-
sign -I/tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/src/nv -Wall -W
implicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wp
ointer-arith -Wno-multichar -Werror -MD -Wsign-compare -Wno-cast-qual -Wno
-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"171.06.01\" -UDEBU
G -U_DEBUG -DNDEBUG -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD
_STR(os_agp)" -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /tmp/selfgz6763/N
VIDIA-Linux-x86-171.06.01-pkg1/usr/src/nv/.tmp_os-agp.o /tmp/selfgz6763/NVID
IA-Linux-x86-171.06.01-pkg1/usr/src/nv/os-agp.c
In file included from include/linux/list.h:8,
from include/linux/preempt.h:11,
from include/linux/spinlock.h:49,
from include/linux/seqlock.h:29,
from include/linux/time.h:8,
from include/linux/timex.h:57,
from include/linux/sched.h:53,
from include/linux/utsname.h:35,
from /tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/sr
c/nv/nv-linux.h:19,
from /tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/sr
c/nv/os-agp.c:24:
include/linux/prefetch.h: In function ‘prefetch_range’:
include/linux/prefetch.h:57: warning: pointer of type ‘void *’ used in a
rithmetic
In file included from include/asm/dma-mapping_32.h:5,
from include/asm/dma-mapping.h:2,
from include/linux/dma-mapping.h:52,
from include/asm-generic/pci-dma-compat.h:7,
from include/asm/pci.h:88,
from include/linux/pci.h:796,
from /tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/sr
c/nv/nv-linux.h:86,
from /tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/sr
c/nv/os-agp.c:24:
include/linux/scatterlist.h: In function ‘sg_virt’:
include/linux/scatterlist.h:293: warning: pointer of type ‘void *’ used
in arithmetic
cc -Wp,-MD,/tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/src/nv/.os-
interface.o.d -nostdinc -isystem /usr/lib/gcc/i486-linux-gnu/4.2.3/include
-D__KERNEL__ -Iinclude -include include/linux/autoconf.h -Wall -Wundef -Ws
trict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-imp
licit-function-declaration -O2 -pipe -msoft-float -mregparm=3 -freg-struct-r
eturn -mpreferred-stack-boundary=2 -march=i586 -mtune=generic -ffreestandin
g -maccumulate-outgoing-args -Iinclude/asm-x86/mach-default -fomit-frame-p
ointer -g -fno-stack-protector -Wdeclaration-after-statement -Wno-pointer-s
ign -I/tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/src/nv -Wall -Wi
mplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wpo
inter-arith -Wno-multichar -Werror -MD -Wsign-compare
-Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=
\"171.06.01\" -UDEBUG -U_DEBUG -DNDEBUG -DMODULE -D"KBUILD_STR(s)=#s" -D"KB
UILD_BASENAME=KBUILD_STR(os_interface)" -D"KBUILD_MODNAME=KBUILD_STR(nvidia
)" -c -o /tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/src/nv/.tmp_os-
interface.o /tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/src/nv/os-in
terface.c
In file included from include/linux/list.h:8,
from include/linux/preempt.h:11,
from include/linux/spinlock.h:49,
from include/linux/seqlock.h:29,
from include/linux/time.h:8,
from include/linux/timex.h:57,
from include/linux/sched.h:53,
from include/linux/utsname.h:35,
from /tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/sr
c/nv/nv-linux.h:19,
from /tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/sr
c/nv/os-interface.c:26:
include/linux/prefetch.h: In function ‘prefetch_range’:
include/linux/prefetch.h:57: warning: pointer of type ‘void *’ used in a
rithmetic
In file included from include/asm/dma-mapping_32.h:5,
from include/asm/dma-mapping.h:2,
from include/linux/dma-mapping.h:52,
from include/asm-generic/pci-dma-compat.h:7,
from include/asm/pci.h:88,
from include/linux/pci.h:796,
from /tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/sr
c/nv/nv-linux.h:86,
from /tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/sr
c/nv/os-interface.c:26:
include/linux/scatterlist.h: In function ‘sg_virt’:
include/linux/scatterlist.h:293: warning: pointer of type ‘void *’ used
in arithmetic
cc -Wp,-MD,/tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/src/nv/.os-
registry.o.d -nostdinc -isystem /usr/lib/gcc/i486-linux-gnu/4.2.3/include -
D__KERNEL__ -Iinclude -include include/linux/autoconf.h -Wall -Wundef -Wst
rict-prototypes -Wno-trigraphs -fno-strict-al
iasing -fno-common -Werror-implicit-function-declaration -O2 -pipe -msoft-fl
oat -mregparm=3 -freg-struct-return -mpreferred-stack-boundary=2 -march=i58
6 -mtune=generic -ffreestanding -maccumulate-outgoing-args -Iinclude/asm-x
86/mach-default -fomit-frame-pointer -g -fno-stack-protector -Wdeclaration-
after-statement -Wno-pointer-sign -I/tmp/selfgz6763/NVIDIA-Linux-x86-171.0
6.01-pkg1/usr/src/nv -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar
-subscripts -Wparentheses -Wpointer-arith -Wno-multichar -Werror -MD -Wsig
n-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSIO
N_STRING=\"171.06.01\" -UDEBUG -U_DEBUG -DNDEBUG -DMODULE -D"KBUILD_STR(s)=
#s" -D"KBUILD_BASENAME=KBUILD_STR(os_registry)" -D"KBUILD_MODNAME=KBUILD_ST
R(nvidia)" -c -o /tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/src/nv/
.tmp_os-registry.o /tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/src/n
v/os-registry.c
In file included from include/linux/list.h:8,
from include/linux/preempt.h:11,
from include/linux/spinlock.h:49,
from include/linux/seqlock.h:29,
from include/linux/time.h:8,
from include/linux/timex.h:57,
from include/linux/sched.h:53,
from include/linux/utsname.h:35,
from /tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/sr
c/nv/nv-linux.h:19,
from /tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/sr
c/nv/os-registry.c:15:
include/linux/prefetch.h: In function ‘prefetch_range’:
include/linux/prefetch.h:57: warning: pointer of type ‘void *’ used in a
rithmetic
In file included from include/asm/dma-mapping_32.h:5,
from include/asm/dma-mapping.h:2,
from include/linux/dma-mapping.h:52,
from include/asm-generic/pci-dma-compat.h:7,
from include/asm/pci.h:88,
from include/linux/pci.h:796,
from /tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/sr
c/nv/nv-linux.h:86,
from /tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/sr
c/nv/os-registry.c:15:
include/linux/scatterlist.h: In function ‘sg_virt’:
include/linux/scatterlist.h:293: warning: pointer of type ‘void *’ used
in arithmetic
cc -Wp,-MD,/tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/src/nv/.nv-
i2c.o.d -nostdinc -isystem /usr/lib/gcc/i486-linux-gnu/4.2.3/include -D__KE
RNEL__ -Iinclude -include include/linux/autoconf.h -Wall -Wundef -Wstrict-
prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-
function-declaration -O2 -pipe -msoft-float -mregparm=3 -freg-struct-return
-mpreferred-stack-boundary=2 -march=i586 -mtune=generic -ffreestanding -mac
cumulate-outgoing-args -Iinclude/asm-x86/mach-default -fomit-frame-pointer
-g -fno-stack-protector -Wdeclaration-after-statement -Wno-pointer-sign -
I/tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/src/nv -Wall -Wimplicit
-Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wpointer-a
rith -Wno-multichar -Werror -MD -Wsign-compare -Wno-cast-qual -Wno-error -
D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"171.06.01\" -UDEBUG -U_DEB
UG -DNDEBUG -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv_
i2c)" -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /tmp/selfgz6763/NVIDIA-Li
nux-x86-171.06.01-pkg1/usr/src/nv/.tmp_nv-i2c.o /tmp/selfgz6763/NVIDIA-Linux
-x86-171.06.01-pkg1/usr/src/nv/nv-i2c.c
In file included from include/linux/list.h:8,
from include/linux/preempt.h:11,
from include/linux/spinlock.h:49,
from include/linux/seqlock.h:29,
from include/linux/time.h:8,
from include/linux/timex.h:57,
from include/linux/sched.h:53,
from include/linux/utsname.h:35,
from /tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/sr
c/nv/nv-linux.h:19,
from /tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/sr
c/nv/nv-i2c.c:8:
include/linux/prefetch.h: In function ‘prefetch_range’:
include/linux/prefetch.h:57: warning: pointer of type ‘void *’ used in a
rithmetic
In file included from include/asm/dma-mapping_32.h:5,
from include/asm/dma-mapping.h:2,
from include/linux/dma-mapping.h:52,
from include/asm-generic/pci-dma-compat.h:7,
from include/asm/pci.h:88,
from include/linux/pci.h:796,
from /tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/sr
c/nv/nv-linux.h:86,
from /tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/sr
c/nv/nv-i2c.c:8:
include/linux/scatterlist.h: In function ‘sg_virt’:
include/linux/scatterlist.h:293: warning: pointer of type ‘void *’ used
in arithmetic
cc -Wp,-MD,/tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/src/nv/.nva
cpi.o.d -nostdinc -isystem /usr/lib/gcc/i486-linux-gnu/4.2.3/include -D__KE
RNEL__ -Iinclude -include include/linux/autoconf.h -Wall -Wundef -Wstrict-
prototypes -Wno-trigraphs -fn
o-strict-aliasing -fno-common -Werror-implicit-function-declaration -O2 -pip
e -msoft-float -mregparm=3 -freg-struct-return -mpreferred-stack-boundary=2
-march=i586 -mtune=generic -ffreestanding -maccumulate-outgoing-args -Iinc
lude/asm-x86/mach-default -fomit-frame-pointer -g -fno-stack-protector -Wde
claration-after-statement -Wno-pointer-sign -I/tmp/selfgz6763/NVIDIA-Linux
-x86-171.06.01-pkg1/usr/src/nv -Wall -Wimplicit -Wreturn-type -Wswitch -Wfor
mat -Wchar-subscripts -Wparentheses -Wpointer-arith -Wno-multichar -Werror -
MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -
DNV_VERSION_STRING=\"171.06.01\" -UDEBUG -U_DEBUG -DNDEBUG -DMODULE -D"KBUI
LD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nvacpi)" -D"KBUILD_MODNAME=KBUI
LD_STR(nvidia)" -c -o /tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/sr
c/nv/.tmp_nvacpi.o /tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/src/n
v/nvacpi.c
In file included from include/linux/list.h:8,
from include/linux/preempt.h:11,
from include/linux/spinlock.h:49,
from include/linux/seqlock.h:29,
from include/linux/time.h:8,
from include/linux/timex.h:57,
from include/linux/sched.h:53,
from include/linux/utsname.h:35,
from /tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/sr
c/nv/nv-linux.h:19,
from /tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/sr
c/nv/nvacpi.c:15:
include/linux/prefetch.h: In function ‘prefetch_range’:
include/linux/prefetch.h:57: warning: pointer of type ‘void *’ used in a
rithmetic
In file included from include/asm/dma-mapping_32.h:5,
from include/asm/dma-mapping.h:2,
from include/linux/dma-mapping.h:52,
from include/asm-generic/pci-dma-compat.h:7,
from include/asm/pci.h:88,
from include/linux/pci.h:796,
from /tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/sr
c/nv/nv-linux.h:86,
from /tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/sr
c/nv/nvacpi.c:15:
include/linux/scatterlist.h: In function ‘sg_virt’:
include/linux/scatterlist.h:293: warning: pointer of type ‘void *’ used
in arithmetic
ld -m elf_i386 -m elf_i386 -r -o /tmp/selfgz6763/NVIDIA-Linux-x86-171.06
.01-pkg1/usr/src/nv/nvidia.o /tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1
/usr/src/nv/nv-kernel.o /tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/
src/nv/nv.o /tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/src/nv/nv-vm
.o /tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/src/nv/os-agp.o /tmp/
selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/src/nv/os-interface.o /tmp/se
lfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/src/nv/os-registry.o /tmp/selfg
z6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/src/nv/nv-i2c.o /tmp/selfgz6763/NV
IDIA-Linux-x86-171.06.01-pkg1/usr/src/nv/nvacpi.o
Building modules, stage 2.
make -f /usr/src/linux-headers-2.6.24-16-generic/scripts/Makefile.modpost
scripts/mod/modpost -m -a -i /usr/src/linux-headers-2.6.24-16-generic/Modu
le.symvers -I /tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/src/nv/Mod
ule.symvers -o /tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/src/nv/Mo
dule.symvers -w -s
WARNING: could not find /tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/
src/nv/.nv-kernel.o.cmd for /tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/
usr/src/nv/nv-kernel.o
cc -Wp,-MD,/tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/src/nv/.nvi
dia.mod.o.d -nostdinc -isystem /usr/lib/gcc/i486-linux-gnu/4.2.3/include -D
__KERNEL__ -Iinclude -include include/linux/autoconf.h -Wall -Wundef -Wstr
ict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-impli
cit-function-declaration -O2 -pipe -msoft-float -mregparm=3 -freg-struct-ret
urn -mpreferred-stack-boundary=2 -march=i586 -mtune=generic -ffreestanding
-maccumulate-outgoing-args -Iinclude/asm-x86/mach-default -fomit-frame-poi
nter -g -fno-stack-protector -Wdeclaration-after-statement -Wno-pointer-sig
n -D"
KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nvidia.mod)" -D"KBUILD_MODN
AME=KBUILD_STR(nvidia)" -DMODULE -c -o /tmp/selfgz6763/NVIDIA-Linux-x86-171.
06.01-pkg1/usr/src/nv/nvidia.mod.o /tmp/selfgz6763/NVIDIA-Linux-x86-171.06.0
1-pkg1/usr/src/nv/nvidia.mod.c
ld -m elf_i386 -r -m elf_i386 --build-id -o /tmp/selfgz6763/NVIDIA-Linux-
x86-171.06.01-pkg1/usr/src/nv/nvidia.ko /tmp/selfgz6763/NVIDIA-Linux-x86-171
.06.01-pkg1/usr/src/nv/nvidia.o /tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-p
kg1/usr/src/nv/nvidia.mod.o
NVIDIA: left KBUILD.
-> done.
-> Kernel module compilation complete.
-> Kernel messages:
[ 77.383041] NET: Registered protocol family 10
[ 77.383308] lo: Disabled Privacy Extensions
[ 77.383748] ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 77.384241] ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 82.528442] UDF-fs: No VRS found
[ 83.341917] ISO 9660 Extensions: Microsoft Joliet Level 3
[ 83.541622] ISO 9660 Extensions: RRIP_1991A
[ 85.311974] NET: Registered protocol family 17
[ 89.153284] wlan0: Initial auth_alg=0
[ 89.153290] wlan0: authenticate with AP 00:13:46:c9:18:fe
[ 89.155751] wlan0: RX authentication from 00:13:46:c9:18:fe (alg=0
transaction=2 status=0)
[ 89.155756] wlan0: authenticated
[ 89.155759] wlan0: associate with AP 00:13:46:c9:18:fe
[ 89.157867] wlan0: RX AssocResp from 00:13:46:c9:18:fe (capab=0x431
status=0 aid=2)
[ 89.157871] wlan0: associated
[ 89.157875] wlan0: switched to short barker preamble
(BSSID=00:13:46:c9:18:fe)
[ 89.159827] ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[ 89.493151] padlock: VIA PadLock not detected.
[ 108.646481] wlan0: no IPv6 routers present
[ 214.159515] warning: process `nvidia-installe' used the deprecated sysctl
system call with 1.23.
[ 214.159528] warning: process `nvidia-installe' used the deprecated sysctl
system call with 1.23.
[ 214.218709] nvidia: module license 'NVIDIA' taints kernel.
[ 214.469323] ACPI: PCI Interrupt 0000:01:00.0[A] -> GSI 16 (level, low) ->
IRQ 16
[ 214.469338] PCI: Setting latency timer of device 0000:01:00.0 to 64
[ 214.469427] NVRM: loading NVIDIA UNIX x86 Kernel Module 171.06.01 Thu
Apr 10 18:29:47 PDT 2008
-> Installing both new and classic TLS OpenGL libraries.
-> Parsing log file:
-> done.
-> Validating previous installation:
-> done.
-> Uninstalling NVIDIA Accelerated Graphics Driver for Linux-x86 (1.0-17308
(173.08)):
-> done.
-> Uninstallation of existing driver: NVIDIA Accelerated Graphics Driver for
Linux-x86 (173.08) is complete.
-> Searching for conflicting X files:
-> done.
-> Searching for conflicting OpenGL files:
-> done.
-> Installing 'NVIDIA Accelerated Graphics Driver for Linux-x86' (171.06.01):
executing: '/sbin/ldconfig'...
executing: '/sbin/depmod -aq'...
-> done.
-> Driver file installation is complete.
-> Running post-install sanity check:
-> done.
-> Post-install sanity check passed.
-> Shared memory test passed.
-> Running runtime sanity check:
-> done.
-> Runtime sanity check passed.
-> Would you like to run the nvidia-xconfig utility to automatically update you
r X configuration file so that the NVIDIA X driver will be used when you res
tart X? Any pre-existing X configuration file will be backed up. (Answer: Y
es)
-> Your X configuration file has been successfully updated. Installation of
the NVIDIA Accelerated Graphics Driver for Linux-x86 (version: 171.06.01) is
now complete.

EDIT: added SKIP_CHECKS="yes" to my /usr/bin/compiz file, and the output of "compiz --replace" is:

Checking for Xgl: not present.
No whitelisted driver found
SKIP_CHECKS is yes, so continuing despite problems.
Checking for texture_from_pixmap: not present.
Trying again with indirect rendering:
Checking for texture_from_pixmap: not present.
SKIP_CHECKS is yes, so continuing despite problems.
Checking for nVidia: not present.
Checking for FBConfig: Xlib: extension "GLX" missing on display ":0.0".
Xlib: extension "GLX" missing on display ":0.0".
Xlib: extension "GLX" missing on display ":0.0".
Error: couldn't find RGB GLX visual
Xlib: extension "GLX" missing on display ":0.0".
Xlib: extension "GLX" missing on display ":0.0".
Xlib: extension "GLX" missing on display ":0.0".
Xlib: extension "GLX" missing on display ":0.0".
Xlib: extension "GLX" missing on display ":0.0".
Xlib: extension "GLX" missing on display ":0.0".
not present.
SKIP_CHECKS is yes, so continuing despite problems.
Checking for Xgl: not present.
Xlib: extension "GLX" missing on display ":0.0".
Xlib: extension "GLX" missing on display ":0.0".
Xlib: extension "GLX" missing on display ":0.0".
/usr/bin/compiz.real (core) - Fatal: glXCreateContext failed
/usr/bin/compiz.real (core) - Error: Failed to manage screen: 0
/usr/bin/compiz.real (core) - Fatal: No manageable screens found on display :0.0

and my /usr/bin/compiz

#!/bin/sh
# Compiz Manager wrapper script
#
# Copyright (c) 2007 Kristian Lyngstøl <kristian@bohemians.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#
#
# Contributions by: Treviño (3v1n0) <trevi55@gmail.com>, Ubuntu Packages
#
# Much of this code is based on Beryl code, also licensed under the GPL.
# This script will detect what options we need to pass to compiz to get it
# started, and start a default plugin and possibly window decorator.
#


COMPIZ_BIN_PATH="/usr/local/bin/" # For window decorators and compiz
PLUGIN_PATH="/usr/local/lib/compiz/"
GLXINFO="/usr/bin/glxinfo"
KWIN="/usr/bin/kwin"
METACITY="/usr/bin/metacity"
COMPIZ_NAME="compiz" # Final name for compiz (compiz.real)

# For Xgl LD_PRELOAD
LIBGL_NVIDIA="/usr/lib/nvidia/libGL.so.1.2.xlibmesa"
LIBGL_FGLRX="/usr/lib/fglrx/libGL.so.1.2.xlibmesa"

# Minimum amount of memory (in kilo bytes) that nVidia cards need
# to be allowed to start
# Set to 262144 to require 256MB
NVIDIA_MEMORY="65536" # 64MB
NVIDIA_SETTINGS="nvidia-settings" # Assume it's in the path by default

# For detecting what driver is in use, the + is for one or more /'s
XORG_DRIVER_PATH="/usr/lib/xorg/modules/drivers/+"

if [ -x $METACITY ]; then
FALLBACKWM="${METACITY}"
elif [ -x $KWIN ]; then
FALLBACKWM="${KWIN}"
else
FALLBACKWM=true
fi
FALLBACKWM_OPTIONS="--replace $@"

# Driver whitelist
WHITELIST="nvidia intel ati radeon i810 fglrx"

# blacklist based on the pci ids
# See http://wiki.compiz-fusion.org/Hardware/Blacklist for details
#T=" 1002:5954 1002:5854 1002:5955" # ati rs480
#T="$T 1002:4153" # ATI Rv350
#T="$T 1002:3152 1002:3150 1002:5462 1002:5653 " # ati X300 X600,X600 X700
T=""
BLACKLIST_PCIIDS="$T"
unset T

COMPIZ_OPTIONS="--ignore-desktop-hints --replace"
COMPIZ_PLUGINS="core"
ENV=""

# Use emerald by default if it exist
USE_EMERALD="yes"

# No indirect by default
INDIRECT="no"

# Default X.org log if xset q doesn't reveal it
XORG_DEFAULT_LOG="/var/log/Xorg.0.log"

# Set to yes to enable verbose
VERBOSE="yes"
SKIP_CHECKS="yes"

# Echos the arguments if verbose
verbose()
{
if [ "x$VERBOSE" = "xyes" ]; then
printf "$*"
fi
}

# abort script and run fallback windowmanager
abort_with_fallback_wm()
{
if [ "x$SKIP_CHECKS" = "xyes" ]; then
verbose "SKIP_CHECKS is yes, so continuing despite problems.\n"
return 0;
fi

if [ "x$CM_DRY" = "xyes" ]; then
verbose "Dry run failed: Problems detected with 3D support.'n"
exit 1;
fi

verbose "aborting and using fallback: $FALLBACKWM \n"

if [ -x $FALLBACKWM ]; then
exec $FALLBACKWM $FALLBACKWM_OPTIONS
else
printf "no $FALLBACKWM found, exiting\n"
exit 1
fi
}

# Check for non power of two texture support
check_npot_texture()
{
verbose "Checking for non power of two support: "
if glxinfo 2> /dev/null | egrep -q '(GL_ARB_texture_non_power_of_two|GL_NV_texture_re ctangle|GL_EXT_texture_rectangle|GL_ARB_texture_re ctangle)' ; then
verbose "present. \n";
return 0;
else
verbose "Not present. \n"
return 1;
fi

}

# Check for presence of FBConfig
check_fbconfig()
{
verbose "Checking for FBConfig: "
if [ "$INDIRECT" = "yes" ]; then
$GLXINFO -i | grep -q GLX.*fbconfig
FB=$?
else
$GLXINFO | grep -q GLX.*fbconfig
FB=$?
fi

if [ $FB = "0" ]; then
unset FB
verbose "present. \n"
return 0;
else
unset FB
verbose "not present. \n"
return 1;
fi
}


# Check for TFP
check_tfp()
{
verbose "Checking for texture_from_pixmap: "
if [ $($GLXINFO 2>/dev/null | grep GLX_EXT_texture_from_pixmap -c) -gt 2 ] ; then
verbose "present. \n"
return 0;
else
verbose "not present. \n"
if [ "$INDIRECT" = "yes" ]; then
unset LIBGL_ALWAYS_INDIRECT
INDIRECT="no"
return 1;
else
verbose "Trying again with indirect rendering:\n";
INDIRECT="yes"
export LIBGL_ALWAYS_INDIRECT=1
check_tfp;
return $?
fi
fi
}

# Check wether the composite extension is present
check_composite()
{
verbose "Checking for Composite extension: "
if xdpyinfo -queryExtensions | grep -q Composite ; then
verbose "present. \n";
return 0;
else
verbose "not present. \n";
return 1;
fi
}

# Detects if Xgl is running
check_xgl()
{
verbose "Checking for Xgl: "
if xvinfo | grep -q Xgl ; then
verbose "present. \n"
return 0;
else
verbose "not present. \n"
return 1;
fi
}

# Check if the nVidia card has enough video ram to make sense
check_nvidia_memory()
{
if [ ! -x "$NVIDIA_SETTINGS" ]; then
return 0
fi

MEM=$(${NVIDIA_SETTINGS} -q VideoRam | egrep Attribute\ \'VideoRam\'\ .*: | cut -d: -f3 | sed 's/[^0-9]//g')
if [ $MEM -lt $NVIDIA_MEMORY ]; then
verbose "Less than ${NVIDIA_MEMORY}kb of memory and nVidia";
return 1;
fi
return 0;
}

# Check for existence if NV-GLX
check_nvidia()
{
if [ ! -z $NVIDIA_INTERNAL_TEST ]; then
return $NVIDIA_INTERNAL_TEST;
fi
verbose "Checking for nVidia: "
if xdpyinfo | grep -q NV-GLX ; then
verbose "present. \n"
NVIDIA_INTERNAL_TEST=0
return 0;
else
verbose "not present. \n"
NVIDIA_INTERNAL_TEST=1
return 1;
fi
}

# Check if the max texture size is large enough compared to the resolution
check_texture_size()
{
TEXTURE_LIMIT=$(glxinfo -l | grep GL_MAX_TEXTURE_SIZE | sed 's/.*=[^0-9]//g')
RESOLUTION=$(xdpyinfo | grep -i dimensions: | sed 's/[^0-9]*pixels.*(.*).*//' | sed 's/[^0-9x]*//')
VRES=$(echo $RESOLUTION | sed 's/.*x//')
HRES=$(echo $RESOLUTION | sed 's/x.*//')
verbose "Comparing resolution ($RESOLUTION) to maximum 3D texture size ($TEXTURE_LIMIT): ";
if [ $VRES -gt $TEXTURE_LIMIT ] || [ $HRES -gt $TEXTURE_LIMIT ]; then
verbose "Failed.\n"
return 1;
fi
verbose "Passed.\n"
return 0
}

# check driver whitelist
running_under_whitelisted_driver()
{
LOG=$(xset q|grep "Log file"|awk '{print $3}')
if [ "$LOG" = "" ]; then
verbose "xset q doesn't reveal the location of the log file. Using fallback $XORG_DEFAULT_LOG \n"
LOG=$XORG_DEFAULT_LOG;
fi
if [ -z "$LOG" ];then
verbose "AIEEEEH, no Log file found \n"
verbose "$(xset q) \n"
return 0
fi

#don't run on laptops using ati driver
if laptop-detect; then
for DRV in ati radeon; do
if egrep -q "Loading ${XORG_DRIVER_PATH}${DRV}_drv\.so" $LOG &&
! egrep -q "Unloading ${XORG_DRIVER_PATH}${DRV}_drv\.so" $LOG;
then
verbose "Found laptop using ${DRV} driver. \n"
return 1
fi
done
fi

for DRV in ${WHITELIST}; do
if egrep -q "Loading ${XORG_DRIVER_PATH}${DRV}_drv\.so" $LOG &&
! egrep -q "Unloading ${XORG_DRIVER_PATH}${DRV}_drv\.so" $LOG;
then
return 0
fi
done
verbose "No whitelisted driver found\n"
return 1
}

# check pciid blacklist
have_blacklisted_pciid()
{
OUTPUT=$(lspci -n)
for ID in ${BLACKLIST_PCIIDS}; do
if echo "$OUTPUT" | egrep -q "$ID"; then
verbose "Blacklisted PCIID '$ID' found \n"
return 0
fi
done
OUTPUT=$(lspci -vn | grep -i VGA)
verbose "Detected PCI ID for VGA: $OUTPUT\n"
return 1
}

build_env()
{
if check_nvidia; then
ENV="__GL_YIELD=NOTHING "
fi
if [ "$INDIRECT" = "yes" ]; then
ENV="$ENV LIBGL_ALWAYS_INDIRECT=1 "
fi
if check_xgl; then
if [ -f ${LIBGL_NVIDIA} ]; then
ENV="$ENV LD_PRELOAD=${LIBGL_NVIDIA}"
verbose "Enabling Xgl with nVidia drivers...\n"
fi
if [ -f ${LIBGL_FGLRX} ]; then
ENV="$ENV LD_PRELOAD=${LIBGL_FGLRX}"
verbose "Enabling Xgl with fglrx ATi drivers...\n"
fi
fi

ENV="$ENV FROM_WRAPPER=yes"

if [ -n "$ENV" ]; then
export $ENV
fi
}

build_args()
{
if [ "x$INDIRECT" = "xyes" ]; then
COMPIZ_OPTIONS="$COMPIZ_OPTIONS --indirect-rendering "
fi
if check_nvidia; then
if [ "x$INDIRECT" != "xyes" ]; then
COMPIZ_OPTIONS="$COMPIZ_OPTIONS --loose-binding"
fi
fi
}

####################
# Execution begins here.

# Read configuration from XDG paths
if [ -z "$XDG_CONFIG_DIRS" ]; then
test -f /etc/xdg/compiz/compiz-manager && . /etc/xdg/compiz/compiz-manager
else
test -f $XDG_CONFIG_DIRS/compiz/compiz-manager && . $XDG_CONFIG_DIRS/compiz/compiz-manager
fi

if [ -z "$XDG_CONFIG_HOME" ]; then
test -f $HOME/.config/compiz/compiz-manager && . $HOME/.config/compiz/compiz-manager
else
test -f $XDG_CONFIG_HOME/compiz/compiz-manager && . $XDG_CONFIG_HOME/compiz/compiz-manager
fi

# Don't use compiz when running the failsafe session
if [ "x$GNOME_DESKTOP_SESSION_ID" = "xFailsafe" ]; then
abort_with_fallback_wm
fi

if [ "x$LIBGL_ALWAYS_INDIRECT" = "x1" ]; then
INDIRECT="yes";
fi

# if we run under Xgl, we can skip some tests here
if ! check_xgl; then
# if vesa or vga are in use, do not even try glxinfo (LP#119341)
if ! running_under_whitelisted_driver || have_blacklisted_pciid; then
abort_with_fallback_wm
fi
# check if we have the required bits to run compiz and if not,
# fallback
if ! check_tfp || ! check_npot_texture || ! check_composite || ! check_texture_size; then
abort_with_fallback_wm
fi

if check_nvidia && ! check_nvidia_memory; then
abort_with_fallback_wm
fi

if ! check_fbconfig; then
abort_with_fallback_wm
fi
fi

# load the ccp plugin if present and fallback to plain gconf if not
if [ -f ${PLUGIN_PATH}libccp.so ]; then
COMPIZ_PLUGINS="$COMPIZ_PLUGINS ccp"
elif [ -f ${PLUGIN_PATH}libgconf.so ]; then
COMPIZ_PLUGINS="$COMPIZ_PLUGINS glib gconf"
fi

# get environment
build_env
build_args

if [ "x$CM_DRY" = "xyes" ]; then
verbose "Dry run finished: everything should work with regards to Compiz and 3D.\n"
exit 0;
fi

${COMPIZ_BIN_PATH}${COMPIZ_NAME} $COMPIZ_OPTIONS "$@" $COMPIZ_PLUGINS || exec $FALLBACKWM $FALLBACKWM_OPTIONS



Thanks in advance! If you need any more command outputs/files just ask...

Eclipse.
April 28th, 2008, 08:27 AM
Hello all.

I have recently obtained an MSI 9600GT 512MB OC graphics card, and I installed it in my computer. Ubuntu had display problems (when I say display problems, I mean flickered bars that are unreadable, and also being forced to run in low graphics mode (using VESA drivers?)) with it at first, but then I downloaded the 173.08 linux driver from NVIDIA, and I followed the instructions given elsewhere on the forum to install it, and somehow I got it to work after numerous restarts and playing with xconf files.

Last night I upgraded my operating system to 8.04, using an ISO file burnt to DVD. I do not remember if I had display problems with it, but I had it working. However, compiz's visual effects were turned off. So I proceded to turn them on, to get the following error: "Desktop effects could not be enabled."

So after playing around with a few suggestions, such as installing xgl, I still could not enable desktop effects. Also, I noticed that something else didn't like my driver (I think it is because I compiled it on the gutsy kernel, not the hardy kernel?). So I tried reinstalling the 173.08 driver, and this gave me display problems... so I got the 171.06 driver, and installed that, and I have the display working now.

I am not sure if Ubuntu is using the nvidia driver, because I open the nvidia x server settings, it tells "You do not appear to be using the NVIDIA X driver. Please edit your X configuration file (just run `nvidia-xconfig` as root), and restart the X server." However last time I ran nvidia-xconfig, it caused display problems, so I haven't tried that right at the moment.

I have tried to be informative, however I really don't know exactly what I'm talking about, as I'm fairly new to linux. I have looked around other threads, and tried some suggestions, to no avail. So I will post the output of a few commands I have seen requested in those other threads.

lspci | grep VGA
01:00.0 VGA compatible controller: nVidia Corporation Geforce 9600 GT 512mb (rev a1)compiz --replace
Checking for Xgl: not present.
No whitelisted driver found
aborting and using fallback: /usr/bin/metacity xorg.conf
# xorg.conf (X.Org X Window System server configuration file)
#
# This file was generated by failsafeDexconf, using
# values from the debconf database and some overrides to use vesa mode.
#
# You should use dexconf or another such tool for creating a "real" xorg.conf
# For example:
# sudo dpkg-reconfigure -phigh xserver-xorg
Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "XkbRules" "xorg"
Option "XkbModel" "pc105"
Option "XkbLayout" "us"
EndSection

Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
EndSection

Section "Device"
Identifier "Configured Video Device"
Boardname "vesa"
Busid "PCI:1:0:0"
Driver "nv"
Screen 0
EndSection

Section "Monitor"
Identifier "Configured Monitor"
Vendorname "Generic LCD Display"
Modelname "LCD Panel 1680x1050"
Horizsync 31.5-65.5
Vertrefresh 56.0 - 65.0
modeline "800x600@56" 36.0 800 824 896 1024 600 601 603 625 +hsync +vsync
modeline "800x600@60" 40.0 800 840 968 1056 600 601 605 628 +hsync +vsync
modeline "1280x768@60" 80.14 1280 1344 1480 1680 768 769 772 795 -hsync +vsync
modeline "1280x720@60" 74.48 1280 1336 1472 1664 720 721 724 746 -hsync +vsync
modeline "1280x800@60" 83.46 1280 1344 1480 1680 800 801 804 828 -hsync +vsync
modeline "1440x900@60" 106.47 1440 1520 1672 1904 900 901 904 932 -hsync +vsync
modeline "1600x1024@60" 136.36 1600 1704 1872 2144 1024 1025 1028 1060 -hsync +vsync
modeline "1680x1050@60" 147.14 1680 1784 1968 2256 1050 1051 1054 1087 -hsync +vsync
Gamma 1.0
EndSection

Section "Screen"
Identifier "Default Screen"
Device "Configured Video Device"
Monitor "Configured Monitor"
Defaultdepth 24
SubSection "Display"
Depth 24
Modes "1680x1050@60" "1600x1024@60" "1440x900@60" "1280x800@60" "1280x720@60" "1280x768@60" "800x600@60" "800x600@56"
EndSubSection
EndSection

Section "ServerLayout"
Identifier "Default Layout"
screen 0 "Default Screen" 0 0
EndSection
Section "Module"
Load "glx"
Load "GLcore"
Load "v4l"
EndSection
Section "ServerFlags"
EndSectionuname -a
Linux linz-desktop 2.6.24-16-generic #1 SMP Thu Apr 10 13:23:42 UTC 2008 i686 GNU/Linux
dpkg-query -s nvidia-glx-new
Package: nvidia-glx-new
Status: install ok installed
Priority: optional
Section: restricted/misc
Installed-Size: 15256
Maintainer: Ubuntu Kernel Team <kernel-team@lists.ubuntu.com>
Architecture: i386
Source: linux-restricted-modules-2.6.24 (2.6.24.12-16.34)
Version: 169.12+2.6.24.12-16.34
Replaces: nvidia-glx-src
Provides: nvidia-glx, xserver-xorg-video-2
Depends: libc6 (>= 2.1.3), libgl1-mesa | libgl1, libglu1-mesa | libglu1, libx11-6, libxext6, linux-restricted-modules-common, xserver-xorg-core (>= 1:0.99.0-1)
Suggests: nvidia-new-kernel-source (>= 169.12), nvidia-settings
Conflicts: nvidia-glx, nvidia-glx-legacy, nvidia-glx-src, nvidia-xconfig
Description: NVIDIA binary XFree86 4.x/X.Org 'new' driver
These XFree86 4.x/X.Org binary drivers provide optimized hardware acceleration
of OpenGL applications via a direct-rendering X Server and supports the newer
GeForce, nForce and Quadro families of NVIDIA chipsets. AGP, TV-out and
flat panel displays are also supported.
.
If you have a TNT, TNT2, or older GeForce, you may need the nvidia-glx-legacy
package instead of this one. If you have a GeForce4, you may need the nvidia-glx
package.nvidia-installer.log
nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Mon Apr 28 19:50:12 2008

option status:
license pre-accepted : false
update : false
force update : false
expert : false
uninstall : false
driver info : false
precompiled interfaces : true
no ncurses color : false
query latest version : false
OpenGL header files : true
no questions : false
silent : false
no recursion : false
no backup : false
kernel module only : false
sanity : false
add this kernel : false
no runlevel check : false
no network : false
no ABI note : false
no RPMs : false
no kernel module : false
force SELinux : default
no X server check : false
force tls : (not specified)
X install prefix : (not specified)
X library install path : (not specified)
X module install path : (not specified)
OpenGL install prefix : (not specified)
OpenGL install libdir : (not specified)
utility install prefix : (not specified)
utility install libdir : (not specified)
doc install prefix : (not specified)
kernel name : (not specified)
kernel include path : (not specified)
kernel source path : (not specified)
kernel output path : (not specified)
kernel install path : (not specified)
proc mount point : /proc
ui : (not specified)
tmpdir : /tmp
ftp mirror : ftp://download.nvidia.com
RPM file list : (not specified)

Using: nvidia-installer ncurses user interface
-> License accepted.
-> There appears to already be a driver installed on your system (version: 173.
08). As part of installing this driver (version: 171.06.01), the existing d
river will be uninstalled. Are you sure you want to continue? ('no' will ab
ort installation) (Answer: Yes)
-> No precompiled kernel interface was found to match your kernel; would you li
ke the installer to attempt to download a kernel interface for your kernel f
rom the NVIDIA ftp site (ftp://download.nvidia.com)? (Answer: No)
-> No precompiled kernel interface was found to match your kernel; this means
that the installer will need to compile a new kernel interface.
-> Performing CC sanity check with CC="cc".
-> Performing CC version check with CC="cc".
-> Kernel source path: '/lib/modules/2.6.24-16-generic/build'
-> Kernel output path: '/lib/modules/2.6.24-16-generic/build'
-> Performing rivafb check.
-> Performing nvidiafb check.
-> Performing Xen check.
-> Cleaning kernel module build directory.
executing: 'cd ./usr/src/nv; make clean'...
-> Building kernel module:
executing: 'cd ./usr/src/nv; make module SYSSRC=/lib/modules/2.6.24-16-gener
ic/build SYSOUT=/lib/modules/2.6.24-16-generic/build'...
NVIDIA: calling KBUILD...
make CC=cc KBUILD_VERBOSE=1 -C /lib/modules/2.6.24-16-generic/build SUBDIRS
=/tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/src/nv modules
test -e include/linux/autoconf.h -a -e include/config/auto.conf || ( \
echo; \
echo " ERROR: Kernel configuration is invalid."; \
echo " include/linux/autoconf.h or include/config/auto.conf are mis
sing."; \
echo " Run 'make oldconfig && make prepare' on kernel src to fix it
."; \
echo; \
/bin/false)
mkdir -p /tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/src/nv/.tmp_ver
sions ; rm -f /tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/src/nv/.tm
p_versions/*
make -f scripts/Makefile.build obj=/tmp/selfgz6763/NVIDIA-Linux-x86-171.06.0
1-pkg1/usr/src/nv
cc -Wp,-MD,/tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/src/nv/.nv.
o.d -nostdinc -isystem /usr/lib/gcc/i486-linux-gnu/4.2.3/include -D__KERNEL
__ -Iinclude -include include/linux/autoconf.h -Wall -Wundef -Wstrict-prot
otypes -Wno-trigraphs -fno-
strict-aliasing -fno-common -Werror-implicit-function-declaration -O2 -pipe
-msoft-float -mregparm=3 -freg-struct-return -mpreferred-stack-boundary=2 -
march=i586 -mtune=generic -ffreestanding -maccumulate-outgoing-args -Iincl
ude/asm-x86/mach-default -fomit-frame-pointer -g -fno-stack-protector -Wdec
laration-after-statement -Wno-pointer-sign -I/tmp/selfgz6763/NVIDIA-Linux-
x86-171.06.01-pkg1/usr/src/nv -Wall -Wimplicit -Wreturn-type -Wswitch -Wform
at -Wchar-subscripts -Wparentheses -Wpointer-arith -Wno-multichar -Werror -M
D -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -D
NV_VERSION_STRING=\"171.06.01\" -UDEBUG -U_DEBUG -DNDEBUG -DMODULE -D"KBUIL
D_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv)" -D"KBUILD_MODNAME=KBUILD_ST
R(nvidia)" -c -o /tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/src/nv/
.tmp_nv.o /tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/src/nv/nv.c
In file included from include/linux/list.h:8,
from include/linux/preempt.h:11,
from include/linux/spinlock.h:49,
from include/linux/seqlock.h:29,
from include/linux/time.h:8,
from include/linux/timex.h:57,
from include/linux/sched.h:53,
from include/linux/utsname.h:35,
from /tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/sr
c/nv/nv-linux.h:19,
from /tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/sr
c/nv/nv.c:14:
include/linux/prefetch.h: In function ‘prefetch_range’:
include/linux/prefetch.h:57: warning: pointer of type ‘void *’ used in a
rithmetic
In file included from include/asm/dma-mapping_32.h:5,
from include/asm/dma-mapping.h:2,
from include/linux/dma-mapping.h:52,
from include/asm-generic/pci-dma-compat.h:7,
from include/asm/pci.h:88,
from include/linux/pci.h:796,
from /tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/sr
c/nv/nv-linux.h:86,
from /tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/sr
c/nv/nv.c:14:
include/linux/scatterlist.h: In function ‘sg_virt’:
include/linux/scatterlist.h:293: warning: pointer of type ‘void *’ used
in arithmetic
cc -Wp,-MD,/tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/src/nv/.nv-
vm.o.d -nostdinc -isystem /usr/lib/gcc/i486-linux-gnu/4.2.3/include -D__KER
NEL__ -Iinclude -include include/linux/autoconf.h -Wall -Wundef -Wstrict-p
rototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-f
unction-declaration -O2 -pipe -msoft-float -mregparm=3 -freg-struct-return -
mpreferred-stack-boundary=2 -march=i586 -mtune=generic -ffreestanding -macc
umulate-outgoing-args -Iinclude/asm-x86/mach-default -fomit-frame-pointer
-g -fno-stack-protector -Wdeclaration-after-statement -Wno-pointer-sign -
I/tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/src/nv -Wall -Wimplicit
-Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wpointer-ar
ith -Wno-multichar -Werror -MD -Ws
ign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERS
ION_STRING=\"171.06.01\" -UDEBUG -U_DEBUG -DNDEBUG -DMODULE -D"KBUILD_STR(s
)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv_vm)" -D"KBUILD_MODNAME=KBUILD_STR(nv
idia)" -c -o /tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/src/nv/.tmp
_nv-vm.o /tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/src/nv/nv-vm.c
In file included from include/linux/list.h:8,
from include/linux/preempt.h:11,
from include/linux/spinlock.h:49,
from include/linux/seqlock.h:29,
from include/linux/time.h:8,
from include/linux/timex.h:57,
from include/linux/sched.h:53,
from include/linux/utsname.h:35,
from /tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/sr
c/nv/nv-linux.h:19,
from /tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/sr
c/nv/nv-vm.c:14:
include/linux/prefetch.h: In function ‘prefetch_range’:
include/linux/prefetch.h:57: warning: pointer of type ‘void *’ used in a
rithmetic
In file included from include/asm/dma-mapping_32.h:5,
from include/asm/dma-mapping.h:2,
from include/linux/dma-mapping.h:52,
from include/asm-generic/pci-dma-compat.h:7,
from include/asm/pci.h:88,
from include/linux/pci.h:796,
from /tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/sr
c/nv/nv-linux.h:86,
from /tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/sr
c/nv/nv-vm.c:14:
include/linux/scatterlist.h: In function ‘sg_virt’:
include/linux/scatterlist.h:293: warning: pointer of type ‘void *’ used
in arithmetic
cc -Wp,-MD,/tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/src/nv/.os-
agp.o.d -nostdinc -isystem /usr/lib/gcc/i486-linux-gnu/4.2.3/include -D__KE
RNEL__ -Iinclude -include include/linux/autoconf.h -Wall -Wundef -Wstrict-
prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-im
plicit-function-declaration -O2 -pipe -msoft-float -mregparm=3 -freg-struct-
return -mpreferred-stack-boundary=2 -march=i586 -mtune=generic -ffreestandi
ng -maccumulate-outgoing-args -Iinclude/asm-x86/mach-default -fomit-frame-
pointer -g -fno-stack-protector -Wdeclaration-after-statement -Wno-pointer-
sign -I/tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/src/nv -Wall -W
implicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wp
ointer-arith -Wno-multichar -Werror -MD -Wsign-compare -Wno-cast-qual -Wno
-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"171.06.01\" -UDEBU
G -U_DEBUG -DNDEBUG -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD
_STR(os_agp)" -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /tmp/selfgz6763/N
VIDIA-Linux-x86-171.06.01-pkg1/usr/src/nv/.tmp_os-agp.o /tmp/selfgz6763/NVID
IA-Linux-x86-171.06.01-pkg1/usr/src/nv/os-agp.c
In file included from include/linux/list.h:8,
from include/linux/preempt.h:11,
from include/linux/spinlock.h:49,
from include/linux/seqlock.h:29,
from include/linux/time.h:8,
from include/linux/timex.h:57,
from include/linux/sched.h:53,
from include/linux/utsname.h:35,
from /tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/sr
c/nv/nv-linux.h:19,
from /tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/sr
c/nv/os-agp.c:24:
include/linux/prefetch.h: In function ‘prefetch_range’:
include/linux/prefetch.h:57: warning: pointer of type ‘void *’ used in a
rithmetic
In file included from include/asm/dma-mapping_32.h:5,
from include/asm/dma-mapping.h:2,
from include/linux/dma-mapping.h:52,
from include/asm-generic/pci-dma-compat.h:7,
from include/asm/pci.h:88,
from include/linux/pci.h:796,
from /tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/sr
c/nv/nv-linux.h:86,
from /tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/sr
c/nv/os-agp.c:24:
include/linux/scatterlist.h: In function ‘sg_virt’:
include/linux/scatterlist.h:293: warning: pointer of type ‘void *’ used
in arithmetic
cc -Wp,-MD,/tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/src/nv/.os-
interface.o.d -nostdinc -isystem /usr/lib/gcc/i486-linux-gnu/4.2.3/include
-D__KERNEL__ -Iinclude -include include/linux/autoconf.h -Wall -Wundef -Ws
trict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-imp
licit-function-declaration -O2 -pipe -msoft-float -mregparm=3 -freg-struct-r
eturn -mpreferred-stack-boundary=2 -march=i586 -mtune=generic -ffreestandin
g -maccumulate-outgoing-args -Iinclude/asm-x86/mach-default -fomit-frame-p
ointer -g -fno-stack-protector -Wdeclaration-after-statement -Wno-pointer-s
ign -I/tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/src/nv -Wall -Wi
mplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wpo
inter-arith -Wno-multichar -Werror -MD -Wsign-compare
-Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=
\"171.06.01\" -UDEBUG -U_DEBUG -DNDEBUG -DMODULE -D"KBUILD_STR(s)=#s" -D"KB
UILD_BASENAME=KBUILD_STR(os_interface)" -D"KBUILD_MODNAME=KBUILD_STR(nvidia
)" -c -o /tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/src/nv/.tmp_os-
interface.o /tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/src/nv/os-in
terface.c
In file included from include/linux/list.h:8,
from include/linux/preempt.h:11,
from include/linux/spinlock.h:49,
from include/linux/seqlock.h:29,
from include/linux/time.h:8,
from include/linux/timex.h:57,
from include/linux/sched.h:53,
from include/linux/utsname.h:35,
from /tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/sr
c/nv/nv-linux.h:19,
from /tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/sr
c/nv/os-interface.c:26:
include/linux/prefetch.h: In function ‘prefetch_range’:
include/linux/prefetch.h:57: warning: pointer of type ‘void *’ used in a
rithmetic
In file included from include/asm/dma-mapping_32.h:5,
from include/asm/dma-mapping.h:2,
from include/linux/dma-mapping.h:52,
from include/asm-generic/pci-dma-compat.h:7,
from include/asm/pci.h:88,
from include/linux/pci.h:796,
from /tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/sr
c/nv/nv-linux.h:86,
from /tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/sr
c/nv/os-interface.c:26:
include/linux/scatterlist.h: In function ‘sg_virt’:
include/linux/scatterlist.h:293: warning: pointer of type ‘void *’ used
in arithmetic
cc -Wp,-MD,/tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/src/nv/.os-
registry.o.d -nostdinc -isystem /usr/lib/gcc/i486-linux-gnu/4.2.3/include -
D__KERNEL__ -Iinclude -include include/linux/autoconf.h -Wall -Wundef -Wst
rict-prototypes -Wno-trigraphs -fno-strict-al
iasing -fno-common -Werror-implicit-function-declaration -O2 -pipe -msoft-fl
oat -mregparm=3 -freg-struct-return -mpreferred-stack-boundary=2 -march=i58
6 -mtune=generic -ffreestanding -maccumulate-outgoing-args -Iinclude/asm-x
86/mach-default -fomit-frame-pointer -g -fno-stack-protector -Wdeclaration-
after-statement -Wno-pointer-sign -I/tmp/selfgz6763/NVIDIA-Linux-x86-171.0
6.01-pkg1/usr/src/nv -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar
-subscripts -Wparentheses -Wpointer-arith -Wno-multichar -Werror -MD -Wsig
n-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSIO
N_STRING=\"171.06.01\" -UDEBUG -U_DEBUG -DNDEBUG -DMODULE -D"KBUILD_STR(s)=
#s" -D"KBUILD_BASENAME=KBUILD_STR(os_registry)" -D"KBUILD_MODNAME=KBUILD_ST
R(nvidia)" -c -o /tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/src/nv/
.tmp_os-registry.o /tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/src/n
v/os-registry.c
In file included from include/linux/list.h:8,
from include/linux/preempt.h:11,
from include/linux/spinlock.h:49,
from include/linux/seqlock.h:29,
from include/linux/time.h:8,
from include/linux/timex.h:57,
from include/linux/sched.h:53,
from include/linux/utsname.h:35,
from /tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/sr
c/nv/nv-linux.h:19,
from /tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/sr
c/nv/os-registry.c:15:
include/linux/prefetch.h: In function ‘prefetch_range’:
include/linux/prefetch.h:57: warning: pointer of type ‘void *’ used in a
rithmetic
In file included from include/asm/dma-mapping_32.h:5,
from include/asm/dma-mapping.h:2,
from include/linux/dma-mapping.h:52,
from include/asm-generic/pci-dma-compat.h:7,
from include/asm/pci.h:88,
from include/linux/pci.h:796,
from /tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/sr
c/nv/nv-linux.h:86,
from /tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/sr
c/nv/os-registry.c:15:
include/linux/scatterlist.h: In function ‘sg_virt’:
include/linux/scatterlist.h:293: warning: pointer of type ‘void *’ used
in arithmetic
cc -Wp,-MD,/tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/src/nv/.nv-
i2c.o.d -nostdinc -isystem /usr/lib/gcc/i486-linux-gnu/4.2.3/include -D__KE
RNEL__ -Iinclude -include include/linux/autoconf.h -Wall -Wundef -Wstrict-
prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-
function-declaration -O2 -pipe -msoft-float -mregparm=3 -freg-struct-return
-mpreferred-stack-boundary=2 -march=i586 -mtune=generic -ffreestanding -mac
cumulate-outgoing-args -Iinclude/asm-x86/mach-default -fomit-frame-pointer
-g -fno-stack-protector -Wdeclaration-after-statement -Wno-pointer-sign -
I/tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/src/nv -Wall -Wimplicit
-Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wpointer-a
rith -Wno-multichar -Werror -MD -Wsign-compare -Wno-cast-qual -Wno-error -
D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"171.06.01\" -UDEBUG -U_DEB
UG -DNDEBUG -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv_
i2c)" -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /tmp/selfgz6763/NVIDIA-Li
nux-x86-171.06.01-pkg1/usr/src/nv/.tmp_nv-i2c.o /tmp/selfgz6763/NVIDIA-Linux
-x86-171.06.01-pkg1/usr/src/nv/nv-i2c.c
In file included from include/linux/list.h:8,
from include/linux/preempt.h:11,
from include/linux/spinlock.h:49,
from include/linux/seqlock.h:29,
from include/linux/time.h:8,
from include/linux/timex.h:57,
from include/linux/sched.h:53,
from include/linux/utsname.h:35,
from /tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/sr
c/nv/nv-linux.h:19,
from /tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/sr
c/nv/nv-i2c.c:8:
include/linux/prefetch.h: In function ‘prefetch_range’:
include/linux/prefetch.h:57: warning: pointer of type ‘void *’ used in a
rithmetic
In file included from include/asm/dma-mapping_32.h:5,
from include/asm/dma-mapping.h:2,
from include/linux/dma-mapping.h:52,
from include/asm-generic/pci-dma-compat.h:7,
from include/asm/pci.h:88,
from include/linux/pci.h:796,
from /tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/sr
c/nv/nv-linux.h:86,
from /tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/sr
c/nv/nv-i2c.c:8:
include/linux/scatterlist.h: In function ‘sg_virt’:
include/linux/scatterlist.h:293: warning: pointer of type ‘void *’ used
in arithmetic
cc -Wp,-MD,/tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/src/nv/.nva
cpi.o.d -nostdinc -isystem /usr/lib/gcc/i486-linux-gnu/4.2.3/include -D__KE
RNEL__ -Iinclude -include include/linux/autoconf.h -Wall -Wundef -Wstrict-
prototypes -Wno-trigraphs -fn
o-strict-aliasing -fno-common -Werror-implicit-function-declaration -O2 -pip
e -msoft-float -mregparm=3 -freg-struct-return -mpreferred-stack-boundary=2
-march=i586 -mtune=generic -ffreestanding -maccumulate-outgoing-args -Iinc
lude/asm-x86/mach-default -fomit-frame-pointer -g -fno-stack-protector -Wde
claration-after-statement -Wno-pointer-sign -I/tmp/selfgz6763/NVIDIA-Linux
-x86-171.06.01-pkg1/usr/src/nv -Wall -Wimplicit -Wreturn-type -Wswitch -Wfor
mat -Wchar-subscripts -Wparentheses -Wpointer-arith -Wno-multichar -Werror -
MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -
DNV_VERSION_STRING=\"171.06.01\" -UDEBUG -U_DEBUG -DNDEBUG -DMODULE -D"KBUI
LD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nvacpi)" -D"KBUILD_MODNAME=KBUI
LD_STR(nvidia)" -c -o /tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/sr
c/nv/.tmp_nvacpi.o /tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/src/n
v/nvacpi.c
In file included from include/linux/list.h:8,
from include/linux/preempt.h:11,
from include/linux/spinlock.h:49,
from include/linux/seqlock.h:29,
from include/linux/time.h:8,
from include/linux/timex.h:57,
from include/linux/sched.h:53,
from include/linux/utsname.h:35,
from /tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/sr
c/nv/nv-linux.h:19,
from /tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/sr
c/nv/nvacpi.c:15:
include/linux/prefetch.h: In function ‘prefetch_range’:
include/linux/prefetch.h:57: warning: pointer of type ‘void *’ used in a
rithmetic
In file included from include/asm/dma-mapping_32.h:5,
from include/asm/dma-mapping.h:2,
from include/linux/dma-mapping.h:52,
from include/asm-generic/pci-dma-compat.h:7,
from include/asm/pci.h:88,
from include/linux/pci.h:796,
from /tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/sr
c/nv/nv-linux.h:86,
from /tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/sr
c/nv/nvacpi.c:15:
include/linux/scatterlist.h: In function ‘sg_virt’:
include/linux/scatterlist.h:293: warning: pointer of type ‘void *’ used
in arithmetic
ld -m elf_i386 -m elf_i386 -r -o /tmp/selfgz6763/NVIDIA-Linux-x86-171.06
.01-pkg1/usr/src/nv/nvidia.o /tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1
/usr/src/nv/nv-kernel.o /tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/
src/nv/nv.o /tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/src/nv/nv-vm
.o /tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/src/nv/os-agp.o /tmp/
selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/src/nv/os-interface.o /tmp/se
lfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/src/nv/os-registry.o /tmp/selfg
z6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/src/nv/nv-i2c.o /tmp/selfgz6763/NV
IDIA-Linux-x86-171.06.01-pkg1/usr/src/nv/nvacpi.o
Building modules, stage 2.
make -f /usr/src/linux-headers-2.6.24-16-generic/scripts/Makefile.modpost
scripts/mod/modpost -m -a -i /usr/src/linux-headers-2.6.24-16-generic/Modu
le.symvers -I /tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/src/nv/Mod
ule.symvers -o /tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/src/nv/Mo
dule.symvers -w -s
WARNING: could not find /tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/
src/nv/.nv-kernel.o.cmd for /tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/
usr/src/nv/nv-kernel.o
cc -Wp,-MD,/tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-pkg1/usr/src/nv/.nvi
dia.mod.o.d -nostdinc -isystem /usr/lib/gcc/i486-linux-gnu/4.2.3/include -D
__KERNEL__ -Iinclude -include include/linux/autoconf.h -Wall -Wundef -Wstr
ict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-impli
cit-function-declaration -O2 -pipe -msoft-float -mregparm=3 -freg-struct-ret
urn -mpreferred-stack-boundary=2 -march=i586 -mtune=generic -ffreestanding
-maccumulate-outgoing-args -Iinclude/asm-x86/mach-default -fomit-frame-poi
nter -g -fno-stack-protector -Wdeclaration-after-statement -Wno-pointer-sig
n -D"
KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nvidia.mod)" -D"KBUILD_MODN
AME=KBUILD_STR(nvidia)" -DMODULE -c -o /tmp/selfgz6763/NVIDIA-Linux-x86-171.
06.01-pkg1/usr/src/nv/nvidia.mod.o /tmp/selfgz6763/NVIDIA-Linux-x86-171.06.0
1-pkg1/usr/src/nv/nvidia.mod.c
ld -m elf_i386 -r -m elf_i386 --build-id -o /tmp/selfgz6763/NVIDIA-Linux-
x86-171.06.01-pkg1/usr/src/nv/nvidia.ko /tmp/selfgz6763/NVIDIA-Linux-x86-171
.06.01-pkg1/usr/src/nv/nvidia.o /tmp/selfgz6763/NVIDIA-Linux-x86-171.06.01-p
kg1/usr/src/nv/nvidia.mod.o
NVIDIA: left KBUILD.
-> done.
-> Kernel module compilation complete.
-> Kernel messages:
[ 77.383041] NET: Registered protocol family 10
[ 77.383308] lo: Disabled Privacy Extensions
[ 77.383748] ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 77.384241] ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 82.528442] UDF-fs: No VRS found
[ 83.341917] ISO 9660 Extensions: Microsoft Joliet Level 3
[ 83.541622] ISO 9660 Extensions: RRIP_1991A
[ 85.311974] NET: Registered protocol family 17
[ 89.153284] wlan0: Initial auth_alg=0
[ 89.153290] wlan0: authenticate with AP 00:13:46:c9:18:fe
[ 89.155751] wlan0: RX authentication from 00:13:46:c9:18:fe (alg=0
transaction=2 status=0)
[ 89.155756] wlan0: authenticated
[ 89.155759] wlan0: associate with AP 00:13:46:c9:18:fe
[ 89.157867] wlan0: RX AssocResp from 00:13:46:c9:18:fe (capab=0x431
status=0 aid=2)
[ 89.157871] wlan0: associated
[ 89.157875] wlan0: switched to short barker preamble
(BSSID=00:13:46:c9:18:fe)
[ 89.159827] ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[ 89.493151] padlock: VIA PadLock not detected.
[ 108.646481] wlan0: no IPv6 routers present
[ 214.159515] warning: process `nvidia-installe' used the deprecated sysctl
system call with 1.23.
[ 214.159528] warning: process `nvidia-installe' used the deprecated sysctl
system call with 1.23.
[ 214.218709] nvidia: module license 'NVIDIA' taints kernel.
[ 214.469323] ACPI: PCI Interrupt 0000:01:00.0[A] -> GSI 16 (level, low) ->
IRQ 16
[ 214.469338] PCI: Setting latency timer of device 0000:01:00.0 to 64
[ 214.469427] NVRM: loading NVIDIA UNIX x86 Kernel Module 171.06.01 Thu
Apr 10 18:29:47 PDT 2008
-> Installing both new and classic TLS OpenGL libraries.
-> Parsing log file:
-> done.
-> Validating previous installation:
-> done.
-> Uninstalling NVIDIA Accelerated Graphics Driver for Linux-x86 (1.0-17308
(173.08)):
-> done.
-> Uninstallation of existing driver: NVIDIA Accelerated Graphics Driver for
Linux-x86 (173.08) is complete.
-> Searching for conflicting X files:
-> done.
-> Searching for conflicting OpenGL files:
-> done.
-> Installing 'NVIDIA Accelerated Graphics Driver for Linux-x86' (171.06.01):
executing: '/sbin/ldconfig'...
executing: '/sbin/depmod -aq'...
-> done.
-> Driver file installation is complete.
-> Running post-install sanity check:
-> done.
-> Post-install sanity check passed.
-> Shared memory test passed.
-> Running runtime sanity check:
-> done.
-> Runtime sanity check passed.
-> Would you like to run the nvidia-xconfig utility to automatically update you
r X configuration file so that the NVIDIA X driver will be used when you res
tart X? Any pre-existing X configuration file will be backed up. (Answer: Y
es)
-> Your X configuration file has been successfully updated. Installation of
the NVIDIA Accelerated Graphics Driver for Linux-x86 (version: 171.06.01) is
now complete.EDIT: added SKIP_CHECKS="yes" to my /usr/bin/compiz file, and the output of "compiz --replace" is:

Checking for Xgl: not present.
No whitelisted driver found
SKIP_CHECKS is yes, so continuing despite problems.
Checking for texture_from_pixmap: not present.
Trying again with indirect rendering:
Checking for texture_from_pixmap: not present.
SKIP_CHECKS is yes, so continuing despite problems.
Checking for nVidia: not present.
Checking for FBConfig: Xlib: extension "GLX" missing on display ":0.0".
Xlib: extension "GLX" missing on display ":0.0".
Xlib: extension "GLX" missing on display ":0.0".
Error: couldn't find RGB GLX visual
Xlib: extension "GLX" missing on display ":0.0".
Xlib: extension "GLX" missing on display ":0.0".
Xlib: extension "GLX" missing on display ":0.0".
Xlib: extension "GLX" missing on display ":0.0".
Xlib: extension "GLX" missing on display ":0.0".
Xlib: extension "GLX" missing on display ":0.0".
not present.
SKIP_CHECKS is yes, so continuing despite problems.
Checking for Xgl: not present.
Xlib: extension "GLX" missing on display ":0.0".
Xlib: extension "GLX" missing on display ":0.0".
Xlib: extension "GLX" missing on display ":0.0".
/usr/bin/compiz.real (core) - Fatal: glXCreateContext failed
/usr/bin/compiz.real (core) - Error: Failed to manage screen: 0
/usr/bin/compiz.real (core) - Fatal: No manageable screens found on display :0.0and my /usr/bin/compiz

#!/bin/sh
# Compiz Manager wrapper script
#
# Copyright (c) 2007 Kristian Lyngstøl <kristian@bohemians.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#
#
# Contributions by: Treviño (3v1n0) <trevi55@gmail.com>, Ubuntu Packages
#
# Much of this code is based on Beryl code, also licensed under the GPL.
# This script will detect what options we need to pass to compiz to get it
# started, and start a default plugin and possibly window decorator.
#


COMPIZ_BIN_PATH="/usr/local/bin/" # For window decorators and compiz
PLUGIN_PATH="/usr/local/lib/compiz/"
GLXINFO="/usr/bin/glxinfo"
KWIN="/usr/bin/kwin"
METACITY="/usr/bin/metacity"
COMPIZ_NAME="compiz" # Final name for compiz (compiz.real)

# For Xgl LD_PRELOAD
LIBGL_NVIDIA="/usr/lib/nvidia/libGL.so.1.2.xlibmesa"
LIBGL_FGLRX="/usr/lib/fglrx/libGL.so.1.2.xlibmesa"

# Minimum amount of memory (in kilo bytes) that nVidia cards need
# to be allowed to start
# Set to 262144 to require 256MB
NVIDIA_MEMORY="65536" # 64MB
NVIDIA_SETTINGS="nvidia-settings" # Assume it's in the path by default

# For detecting what driver is in use, the + is for one or more /'s
XORG_DRIVER_PATH="/usr/lib/xorg/modules/drivers/+"

if [ -x $METACITY ]; then
FALLBACKWM="${METACITY}"
elif [ -x $KWIN ]; then
FALLBACKWM="${KWIN}"
else
FALLBACKWM=true
fi
FALLBACKWM_OPTIONS="--replace $@"

# Driver whitelist
WHITELIST="nvidia intel ati radeon i810 fglrx"

# blacklist based on the pci ids
# See http://wiki.compiz-fusion.org/Hardware/Blacklist for details
#T=" 1002:5954 1002:5854 1002:5955" # ati rs480
#T="$T 1002:4153" # ATI Rv350
#T="$T 1002:3152 1002:3150 1002:5462 1002:5653 " # ati X300 X600,X600 X700
T=""
BLACKLIST_PCIIDS="$T"
unset T

COMPIZ_OPTIONS="--ignore-desktop-hints --replace"
COMPIZ_PLUGINS="core"
ENV=""

# Use emerald by default if it exist
USE_EMERALD="yes"

# No indirect by default
INDIRECT="no"

# Default X.org log if xset q doesn't reveal it
XORG_DEFAULT_LOG="/var/log/Xorg.0.log"

# Set to yes to enable verbose
VERBOSE="yes"
SKIP_CHECKS="yes"

# Echos the arguments if verbose
verbose()
{
if [ "x$VERBOSE" = "xyes" ]; then
printf "$*"
fi
}

# abort script and run fallback windowmanager
abort_with_fallback_wm()
{
if [ "x$SKIP_CHECKS" = "xyes" ]; then
verbose "SKIP_CHECKS is yes, so continuing despite problems.\n"
return 0;
fi

if [ "x$CM_DRY" = "xyes" ]; then
verbose "Dry run failed: Problems detected with 3D support.'n"
exit 1;
fi

verbose "aborting and using fallback: $FALLBACKWM \n"

if [ -x $FALLBACKWM ]; then
exec $FALLBACKWM $FALLBACKWM_OPTIONS
else
printf "no $FALLBACKWM found, exiting\n"
exit 1
fi
}

# Check for non power of two texture support
check_npot_texture()
{
verbose "Checking for non power of two support: "
if glxinfo 2> /dev/null | egrep -q '(GL_ARB_texture_non_power_of_two|GL_NV_texture_re ctangle|GL_EXT_texture_rectangle|GL_ARB_texture_re ctangle)' ; then
verbose "present. \n";
return 0;
else
verbose "Not present. \n"
return 1;
fi

}

# Check for presence of FBConfig
check_fbconfig()
{
verbose "Checking for FBConfig: "
if [ "$INDIRECT" = "yes" ]; then
$GLXINFO -i | grep -q GLX.*fbconfig
FB=$?
else
$GLXINFO | grep -q GLX.*fbconfig
FB=$?
fi

if [ $FB = "0" ]; then
unset FB
verbose "present. \n"
return 0;
else
unset FB
verbose "not present. \n"
return 1;
fi
}


# Check for TFP
check_tfp()
{
verbose "Checking for texture_from_pixmap: "
if [ $($GLXINFO 2>/dev/null | grep GLX_EXT_texture_from_pixmap -c) -gt 2 ] ; then
verbose "present. \n"
return 0;
else
verbose "not present. \n"
if [ "$INDIRECT" = "yes" ]; then
unset LIBGL_ALWAYS_INDIRECT
INDIRECT="no"
return 1;
else
verbose "Trying again with indirect rendering:\n";
INDIRECT="yes"
export LIBGL_ALWAYS_INDIRECT=1
check_tfp;
return $?
fi
fi
}

# Check wether the composite extension is present
check_composite()
{
verbose "Checking for Composite extension: "
if xdpyinfo -queryExtensions | grep -q Composite ; then
verbose "present. \n";
return 0;
else
verbose "not present. \n";
return 1;
fi
}

# Detects if Xgl is running
check_xgl()
{
verbose "Checking for Xgl: "
if xvinfo | grep -q Xgl ; then
verbose "present. \n"
return 0;
else
verbose "not present. \n"
return 1;
fi
}

# Check if the nVidia card has enough video ram to make sense
check_nvidia_memory()
{
if [ ! -x "$NVIDIA_SETTINGS" ]; then
return 0
fi

MEM=$(${NVIDIA_SETTINGS} -q VideoRam | egrep Attribute\ \'VideoRam\'\ .*: | cut -d: -f3 | sed 's/[^0-9]//g')
if [ $MEM -lt $NVIDIA_MEMORY ]; then
verbose "Less than ${NVIDIA_MEMORY}kb of memory and nVidia";
return 1;
fi
return 0;
}

# Check for existence if NV-GLX
check_nvidia()
{
if [ ! -z $NVIDIA_INTERNAL_TEST ]; then
return $NVIDIA_INTERNAL_TEST;
fi
verbose "Checking for nVidia: "
if xdpyinfo | grep -q NV-GLX ; then
verbose "present. \n"
NVIDIA_INTERNAL_TEST=0
return 0;
else
verbose "not present. \n"
NVIDIA_INTERNAL_TEST=1
return 1;
fi
}

# Check if the max texture size is large enough compared to the resolution
check_texture_size()
{
TEXTURE_LIMIT=$(glxinfo -l | grep GL_MAX_TEXTURE_SIZE | sed 's/.*=[^0-9]//g')
RESOLUTION=$(xdpyinfo | grep -i dimensions: | sed 's/[^0-9]*pixels.*(.*).*//' | sed 's/[^0-9x]*//')
VRES=$(echo $RESOLUTION | sed 's/.*x//')
HRES=$(echo $RESOLUTION | sed 's/x.*//')
verbose "Comparing resolution ($RESOLUTION) to maximum 3D texture size ($TEXTURE_LIMIT): ";
if [ $VRES -gt $TEXTURE_LIMIT ] || [ $HRES -gt $TEXTURE_LIMIT ]; then
verbose "Failed.\n"
return 1;
fi
verbose "Passed.\n"
return 0
}

# check driver whitelist
running_under_whitelisted_driver()
{
LOG=$(xset q|grep "Log file"|awk '{print $3}')
if [ "$LOG" = "" ]; then
verbose "xset q doesn't reveal the location of the log file. Using fallback $XORG_DEFAULT_LOG \n"
LOG=$XORG_DEFAULT_LOG;
fi
if [ -z "$LOG" ];then
verbose "AIEEEEH, no Log file found \n"
verbose "$(xset q) \n"
return 0
fi

#don't run on laptops using ati driver
if laptop-detect; then
for DRV in ati radeon; do
if egrep -q "Loading ${XORG_DRIVER_PATH}${DRV}_drv\.so" $LOG &&
! egrep -q "Unloading ${XORG_DRIVER_PATH}${DRV}_drv\.so" $LOG;
then
verbose "Found laptop using ${DRV} driver. \n"
return 1
fi
done
fi

for DRV in ${WHITELIST}; do
if egrep -q "Loading ${XORG_DRIVER_PATH}${DRV}_drv\.so" $LOG &&
! egrep -q "Unloading ${XORG_DRIVER_PATH}${DRV}_drv\.so" $LOG;
then
return 0
fi
done
verbose "No whitelisted driver found\n"
return 1
}

# check pciid blacklist
have_blacklisted_pciid()
{
OUTPUT=$(lspci -n)
for ID in ${BLACKLIST_PCIIDS}; do
if echo "$OUTPUT" | egrep -q "$ID"; then
verbose "Blacklisted PCIID '$ID' found \n"
return 0
fi
done
OUTPUT=$(lspci -vn | grep -i VGA)
verbose "Detected PCI ID for VGA: $OUTPUT\n"
return 1
}

build_env()
{
if check_nvidia; then
ENV="__GL_YIELD=NOTHING "
fi
if [ "$INDIRECT" = "yes" ]; then
ENV="$ENV LIBGL_ALWAYS_INDIRECT=1 "
fi
if check_xgl; then
if [ -f ${LIBGL_NVIDIA} ]; then
ENV="$ENV LD_PRELOAD=${LIBGL_NVIDIA}"
verbose "Enabling Xgl with nVidia drivers...\n"
fi
if [ -f ${LIBGL_FGLRX} ]; then
ENV="$ENV LD_PRELOAD=${LIBGL_FGLRX}"
verbose "Enabling Xgl with fglrx ATi drivers...\n"
fi
fi

ENV="$ENV FROM_WRAPPER=yes"

if [ -n "$ENV" ]; then
export $ENV
fi
}

build_args()
{
if [ "x$INDIRECT" = "xyes" ]; then
COMPIZ_OPTIONS="$COMPIZ_OPTIONS --indirect-rendering "
fi
if check_nvidia; then
if [ "x$INDIRECT" != "xyes" ]; then
COMPIZ_OPTIONS="$COMPIZ_OPTIONS --loose-binding"
fi
fi
}

####################
# Execution begins here.

# Read configuration from XDG paths
if [ -z "$XDG_CONFIG_DIRS" ]; then
test -f /etc/xdg/compiz/compiz-manager && . /etc/xdg/compiz/compiz-manager
else
test -f $XDG_CONFIG_DIRS/compiz/compiz-manager && . $XDG_CONFIG_DIRS/compiz/compiz-manager
fi

if [ -z "$XDG_CONFIG_HOME" ]; then
test -f $HOME/.config/compiz/compiz-manager && . $HOME/.config/compiz/compiz-manager
else
test -f $XDG_CONFIG_HOME/compiz/compiz-manager && . $XDG_CONFIG_HOME/compiz/compiz-manager
fi

# Don't use compiz when running the failsafe session
if [ "x$GNOME_DESKTOP_SESSION_ID" = "xFailsafe" ]; then
abort_with_fallback_wm
fi

if [ "x$LIBGL_ALWAYS_INDIRECT" = "x1" ]; then
INDIRECT="yes";
fi

# if we run under Xgl, we can skip some tests here
if ! check_xgl; then
# if vesa or vga are in use, do not even try glxinfo (LP#119341)
if ! running_under_whitelisted_driver || have_blacklisted_pciid; then
abort_with_fallback_wm
fi
# check if we have the required bits to run compiz and if not,
# fallback
if ! check_tfp || ! check_npot_texture || ! check_composite || ! check_texture_size; then
abort_with_fallback_wm
fi

if check_nvidia && ! check_nvidia_memory; then
abort_with_fallback_wm
fi

if ! check_fbconfig; then
abort_with_fallback_wm
fi
fi

# load the ccp plugin if present and fallback to plain gconf if not
if [ -f ${PLUGIN_PATH}libccp.so ]; then
COMPIZ_PLUGINS="$COMPIZ_PLUGINS ccp"
elif [ -f ${PLUGIN_PATH}libgconf.so ]; then
COMPIZ_PLUGINS="$COMPIZ_PLUGINS glib gconf"
fi

# get environment
build_env
build_args

if [ "x$CM_DRY" = "xyes" ]; then
verbose "Dry run finished: everything should work with regards to Compiz and 3D.\n"
exit 0;
fi

${COMPIZ_BIN_PATH}${COMPIZ_NAME} $COMPIZ_OPTIONS "$@" $COMPIZ_PLUGINS || exec $FALLBACKWM $FALLBACKWM_OPTIONS

Thanks in advance! If you need any more command outputs/files just ask...


The problem is your using the "nv" driver and not the "nvidia" driver in your xorg.conf file like nvidia-settings said.Either change the nv to nvidia in your xorg.conf under the driver section or run "sudo nvidia-xconfig" from a terminal to make a new xorg.conf file.

That should solve it.;)

Linz
April 28th, 2008, 05:24 PM
I changed my xorg config to say "nvidia" instead of "nv", and Ubuntu went into low-graphics mode on reboot :( Does this mean my nvidia driver isn't working properly? Thanks anyway.

deepee111
April 28th, 2008, 09:15 PM
Having the exact same problem with a 7900 GS. I'll be watching this thread for ideas.

Edit: I'm not at home to try this, but it sounds like it may solve the problem. Did you preserve your old menu.lst when you upgraded? I'm pretty sure I did....which would cause the problem in the link below.

http://ubuntuforums.org/showpost.php?p=4801579&postcount=10

Linz
April 30th, 2008, 03:31 AM
Thanks, I tried that but it didn't work. :( I clicked replace for all of the questions about replacing files in the upgrade process.

Slim Odds
May 2nd, 2008, 11:13 AM
I changed my xorg config to say "nvidia" instead of "nv", and Ubuntu went into low-graphics mode on reboot :( Does this mean my nvidia driver isn't working properly? Thanks anyway.

Just changing your config file does not mean that the driver is actually installed. Try installing it first.

Enable the restricted drivers.....

lswest
May 2nd, 2008, 11:16 AM
try installing envyng from the repos and then see if it can get your graphics card working. (not sure if it can install the newest drivers at the moment)

Eclipse.
May 2nd, 2008, 12:57 PM
Just changing your config file does not mean that the driver is actually installed. Try installing it first.

Enable the restricted drivers.....

The 9600GT only works using the 171.06 BETA driver from the nvidia website.Meaning envy or any other methods wont work as they install the 196.12 driver.

Try this guide:

sudo gedit /etc/default/linux-restricted-modules-common

DISABLED_MODULES="nv nvidia_new"

sudo apt-get install linux-headers-`uname -r` build-essential gcc xserver-xorg-dev

sudo apt-get --purge remove nvidia-glx nvidia-glx-new nvidia-settings nvidia-kernel-common

sudo rm /etc/init.d/nvidia-*

sudo rm /lib/linux-restricted-modules/.nvidia_new_installed

------------------------------

Logout > Ctrl-Alt-F1 and switch to a tty and login

sudo /etc/init.d/gdm stop

sudo sh NVIDIA-Linux-x86-171.06-pkg1.run

Ctrl-Alt-Del for PC restart

Linz
May 4th, 2008, 05:01 AM
The 9600GT only works using the 171.06 BETA driver from the nvidia website.Meaning envy or any other methods wont work as they install the 196.12 driver.

Try this guide:

sudo gedit /etc/default/linux-restricted-modules-common

DISABLED_MODULES="nv nvidia_new"

sudo apt-get install linux-headers-`uname -r` build-essential gcc xserver-xorg-dev

sudo apt-get --purge remove nvidia-glx nvidia-glx-new nvidia-settings nvidia-kernel-common

sudo rm /etc/init.d/nvidia-*

sudo rm /lib/linux-restricted-modules/.nvidia_new_installed

------------------------------

Logout > Ctrl-Alt-F1 and switch to a tty and login

sudo /etc/init.d/gdm stop

sudo sh NVIDIA-Linux-x86-171.06-pkg1.run

Ctrl-Alt-Del for PC restart

I did a fresh install of Kubuntu 8.04 with KDE4 to find that I could not locate the wireless network settings... so then I did a fresh install of Ubuntu 8.04 and followed your instructions, and it works fine! Thanks! Every so often the screen goes black and I am presented with the login screen, to find that I have been logged out. I'm not sure if this is related, however I will make a separate thread for this.

psycho5
May 4th, 2008, 09:26 AM
The 9600GT only works using the 171.06 BETA driver from the nvidia website.Meaning envy or any other methods wont work as they install the 196.12 driver.

Try this guide:

sudo gedit /etc/default/linux-restricted-modules-common

DISABLED_MODULES="nv nvidia_new"

sudo apt-get install linux-headers-`uname -r` build-essential gcc xserver-xorg-dev

sudo apt-get --purge remove nvidia-glx nvidia-glx-new nvidia-settings nvidia-kernel-common

sudo rm /etc/init.d/nvidia-*

sudo rm /lib/linux-restricted-modules/.nvidia_new_installed

------------------------------

Logout > Ctrl-Alt-F1 and switch to a tty and login

sudo /etc/init.d/gdm stop

sudo sh NVIDIA-Linux-x86-171.06-pkg1.run

Ctrl-Alt-Del for PC restart

This works for 8 series as well, I was having problems running 8600GTS with 8.04, thanks alot =)

Martje_001
May 4th, 2008, 10:28 AM
The problem with changing only the 'driver' in xorg.conf is that there are some incorrect options for the new driver..

Try changing it back to nv and go to a terminal. Do
sudo apt-get install envyng
sudo envyng -t

d0b33
August 19th, 2008, 09:01 AM
The 9600GT only works using the 171.06 BETA driver from the nvidia website.Meaning envy or any other methods wont work as they install the 196.12 driver.

Try this guide:

sudo gedit /etc/default/linux-restricted-modules-common

DISABLED_MODULES="nv nvidia_new"

sudo apt-get install linux-headers-`uname -r` build-essential gcc xserver-xorg-dev

sudo apt-get --purge remove nvidia-glx nvidia-glx-new nvidia-settings nvidia-kernel-common

sudo rm /etc/init.d/nvidia-*

sudo rm /lib/linux-restricted-modules/.nvidia_new_installed

------------------------------

Logout > Ctrl-Alt-F1 and switch to a tty and login

sudo /etc/init.d/gdm stop

sudo sh NVIDIA-Linux-x86-171.06-pkg1.run

Ctrl-Alt-Del for PC restart

Thanks this worked...
I decided to just download the driver from nvidia's site and install it rather than follow the steps before logging out...

I just placed the driver in my home folder logged out to tty and stoppd GDM ran sudo sh (latestdriver).run
The nvidia installer setup everything automatically and I just restarted and now compiz works beautifully.
:)

Edit:

Very strange I tried my method again on a new installation but it failed... I'll try to follow everything

d0b33
August 22nd, 2008, 05:17 PM
This is so frustrating... I successfully installed the 173.14 driver a few days ago but second time around on a clean installation I'm having no luck, the same with pppoe first time I got it working now nothing...

WTH? :confused:

Edit:
OK got it working, my repos were outdated and I just had to download the glx packages with version numbers corresponding to nvidia's driver I downloaded. :)