LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 09-05-2007, 04:23 PM   #1
isuck@linux
Member
 
Registered: Jun 2006
Distribution: messed up debian
Posts: 250

Rep: Reputation: 30
DEbian etch, problem with new nvidia driver


I installed nvidia drivers using apt-get and they were working just fine, but when in check the nvidia site I found a newer one with an installer. I decided to give a try and install it. It worked perfectly, the new driver was faster and rendered much better. Then problem was when I reboot my computer, my nvidia driver didn't work anymore and got a black screen instead, I re-installed it and worked again, until i reboot my laptop again. Can anyone help me to solve this problem? I don't really know what could be wrong, I don't see any errors in the xconf logs. But I saw many errors in the log file from the nvidia-installer. Any help would be appreciated. TIA.
 
Old 09-05-2007, 04:33 PM   #2
utanja
Member
 
Registered: Apr 2004
Location: Europe:Salzburg Austria USA:Orlando,Florida;
Distribution: Debian
Posts: 624

Rep: Reputation: 32
Quote:
Originally Posted by isuck@linux View Post
I installed nvidia drivers using apt-get and they were working just fine, but when in check the nvidia site I found a newer one with an installer. I decided to give a try and install it. It worked perfectly, the new driver was faster and rendered much better. Then problem was when I reboot my computer, my nvidia driver didn't work anymore and got a black screen instead, I re-installed it and worked again, until i reboot my laptop again. Can anyone help me to solve this problem? I don't really know what could be wrong, I don't see any errors in the xconf logs. But I saw many errors in the log file from the nvidia-installer. Any help would be appreciated. TIA.
did you remove the nvidia drivers installed with apt-get?
 
Old 09-05-2007, 05:12 PM   #3
bryantrv
Member
 
Registered: Jan 2005
Location: DeLand, Florida US
Distribution: Debian Etch
Posts: 91

Rep: Reputation: 15
I had a bunch of issues with the nVidia driver and xorg until I installed and used Envy - I'm running Etch and another nVidia box on Lenny.
It really made the whole process painless- as well as kernel upgrades fairly easy.
 
Old 09-05-2007, 08:43 PM   #4
isuck@linux
Member
 
Registered: Jun 2006
Distribution: messed up debian
Posts: 250

Original Poster
Rep: Reputation: 30
i removed nvidia-glx and kernel-common and nvidia-settings, anything else that i should remove? I'll check that envy thing. thanks
 
Old 09-06-2007, 12:14 PM   #5
isuck@linux
Member
 
Registered: Jun 2006
Distribution: messed up debian
Posts: 250

Original Poster
Rep: Reputation: 30
does anyone know how to debug this kind of things? I can't fix anything if i dont know what it is.
 
Old 09-06-2007, 12:36 PM   #6
makuyl
Senior Member
 
Registered: Dec 2004
Location: Helsinki
Distribution: Debian Sid
Posts: 1,107

Rep: Reputation: 53
You could start with: grep "EE" /var/log/Xorg.0.log
Do: /etc/init.d/gdm stop
and: /etc/init.d/gdm start
from terminal and see if it spits out errors to the console or the xorg log file.
 
Old 09-06-2007, 01:11 PM   #7
farslayer
Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,231
Blog Entries: 5

Rep: Reputation: 189Reputation: 189
you have to purge the old drivers when you uninstall with apt-get, otherwise the driver from nvidia will break every time you reboot.

Quote:
Debian GNU/Linux or [K]Ubuntu with Xorg 7.x

If you wish to install the NVIDIA Linux graphics driver on a Debian GNU/Linux or Ubuntu system that ships with Xorg 7.x, please ensure that your system meets the following requirements:

* development tools like make and gcc are installed
* the linux-headers package matching the installed Linux kernel is installed
* the pkg-config and xserver-xorg-dev packages are installed
* the nvidia-glx package has been uninstalled with the --purge option and the files /etc/init.d/nvidia-glx and /etc/init.d/nvidia-kernel do not exist

If you use Ubuntu, please also ensure that the linux-restricted-modules or linux-restricted-modules-common packages have been uninstalled. Alternatively, you can edit the /etc/default/linux-restricted-modules or /etc/default/linux-restricted-modules-common configuration file and disable the NVIDIA linux-restricted kernel modules (nvidia, nvidia_legacy) via:

DISABLED_MODULES="nv nvidia_new"

Additionally, delete the following file if it exists:

/lib/linux-restricted-modules/.nvidia_new_installed

Please note: unfortunately, it has become difficult to keep track of the pre-/post-installation steps required for [K]Ubuntu, and the above instructions may be incomplete. If in doubt, it is recommended that you use your distributor's NVIDIA Linux graphics driver packages, exclusively.


If you require further assistance after following the instructions above, please see:
http://www.nvnews.net/vbulletin/showthread.php?t=46678.

Last edited by farslayer; 09-06-2007 at 01:12 PM.
 
Old 09-06-2007, 01:39 PM   #8
docalton
Member
 
Registered: Dec 2002
Location: St Louis, MO
Distribution: Arch Linux
Posts: 99

Rep: Reputation: 15
I have had issues with the Nvidia installer and Debian.

Look in the nvidia installer log. Look to see if you see anything related to PARA_VIRT (spelling???, im at work) (the para virtualization support I am assuming). You cannot have that enabled when using the nvidia installer. It will not complete the linking of the driver file.

To get around this, I have just been taking the debian config, changing that option to no then compiling my own kernel from the debian sources.

Hope this helps
 
Old 09-06-2007, 05:47 PM   #9
dahveed3
Member
 
Registered: Mar 2007
Posts: 191

Rep: Reputation: 31
He won't have Kernel para-virtualization related problems while running Etch. It still has the 2.6.18 Kernels, which did not enable this.

Just to also relate: Para-virtualization modules enabled in the 2.6.21 Kernels weren't the real problem. The problem was that since it was a new feature being tested, they made it a requirement for any other Kernel modules being loaded along to have GNU certification, which NVidia does not do to their NVidia.Ko kernel module. It therefore could not be built.

A 3rd party site added a GNU certified makefile to the NVidia installer's NVidia.Ko module. Using those patched drivers makes para-virtualization stay supported in the Kernel and yet allows NVidia drivers to build their needed Kernel module as well. All this will be solved permanently when using 2.6.22 Kernels, which removed the GNU certification requirement.

All moot in this case. His problem is elsewhere. He likely just needs to ensure Restricted Driver Manager is disabled and has uninstalled all previous nvidia related installs so that the official Nvidia script can proceed properly.

Edit:

Since this is Debian Etch and not Ubuntu, there is not Restricted Drivers Manager to worry about, unless you have taken on installing it yourself from the Ubuntu repositories. You probably haven't done that!

If NVidia is gone as far as aptitude search nvidia is concerned, then simply following the instructions to install the official driver should work out for you. As stated before:

Ctrl-alt-F1

Login as root and put in your password.

/etc/init.d/gdm stop

OR:

/etc/init.d/kdm stop

cd /home/your-user-name

sh NVIDIA(hit tab so the rest fills out for you).run (Hit enter.)

Say no to having it search the net for a kernel. Say yes to letting it build a kernel module. Say no to having it run nvidia-xconfig.

When done run:

dpkg-reconfigure xserver-xorg

Go through it, choosing appropriate responses and choose the NVIDIA driver and the correct monitor settings. I use Advanced for that and enter in the Vertical and Horizontal refresh ranges from my monitor's manual.

When done type:

reboot

And when the system reboot you should see the NVidia splash when X starts and you can run stuff like glxinfo and glxgears to test things out. You need to have mesa-utils (maybe its mesa-tools, I forget) to have those tests available. Install them with aptitude if you don't have them. Debian doesn't install them with xorg by default.

Try it. Report back if successful or not. If not, a more experienced guy or gal than myself will need to help further. That's how it worked well for me.

Edit -

IMPORTANT! Have build-essential, the matching linux-headers for your Kernel version, and the dev packages for xorg (I had those devs without installing any extras) installed as well. Don't see how you had things working without that anyway, but I'm just trying to cover all the bases I can think of. It's all in that quoted post from nvnews.

Last edited by dahveed3; 09-06-2007 at 06:11 PM.
 
Old 09-06-2007, 08:28 PM   #10
farslayer
Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,231
Blog Entries: 5

Rep: Reputation: 189Reputation: 189
The OP had no trouble installing the drivers from nvidias site and gettting them to work, the problem rears it's head after a reboot.. I had this same problem it's related to not purging the nvidia-glx package. honest...
 
Old 09-06-2007, 09:57 PM   #11
isuck@linux
Member
 
Registered: Jun 2006
Distribution: messed up debian
Posts: 250

