LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 02-06-2009, 02:21 PM   #1
vegetassj2
Member
 
Registered: Jan 2005
Posts: 201

Rep: Reputation: 30
NVidia drivers + ubuntu = trouble?


Hi

It was a while since I last tried out a linuxdistro (I had dual boot but didn't really use linux that often anymore :O), but recently I swapped back. I chose to give ubuntu a try.
Everything went nice and smooth, however... after the install I wanted to play a linuxgame (chess in 3d o.o) and for some reason it didn't work. I assumed it were the nvidia drivers and got the latest one from the nvidia website.
Those drivers kinda messed up my display, so I posted a message in the ubuntuforums. The topic died, so I decided to seek for help on this forum.
Please read through the topic so you'll be fully informed about what I HAVE and HAVEN'T tried and what's the current status of the problem... that saves me from typing it all over in here :P


Thanks!
 
Old 02-06-2009, 04:17 PM   #2
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
Blog Entries: 3

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
guess your question how to I get my nvidia card to get going. well I have done 2 ways with 8.04.
be online system --> preferencers --> hardware enable non-free hardware sit back and let apt-get do its thing then reboot. drivers installed now go to System->Preference. Click on Desktop Effects and now you can play 3d chesse.
Your other problem My display setting are not right. sudo nvidia-settings save.
if still no 3d sudo nvidia-xorgconf . make sure like in the other forum to edit your xorg .

Quote:
Option "AddARGBGLXVisuals" "True"
Quote:
Option "DamageEvents" "True"
that is the ubuntu way linux I would as root glxgears and see if I had acceleration and rendering if if yes go set my disdlay if no . then hay down load the driver from nvidia and build install it and do the say yes thing to configure your xorg get it working . then enable my 3d desktop. then play chess any way you look at it you are reconfiguring the xorg to load the driver and setting up your display.
 
Old 02-07-2009, 06:02 AM   #3
vegetassj2
Member
 
Registered: Jan 2005
Posts: 201

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by Drakeo View Post
guess your question how to I get my nvidia card to get going. well I have done 2 ways with 8.04.
be online system --> preferencers --> hardware enable non-free hardware sit back and let apt-get do its thing then reboot. drivers installed now go to System->Preference. Click on Desktop Effects and now you can play 3d chesse.
Your other problem My display setting are not right. sudo nvidia-settings save.
if still no 3d sudo nvidia-xorgconf . make sure like in the other forum to edit your xorg .


that is the ubuntu way linux I would as root glxgears and see if I had acceleration and rendering if if yes go set my disdlay if no . then hay down load the driver from nvidia and build install it and do the say yes thing to configure your xorg get it working . then enable my 3d desktop. then play chess any way you look at it you are reconfiguring the xorg to load the driver and setting up your display.
I enabled the 177 driver that's in the "restricted driver" dialog and rebooted. The display output still is messy like here

My xorg.conf now looks like this:
Code:
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 1.0  (buildmeister@builder63)  Tue Nov  4 14:07:17 PST 2008

# xorg.conf (X.Org X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the xorg.conf manual page.
# (Type "man xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# Note that some configuration settings that could be done previously
# in this file, now are automatically configured by the server and settings
# here are ignored.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
#   sudo dpkg-reconfigure -phigh xserver-xorg

Section "ServerLayout"
    Identifier     "Default Layout"
    Screen         "Default Screen" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection

Section "Module"
    Load           "glx"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Keyboard0"
    Driver         "keyboard"
EndSection

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

Section "Monitor"
    Identifier     "Configured Monitor"
EndSection

Section "Device"
    Identifier     "Configured Video Device"
    Driver         "nvidia"
EndSection

Section "Screen"
    Identifier     "Default Screen"
    Device         "Configured Video Device"
    Monitor        "Configured Monitor"
    DefaultDepth    24
    Option         "UseFBDev" "true"
    Option         "NoLogo" "True"
    SubSection     "Display"
        Depth       24
        Modes      "1280x1024" "1024x768" "800x600" "640x480"
	Option 	   "AddARGBGLXVisuals" "True"
	Option     "DamageEvents" "True"
    EndSubSection
EndSection
And when I tried the glxgears command I got this:
Code:
stefaan@Stefaan-Ubuntu:~$ sudo glxgears
[sudo] password for stefaan: 
Xlib:  extension "GLX" missing on display ":0.0".
Error: couldn't get an RGB, Double-buffered visual
stefaan@Stefaan-Ubuntu:~$
The nvidia-settings thing says:
Quote:
You do not appear to be running the NVIDIA X driver. Please edit your X configuration file (just run 'nvidia-xconfig' as root) and restart the Xserver.
After doing so, nothing changed.

Any ideas?

Last edited by vegetassj2; 02-07-2009 at 06:04 AM.
 
Old 02-07-2009, 04:15 PM   #4
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
Blog Entries: 3

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
yes ubuntu strips that driver and if you look around you will see ubuntu has a nvida glx kernel. I know it is crazy and if you have glx installed separate and install nvidia. it will come back and say no glx. why because it is built in to the nvidia kernel and the glx server is for ati cards and when nvida did it glx check it disabled it form it's kernel. so not to hurt your system. so if you have glx installed uninstall it. theses are the reasons I use linux even when I am on my ubuntu machine. it is all linux I just build my nvidia kernel and install it from source. I like the little nvida splash screen. why do we call it the nvidia kernel it is a small sub system that taint the kernel. as a mater of fact I used slackbuild.org 2.6.27 kernel patch build scripts to build them for mandriva pclinux slackware etc. I build I configure it and I am the one to brake it. My xorg has my monitor configured if you ran sudo nvidia-setting yours would to.
Quote:
# File generated by XFdrake (rev 242880)


Section "InputDevice"
Identifier "Mouse1"
Driver "mouse"
Option "Protocol" "ExplorerPS/2"
Option "Device" "/dev/mouse"
EndSection
# File generated by XFdrake (rev 242880)

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig: version 1.0 (buildmeister@builder57) Wed Jul 2 12:30:48 PDT 2008

Section "ServerLayout"
Identifier "X.org Configured"
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse1" "CorePointer"
Screen 0 "Screen0" 0 0
EndSection

Section "Files"
ModulePath "/usr/lib/xorg/modules"
RgbPath "/usr/share/X11/rgb"
FontPath "/usr/share/fonts/TTF"
FontPath "/usr/share/fonts/OTF"
FontPath "/usr/share/fonts/Type1"
FontPath "/usr/share/fonts/misc"
FontPath "/usr/share/fonts/75dpi/:unscaled"
EndSection

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

Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
Option "XkbModel" "pc101"
Option "XkbLayout" "us"
EndSection

Section "Monitor"
Identifier "Monitor0"
VendorName "GWY"
ModelName "311"
#DisplaySize 330 240 # mm
Option "DPMS"
EndSection

Section "Device"
Identifier "Card0"
VendorName "nVidia Corporation"
BoardName "NV11 [GeForce2 MX/MX 400]"
Driver "nvidia"

### Available Driver options are:-
### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
### [arg]: arg optional
#Option "SWcursor" # [<bool>]
#Option "ShadowFB" # [<bool>]
#Option "FlatPanel" # [<bool>]
Option "AddARGBGLXVisuals" "True"
#Option "DualHead" # [<bool>]
#Option "HWcursor" # [<bool>]
Option "DamageEvents" "True"
#Option "VideoKey" # <i>
#Option "FPDither" # [<bool>]
#Option "UseFBDev" # [<bool>]
#Option "NoAccel" # [<bool>]
#Option "CrtcNumber" # <i>
#Option "FPTweak" # <i>
#Option "Rotate" # [<str>]
#Option "FPScale" # [<bool>]
EndSection

Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
DefaultDepth 24

Subsection "Display"
Depth 1
Viewport 0 0
EndSubsection

Subsection "Display"
Depth 4
Viewport 0 0
EndSubsection

Subsection "Display"
Depth 8
Viewport 0 0
EndSubsection

Subsection "Display"
Depth 15
Viewport 0 0
EndSubsection

Subsection "Display"
Depth 16
Viewport 0 0
EndSubsection

Subsection "Display"
Depth 24
Viewport 0 0
EndSubsection
EndSection
you need to as gui sudo nvidia-setting and save to xorg. if you do not have this program and it will not run right or set up your card you drivers are not there. log out then log in. and by the way you will see that 8,04 very few people got 3d to work do to the libmesa.so link problem ubuntu seems not to fix.

Last edited by Drakeo; 02-07-2009 at 04:19 PM.
 
Old 02-23-2009, 09:31 AM   #5
vegetassj2
Member
 
Registered: Jan 2005
Posts: 201

Original Poster
Rep: Reputation: 30
I'm getting tired from this *sigh*

I've lost everyone who posted something to try and help me... I did everything from the start.
First I went with the generic drivers. Everything went fine. Then I activated the restricted driver (system > administration > hardware drivers). It asked me to reboot. I did, and now I have the crappy screen again. All I want is that these videodrivers work like they should... I didn't know it could be this hard >.<

If you need a clearer view on what's happening with my poor PC, here's a video: yes, one of those waiting websites

If you need my current xorg.conf file, please enjoy this lap of text:

Quote:
# xorg.conf (X.Org X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the xorg.conf manual page.
# (Type "man xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# Note that some configuration settings that could be done previously
# in this file, now are automatically configured by the server and settings
# here are ignored.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
# sudo dpkg-reconfigure -phigh xserver-xorg

Section "Monitor"
Identifier "Configured Monitor"
EndSection

Section "Screen"
Identifier "Default Screen"
Monitor "Configured Monitor"
Device "Configured Video Device"
DefaultDepth 24
EndSection

Section "Module"
Load "glx"
EndSection

Section "Device"
Identifier "Configured Video Device"
Option "UseFBDev" "true"
Driver "nvidia"
Option "NoLogo" "True"
EndSection

EDIT:
Problem solved!
I reinstalled ubuntu (hooray for dataloss >.<), downloaded the nvidiadrivers from the nvidia website, and for the first time in my whole life, the installer actually did what it was supposed to do, and everything runs fine and smooth now.

Last edited by vegetassj2; 02-24-2009 at 10:45 AM.
 
  


Reply



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

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Trouble installing nvidia drivers using ubuntu Hamsterpie Linux - Newbie 3 06-27-2007 12:45 AM
Trouble installing nvidia drivers LeetChris Linux - Laptop and Netbook 10 02-27-2007 11:40 PM
Trouble installing Nvidia Drivers on Mandrake 10.1 whitelinux Mandriva 6 08-23-2006 01:55 AM
Having trouble installing nvidia drivers hbbtstar Linux - Software 3 08-29-2003 12:20 PM
Having trouble installing NVIDIA drivers. funkenbooty Linux - Newbie 6 07-27-2003 07:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 05:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration