PDA

View Full Version : nVidia drivers still won't load...


Disillusion
October 13th, 2007, 04:52 PM
I've been having nvidia issues ever since I upgraded to gutsy (not recently, upgraded around beginning of beta). I haven't been able to get them to work properly yet. I've installed with envy and ubuntu loads up fine with "nvidia" in my xorg.conf, but compiz won't load and neither will nvidia settings. I'm fully upgraded, and ran envy -t in the recovery terminal after the latest kernel upgrade.

Can someone give me some things to check to figure out what the problem is?

ronacc
October 13th, 2007, 05:26 PM
just under defautldepth in youre section "screen" do you have
Option "AddARGBGLXVisuals" "True"
if not add it . like so


Section "Screen"
Identifier "Default Screen"
Device "Generic Video Card"
Monitor "SyncMaster"
DefaultDepth 24
Option "AddARGBGLXVisuals" "True"
SubSection "Display"
Depth 1
Modes "1440x900" "1280x1024" "1280x960" "1152x864" "1024x768" "832x624" "800x600" "720x400" "640x480"
EndSubSection
SubSection "Display"

Disillusion
October 13th, 2007, 05:57 PM
That's not the issue. I've tried my old xorg.conf from when everything worked fine in 7.04, and I've tried generating one from scratch. No luck. Here are two I've used that don't work:


Section "ServerLayout"

# Uncomment if you have a wacom tablet
# InputDevice "stylus" "SendCoreEvents"
# InputDevice "cursor" "SendCoreEvents"
# InputDevice "eraser" "SendCoreEvents"
Identifier "Default Layout"
Screen "Default Screen" 0 0
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
EndSection

Section "Files"
EndSection

Section "Module"
Load "glx"
EndSection

Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "CoreKeyboard"
Option "XkbRules" "xorg"
Option "XkbModel" "pc105"
Option "XkbLayout" "us"
Option "XkbOptions" "lv3:ralt_switch"
EndSection

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

Section "InputDevice"
Identifier "stylus"
Driver "wacom"
Option "Device" "/dev/input/wacom"
Option "Type" "stylus"
Option "ForceDevice" "ISDV4" # Tablet PC ONLY
EndSection

Section "InputDevice"
Identifier "eraser"
Driver "wacom"
Option "Device" "/dev/input/wacom"
Option "Type" "eraser"
Option "ForceDevice" "ISDV4" # Tablet PC ONLY
EndSection

Section "InputDevice"
Identifier "cursor"
Driver "wacom"
Option "Device" "/dev/input/wacom"
Option "Type" "cursor"
Option "ForceDevice" "ISDV4" # Tablet PC ONLY
EndSection

Section "Monitor"
Identifier "Generic Monitor"
HorizSync 30.0 - 100.0
VertRefresh 50.0 - 160.0
Option "DPMS"
EndSection

Section "Device"
Identifier "Nvidia 8800GTS"
Driver "nvidia"
EndSection

Section "Screen"
Identifier "Default Screen"
Device "Nvidia 8800GTS"
Monitor "Generic Monitor"
DefaultDepth 24
Option "AddARGBGLXVisuals" "True"
SubSection "Display"
Depth 24
Modes "1680x1050" "1024x768" "800x600"
EndSubSection
EndSection

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




Section "ServerLayout"

# Uncomment if you have a wacom tablet
# InputDevice "stylus" "SendCoreEvents"
# InputDevice "cursor" "SendCoreEvents"
# InputDevice "eraser" "SendCoreEvents"
Identifier "Default Layout"
screen 0 "Default Screen" 0 0
Inputdevice "Generic Keyboard"
Inputdevice "Configured Mouse"
EndSection

Section "Files"
EndSection

Section "Module"
Load "glx"
Load "v4l"
EndSection

Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "CoreKeyboard"
Option "XkbRules" "xorg"
Option "XkbModel" "pc105"
Option "XkbLayout" "us"
Option "XkbOptions" "lv3:ralt_switch"
EndSection

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

Section "InputDevice"
Identifier "stylus"
Driver "wacom"
Option "Device" "/dev/input/wacom"
Option "Type" "stylus"
Option "ForceDevice" "ISDV4"# Tablet PC ONLY
EndSection

Section "InputDevice"
Identifier "eraser"
Driver "wacom"
Option "Device" "/dev/input/wacom"
Option "Type" "eraser"
Option "ForceDevice" "ISDV4"# Tablet PC ONLY
EndSection

Section "InputDevice"
Identifier "cursor"
Driver "wacom"
Option "Device" "/dev/input/wacom"
Option "Type" "cursor"
Option "ForceDevice" "ISDV4"# Tablet PC ONLY
EndSection

Section "Monitor"
Identifier "Generic Monitor"
Horizsync 30.0 - 82.0
Vertrefresh 50.0 - 75.0
modeline "1680x1050_60.00" 147.1 1680 1784 1968 2256 1050 1051 1054 1087 -hsync +vsync
Option "DPMS"
EndSection

Section "Monitor"
Identifier "Monitor0"
Vendorname "Unknown"
Modelname "TV-0"
Horizsync 28.0 - 33.0
Vertrefresh 43.0 - 72.0
EndSection

Section "Device"
Identifier "Nvidia 8800GTS"
Driver "nvidia"
Option "AddARGBVisuals" "True"
Option "AddARGBGLXVisuals" "True"
Option "NoLogo" "True"
EndSection

Section "Device"
Identifier "Videocard0"
Driver "nvidia"
Vendorname "NVIDIA Corporation"
Boardname "GeForce 8800 GTS"
EndSection

Section "Screen"
Identifier "Default Screen"
Device "Nvidia 8800GTS"
Monitor "Generic Monitor"
Defaultdepth 24
Option "AddARGBGLXVisuals" "True"
Option "AddARGBVisuals" "True"
Option "NoLogo" "True"
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1680x1050_60.00"
EndSubSection
EndSection

Section "Screen"
Identifier "Screen0"
Device "Videocard0"
Monitor "Monitor0"
Defaultdepth 24
Option "TwinView" "1"
Option "metamodes" "TV: 1024x768 +1680+0, DFP: 1680x1050 +0+0"
EndSection

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

ronacc
October 13th, 2007, 08:45 PM
I believe there is a known problem with the current restricted drivers and the 8800 series cards . I remember seeing posts about it but didn't pay much attetion because my card is a 7600gs and also I use only drivers from nvidia.com.

Disillusion
October 13th, 2007, 10:15 PM
So there is no workaround?? This is preventing me from using ubuntu.

ronacc
October 13th, 2007, 10:25 PM
use the driver from nvidia.com

Disillusion
October 13th, 2007, 10:36 PM
isn't that what envy does though?

ronacc
October 13th, 2007, 11:39 PM
I dont know I never used envy , I have used the drivers directly from nvidia for many years. why go through a third party , installing the drivers directly from nvidia is easy and you know for shure what you have , no guessing about which version or who tweaked it.

FuturePilot
October 14th, 2007, 01:53 AM
These do not belong in the screen section
Option "AddARGBGLXVisuals" "True"
Option "AddARGBVisuals" "True"
Option "NoLogo" "True"
What is the output of
glxinfo?
And yes, Envy uses the driver from Nvidia's site.

Disillusion
October 14th, 2007, 11:21 AM
Ok, I moved those out of the screen into the device section. Here is the output of glxinfo:


direct rendering: No (If you want to find out why, try setting LIBGL_DEBUG=verbose)
server glx vendor string: SGI
server glx version string: 1.2
server glx extensions:
GLX_ARB_multisample, GLX_EXT_visual_info, GLX_EXT_visual_rating,
GLX_EXT_import_context, GLX_EXT_texture_from_pixmap, GLX_OML_swap_method,
GLX_SGI_make_current_read, GLX_SGIS_multisample, GLX_SGIX_hyperpipe,
GLX_SGIX_swap_barrier, GLX_SGIX_fbconfig
client glx vendor string: NVIDIA Corporation
client glx version string: 1.4
client glx extensions:
GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_visual_info,
GLX_EXT_visual_rating, GLX_EXT_import_context, GLX_SGI_video_sync,
GLX_NV_swap_group, GLX_NV_video_out, GLX_SGIX_fbconfig, GLX_SGIX_pbuffer,
GLX_SGI_swap_control, GLX_NV_float_buffer, GLX_ARB_fbconfig_float,
GLX_EXT_fbconfig_packed_float, GLX_EXT_texture_from_pixmap,
GLX_EXT_framebuffer_sRGB
GLX version: 1.2
GLX extensions:
GLX_ARB_multisample, GLX_EXT_visual_info, GLX_EXT_visual_rating,
GLX_EXT_import_context, GLX_EXT_texture_from_pixmap, GLX_SGIX_fbconfig,
GLX_ARB_get_proc_address
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: GeForce 8800 GTS/PCI/SSE2/3DNOW!
OpenGL version string: 1.2 (2.1.1 NVIDIA 100.14.19)
OpenGL extensions:
GL_ARB_depth_texture, GL_ARB_imaging, GL_ARB_multitexture,
GL_ARB_point_parameters, GL_ARB_point_sprite, GL_ARB_shadow,
GL_ARB_texture_border_clamp, GL_ARB_texture_cube_map,
GL_ARB_texture_env_add, GL_ARB_texture_env_combine,
GL_ARB_texture_env_dot3, GL_ARB_texture_mirrored_repeat,
GL_ARB_window_pos, GL_ARB_texture_non_power_of_two, GL_ARB_vertex_program,
GL_ARB_fragment_program, GL_EXT_abgr, GL_EXT_bgra, GL_EXT_blend_color,
GL_EXT_blend_func_separate, GL_EXT_blend_minmax, GL_EXT_blend_subtract,
GL_EXT_draw_range_elements, GL_EXT_fog_coord, GL_EXT_multi_draw_arrays,
GL_EXT_packed_pixels, GL_EXT_rescale_normal, GL_EXT_secondary_color,
GL_EXT_separate_specular_color, GL_EXT_shadow_funcs, GL_EXT_stencil_wrap,
GL_EXT_texture3D, GL_EXT_texture_edge_clamp, GL_EXT_texture_env_add,
GL_EXT_texture_env_combine, GL_EXT_texture_env_dot3, GL_EXT_texture_lod,
GL_EXT_texture_lod_bias, GL_EXT_texture_object, GL_EXT_vertex_array,
GL_ATI_texture_mirror_once, GL_IBM_texture_mirrored_repeat,
GL_NV_blend_square, GL_NV_texgen_reflection, GL_NV_texture_rectangle,
GL_NV_texture_env_combine4, GL_SGIS_generate_mipmap, GL_SGIS_texture_lod,
GL_SGIX_depth_texture, GL_SGIX_shadow

visual x bf lv rg d st colorbuffer ax dp st accumbuffer ms cav
id dep cl sp sz l ci b ro r g b a bf th cl r g b a ns b eat
----------------------------------------------------------------------
0x2c 24 tc 0 32 0 r y . 8 8 8 8 0 24 8 0 0 0 0 0 0 None
0x2d 24 tc 0 32 0 r . . 8 8 8 8 0 0 0 0 0 0 0 0 0 None
0x2e 32 tc 0 32 0 r y . 8 8 8 8 0 24 8 0 0 0 0 0 0 Ncon
0x2f 32 tc 0 32 0 r . . 8 8 8 8 0 0 0 0 0 0 0 0 0 Ncon

FuturePilot
October 14th, 2007, 12:14 PM
Hmmm. That seems to be fine. Have you tried running Compiz from the terminal?
compiz --replace
Usually that will give a good clue as to what is going on.

Disillusion
October 14th, 2007, 03:11 PM
Compiz won't run till direct rendering has a yes on glxinfo, but here is the output of compiz --replace:

compiz --replace
Checking for Xgl: present.
Checking for nVidia: not present.
Checking for Xgl: present.
Enabling Xgl with nVidia drivers...
/usr/bin/compiz: 378: /usr/local/bin/compiz: not found


nvidia-settings also does not work

it says 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.

MaX
October 14th, 2007, 03:48 PM
isn't that what envy does though?

Yes I think so.

I haven't had any problems at all with Envy, but since then I've reinstalled Gutsy from the DVD and now nvidia works flawlessly (7800 though)

You should at least run sudo aptitude install nvidia-glx-new

FuturePilot
October 14th, 2007, 05:17 PM
Compiz won't run till direct rendering has a yes on glxinfo, but here is the output of compiz --replace:

compiz --replace
Checking for Xgl: present.
Checking for nVidia: not present.
Checking for Xgl: present.
Enabling Xgl with nVidia drivers...
/usr/bin/compiz: 378: /usr/local/bin/compiz: not found


nvidia-settings also does not work

it says

If I may ask. why are you using XGL with Nvidia? It's not necessary. The Nvidia settings do not work because you're using XGL instead of normal xserver.

Disillusion
October 14th, 2007, 09:36 PM
XGL was causing problems. It wasn't set to load XGL, but it being installed seemed to cause issues. I removed it and now nvidia settings will load, but compiz is bombing out still.

compiz --replace
Checking for Xgl: not present.
Detected PCI ID for VGA: 01:00.0 0300: 10de:0193 (rev a2) (prog-if 00 [VGA])
Checking for texture_from_pixmap: present.
Checking for non power of two support: present.
Checking for Composite extension: present.
Comparing resolution (1680x1050) to maximum 3D texture size (8192): Passed.
Checking for nVidia: present.
Checking for FBConfig: present.
Checking for Xgl: not present.
/usr/bin/compiz: 378: /usr/local/bin/compiz: not found


glxinfo says direct rendering is now enabled

FuturePilot
October 14th, 2007, 09:43 PM
It looks like it has something to do with /usr/local/bin/compiz. Did you happen to create a custom launcher for it? Or symlink /usr/bin/compiz to /usr/local/bin/compiz?
Whatever it is, it seems like it's looking for something that isn't there.

Disillusion
October 14th, 2007, 09:50 PM
I don't think I did anything too weird, but I was using early versions of compiz fusion in 7.04. I'm going to try to purge compiz out completely and reinstall. I noticed it wants to take beryl out when i purge compiz. Can they not be installed at the same time anymore? Beryl works flawlessly now.

FuturePilot
October 14th, 2007, 09:56 PM
I think that has to do with the fact that Beryl is no longer supported anymore.

Purging Compiz and reinstalling it sounds like a good idea. It's probably messed up due to the fact that that version was compiled for Feisty. Make sure you removed the Feisty Compiz Fusion repos too, so that when you reinstall you pull Compiz out of Gutsy's repos.

cogadh
October 14th, 2007, 09:56 PM
That's not the issue. I've tried my old xorg.conf from when everything worked fine in 7.04, and I've tried generating one from scratch. No luck. Here are two I've used that don't work:


Section "Module"
Load "glx"
EndSection



Section "Module"
Load "glx"
Load "v4l"
EndSection

I don't think the glx module is supposed to be loaded if you have the Nvidia proprietary drivers installed. I would try commenting that line out of your xorg.conf.

FuturePilot
October 14th, 2007, 09:59 PM
I don't think the glx module is supposed to be loaded if you have the Nvidia proprietary drivers installed. I would try commenting that line out of your xorg.conf.

That's definitely supposed to be there. I'm guessing if you removed it X wouldn't start. That's a very important module.

cogadh
October 14th, 2007, 10:07 PM
That's definitely supposed to be there. I'm guessing if you removed it X wouldn't start. That's a very important module.
Ack, that's right, I was remembering that you should remove the "load GLCore" entry from the xorg.conf, not the "load glx". Sorry about that.

FuturePilot
October 14th, 2007, 10:30 PM
Ack, that's right, I was remembering that you should remove the "load GLCore" entry from the xorg.conf, not the "load glx". Sorry about that.

That's ok.;) Yeah, glcore you don't need.

Disillusion
October 14th, 2007, 10:33 PM
If there is some kind of weird symlink in there, how would i go about removing it?

FuturePilot
October 14th, 2007, 10:36 PM
Probably just use a root Nautilus
gksudo nautilus
and go into /usr/local/bin/
Don't do anything with /usr/bin/compiz. That's supposed to be there.
You can also check to see if there's anything in there with this command.
ls /usr/local/bin/

Disillusion
October 14th, 2007, 10:54 PM
Yeah... it's empty.

FuturePilot
October 14th, 2007, 10:59 PM
Have you tried purging and reinstalling everything related to Compiz?

Disillusion
October 14th, 2007, 11:11 PM
Have you tried purging and reinstalling everything related to Compiz?

I just said I did that a few posts ago. It knocked out beryl too.