Original Poster
Rep: Reputation: 30
Thanks a lot to all of you guys for the help. I was able to install the new nvidia driver following your advice, I don't see the nvidia screen when first loading up X and beryl still doesn't work like before but it's a beginning. I wonder if the fact that I don't see the NVIDIA screen and the fact that beryl doesn't work as expected is related. Does anyone know?
 
Old 09-07-2007, 06:42 AM   #12
isuck@linux
Member
 
Registered: Jun 2006
Distribution: messed up debian
Posts: 250

Original Poster
Rep: Reputation: 30
Thanks a lot to all of you guys for the help. I was able to install the new nvidia driver following your advice, I don't see the nvidia screen when first loading up X and beryl still doesn't work like before but it's a beginning. I wonder if the fact that I don't see the NVIDIA screen and the fact that beryl doesn't work as expected is related. Does anyone know?
 
Old 09-08-2007, 02:37 PM   #13
dahveed3
Member
 
Registered: Mar 2007
Posts: 191

Rep: Reputation: 31
I don't know whether you've been reading the various installation and troubleshooting guides. If so, I'm sure you've run glxinfo, glxgears, glxinfo | grep direct, checked out your /etc/X11/xorg.conf file to see that your running of dpkg-reconfigure xserver-xorg had placed the appropriate lines in there, etc, etc.

It's entirely possible that you have not even checked in aptitude whether all the nvidia related packages and kernel have been purged, and so the NVidia installer had been unsuccessful at completely installing all the various files so they work as designed.

Beryl not working is not really an indication as that might not be configured and installed correctly either. The checks noted above would be reliable indications of a successful NVidia driver install. The driver listed in xorg.conf would be NVIDIA (not nv or vesa), NVidia GLX would be the OpenGL driver (not mesa) and the line direct rendering yes would appear in glxinfo. And glxgears would show some nice frame rates.

Just to enlighten a bit more, you can remove the official NVidia driver by first doing that

ctrl-alt-F1
login:root
(your password)
/etc/init.d/kdm(or gdm) stop
nvidia-installer --uninstall

dpkg-reconfigure xserver-xorg

Change the driver to nv (or vesa, but nv's better if your card is supported)

reboot

Check in aptitude (aptitude search nvidia) and aptitude purge whatever it found that had an i (for installed) in it.

Then you can try reinstalling, as long as you have build-essential, xserver-xorg-dev, linux-headers (for your kernel version), that pkg thing I can't remember now exactly the name, all installed. The mesa-utils give you that glx-info stuff but it's optional. A good way to check things though, as you've read here.

If everything except Beryl works, just purge all the beryl, emerald, etc stuff and start over. I'd recommend Compiz Fusion at this time as it's the wave of the now instead of the past. Shame's repo always worked well for me, and the snapshot repo (which is the more conservative of the two) might work on Etch. His unstable repo will not. Otherwise, there is an alternative repo available. Just check them out at the compiz fusion websites and forums. They even have a nice wiki started now.
 
Old 09-08-2007, 03:14 PM   #14
bryantrv
Member
 
Registered: Jan 2005
Location: DeLand, Florida US
Distribution: Debian Etch
Posts: 91

Rep: Reputation: 15
If you have not tried Envy- I would really give it a go. I had similar problems on Etch until I used it.
 
Old 09-08-2007, 03:29 PM   #15
utanja
Member
 
Registered: Apr 2004
Location: Europe:Salzburg Austria USA:Orlando,Florida;
Distribution: Debian
Posts: 624

Rep: Reputation: 32
Quote:
Originally Posted by bryantrv View Post
If you have not tried Envy- I would really give it a go. I had similar problems on Etch until I used it.
i tired envy on a test box last night....it reported that is is not designed for my system....

however, the NVIDIA-INSTALLER work fine for me....NVIDIA MX440
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
tv-out not working nvidia 6100 LE debian etch spargonaut Linux - Hardware 0 07-21-2007 04:36 AM
Nvidia/XOrg problem - Debian Etch knappster Linux - Software 6 03-02-2007 08:52 PM
XGL and Nvidia driver Debian Etch fakie_flip Linux - Software 5 12-24-2006 07:17 AM
Suspend2, Debian Etch, NVIDIA, oh my! pda_h4x0r Linux - Kernel 0 10-04-2006 01:15 AM
nVidia GeForce 4 MX 440 and Debian Etch pda_h4x0r Linux - Hardware 0 05-09-2006 08:46 PM


All times are GMT -5. The time now is 04:58 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration