Install Nvidia Driver when DDM doesn't quite get it

Post your tutorials and howtos here.
User avatar
ScottQuier
Posts: 1781
Joined: 18 Jul 2013 15:55
Location: Newport News, VA

Install Nvidia Driver when DDM doesn't quite get it

Postby ScottQuier » 13 Feb 2014 23:38

Before I start let me just say that the SolydXK Device Driver Manager (DDM for short) works absolutely 100% great for 99.9999% (ok, I made that number up) of the SolydXK users. However, when I was using an older Nvidia 7600 GT card, I was one of that 0.0001% for whom it just didn't work - it installed the wrong driver.

So, if you have an Nvidia card, you want to install the non-free drivers, and you've used DDM and it pretty much didn't performed as expected --- here's a way that should get you up an running.

I'm going to assume that the problem is that you've rebooted your machine and you end up with a nice shiny BLACK screen with or with out a cursor blinking in the upper left corner or it does boot up to the window manager but things just don't look quite right. Yeah, not optimal. ;)

Here's what I've done:
  1. Reboot the computer and when it gets to the grub menu, select your "normal" boot option as per this screenshot
    grub01.jpg
    Select your "normal" boot option - usually the first one.
    grub01.jpg (19.77 KiB) Viewed 6354 times
    1. Press the 'e' key to edit the boot option
    2. Down-Arrow to the linux command and append 'nomodeset' to the end of the command
      grub02.jpg
      The 'linux' command is the fourth line from the bottom. It's a long command and wraps ... see the 'nomodeset' argument?
      grub02.jpg (24.85 KiB) Viewed 6354 times
    3. Press F10 or Ctrl-X key combination to start the boot process
  2. The computer will either boot to the window manager or to a black screen with a blinking cursor
    1. Blinking cursor -
      1. Press the Ctrl-Alt-F1 key combination to display a command console.
      2. At the log in prompt, enter "root"
      3. Enter your root password. This is usually the same as the "sudo" password. If it's not, then you've changed and you know you have and you know what it is.
        grub03.jpg
        Log in as 'root', entering the password for that account.
        grub03.jpg (15.2 KiB) Viewed 6354 times
    2. Window Manager
      1. Log in as normal - your screen may look small, strange but it should be functional
      2. Open a terminal window
      3. At the log in prompt, enter "root"
      4. Enter your root password
  3. Remove any Nvidia stuff that may be there, getting in our way (note that some/all of the first three may return with an error message to the affect that "could not stat" the file. These you can ignore - just means you were attempting to delete a file that doesn't exit :))

    Code: Select all

    # rm /etc/X11/xorg.conf
    # rm /etc/modprobe.d/nvidia*
    # rm /etc/modprobe.d/blacklist-nouveau.conf
    # apt-get purge nvidia*
    # reboot
    
    At this point it "should" reboot normally using the nouveau driver. But, I've seen the nouveau not play well with some video card/kernel combinations. If so, you may need to reboot it again in the "nomodeset" way and pick up with the next step.
  4. Once the computer has been rebooted and you've logged in, open a terminal window and

    Code: Select all

    $ sudo apt-get install nvidia-detect
    $ nvidia-detect
    
    1. This will return something like this:

      Code: Select all

      Detected NVIDIA GPUs:
      01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GF106 [GeForce GTS 450] [10de:0dc4] (rev a1)
      Your card is supported by the default drivers and version 304.
      It is recommended to install the
          nvidia-driver
      package.
    2. or something like this:

      Code: Select all

      Detected NVIDIA GPUs:
      01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GFxxx [GeForce GT 7600] [10de:0dc4] (rev a1)
      Your card is supported by version 304.
      It is recommended to install the
          nvidia-legacy-304xx-driver
      package.
      If you don't get "nvidia-driver" and you don't get "nvidia-legacy-304xx-driver", just substitute what you did get into the "sudo apt-get install" command in the next step and continue.
  5. For the first case:

    Code: Select all

    $ sudo apt-get install nvidia-driver nvidia-xconfig
    $ sudo nvidia-xconfig
    $ sudo reboot
    And, if the reboot shows a borked screen, you will want to start over at #1 and install the legacy driver as in....
  6. For legacy cards:

    Code: Select all

    $ sudo apt-get install nvidia-legacy-304xx-driver nvidia-xconfig
    $ sudo nvidia-xconfig
    $ sudo reboot
  7. By the time you get to this point, if all has gone well, you'll be looking at a nice, clean, crisp, wonderful screen!
Scott
Quoting zerozero, "The usage of PPA's in debian-based
systems is risky at best and entails serious compatibility
problems; usually it's the best way to destroy an install"

User avatar
Arjen Balfoort
Site Admin
Posts: 9309
Joined: 26 Jan 2013 19:36
Location: Netherlands
Contact:

Re: Install Nvidia Driver when DDM doesn't quite get it

Postby Arjen Balfoort » 14 Feb 2014 05:52

Thanks, that is a very good tutorial...with pictures...I like pictures!

DDM should install the right packages, and configure correctly after removing the old drivers.
I'm not able to test that, though. I haven't got a legacy card.
So, if someone would like to try that out, and report back here... ;)

P.S.: If you do: run DDM from the terminal:

Code: Select all

ddm -d
This will generate a debug file which you can attach here: ~/ddm.log


SolydXK needs you!
Development | Testing | Translations

eidnch
Posts: 21
Joined: 12 Nov 2013 09:38

Re: Install Nvidia Driver when DDM doesn't quite get it

Postby eidnch » 14 Feb 2014 10:23

Thank you for this tutorial!

I have a old Nvidia Card, a GeForce 6100. Before i had a GeForce 7600 and there the nouveau driver worked well. But this card died, so i had to use the integrated GeForce 6100, where the nouveau driver didn't work well, so i was forced to use the proprietary legacy driver. DDM install all correct by me, also upgrading with the update manager in December kept the legacy driver. The problem started, when the upgrade process didn't work in January and i had to update manually. The post install command:

sudo apt-get install –reinstall nvidia-kernel-dkms

installed the wrong driver. So in my experience the problem is this command, if you have to use it.

User avatar
Arjen Balfoort
Site Admin
Posts: 9309
Joined: 26 Jan 2013 19:36
Location: Netherlands
Contact:

Re: Install Nvidia Driver when DDM doesn't quite get it

Postby Arjen Balfoort » 14 Feb 2014 10:48

Yes, it might be that nvidia-kernel-dkms depends on nvidia-driver, but is unaware of the legacy packages.
It's worthwhile to investigate this...later ;)


SolydXK needs you!
Development | Testing | Translations

User avatar
ScottQuier
Posts: 1781
Joined: 18 Jul 2013 15:55
Location: Newport News, VA

Re: Install Nvidia Driver when DDM doesn't quite get it

Postby ScottQuier » 14 Feb 2014 11:50

Schoelje wrote:Thanks, that is a very good tutorial...with pictures...I like pictures!
Pictures - for the longest time I kept wondering how people were able to capture screenshots of grub and the basic console - you know - before the window manager loaded.

Then it hit me yesterday .... Virtual Machine, baby!

But, yes, pictures make it soooo much easier for folks to follow along. They help avoid confusion as well.
Scott
Quoting zerozero, "The usage of PPA's in debian-based
systems is risky at best and entails serious compatibility
problems; usually it's the best way to destroy an install"

ajpat3
Posts: 28
Joined: 26 Aug 2013 01:10
Location: Klamath Falls, Oregon

Re: Install Nvidia Driver when DDM doesn't quite get it

Postby ajpat3 » 15 Feb 2014 01:54

Thanks so much for this. I've spent many a night chasing around the forums after I've mangled my card updates/installs. My notepads with scribbled commands maybe can be deep-sixed. Again thanks.
Arthur.
Solyd K 64
Solyd X 64

User avatar
CjTX2
Posts: 170
Joined: 23 Feb 2013 15:42
Location: Texas

Re: Install Nvidia Driver when DDM doesn't quite get it

Postby CjTX2 » 25 Apr 2014 19:23

Thank you so much, Scott. this was exactly what I needed. Read my sig and you will know that my 11 year old Garfield can be a real grouchy cat when he does not get fed exactly what he wants. He spit out LM13 with its last update and now only accepts SolydX. Thank you for keeping him going. I am collecting the parts for a new one soon. I only hope I can pick a mob that will perform and give me the longevity of Garfields. Doubt it though, they do not make them like they used to. :lol: LMDE-Xfce saved him before and brought me here. I was able to get LM13 to work, but slowly. Too much overhead. So this is not only bookmarked, but also saved with a hard copy. 8-) For those of you to young to know what a hard copy is: printed on paper and filed in a folder. ;) Thanks again and keep up the great work.

PS: The 201404 upgrade went perfectly. I was smart enough to go in afterward and mess it up. This tutorial just saved me hours of trying to unmess it. :lol:

Building new machine named Garfield II & still using an old T42 Thinkpad that's old and slow, but just keeps on going and going . . . sorta like me! :lol:

User avatar
ScottQuier
Posts: 1781
Joined: 18 Jul 2013 15:55
Location: Newport News, VA

Re: Install Nvidia Driver when DDM doesn't quite get it

Postby ScottQuier » 26 Apr 2014 04:24

@CjTX2 - Reading that made my day! Thanks for sharing!
Scott
Quoting zerozero, "The usage of PPA's in debian-based
systems is risky at best and entails serious compatibility
problems; usually it's the best way to destroy an install"

dirigible
Posts: 150
Joined: 16 Mar 2013 03:19

Re: Install Nvidia Driver when DDM doesn't quite get it

Postby dirigible » 08 Aug 2014 09:37

Glad I found this thread.

Thanks Scott.
SolydK 64bit Home Edition.

User avatar
Snap
Posts: 1244
Joined: 25 Aug 2013 20:01
Location: Spain

Re: Install Nvidia Driver when DDM doesn't quite get it

Postby Snap » 11 Oct 2014 23:22

This is a true solid log floating on the ocean after a boat wreck a thousand miles from shore! Huge thanks, Scott!! I owe you a truckload of beers (or diet cokes if you wish). :mrgreen:
This likely means that your installation is broken. -Mr Pixbuf.

Image

Iranai
Posts: 3
Joined: 15 Jun 2014 17:37

Re: Install Nvidia Driver when DDM doesn't quite get it

Postby Iranai » 27 Apr 2015 01:58

If you are installing a newer card like the 960, there are a few extra steps. The nvidia drivers in the repository are quite old compared to what is on geforce.com and did not work for me. Because of this, nvidia-detect will give a message like, "Uh oh, no driver can be found through 340.69..." So after you remove the improper nvidia stuff and reboot, go to geforce.com/drivers and download their linux .run file.

Once downloaded, you need to turn off xserver for the install to progress.
Open a terminal and run:
# sudo service lightdm stop
Follow the login in OP step 1: ctrl+alt+f1 etc.
Navigate to your Download directory
# chmod +x NVIDIA-version-blah-blah.run
# ./NVIDIA-version-blah-blah.run
Follow on screen prompts. I answered affirmative to questions regarding upgrading kernal etc, but no to 32 bit as I'm running full 64 bit.
# reboot
Login, open the nvidia app and enjoy your new card.

miken242
Posts: 1
Joined: 09 Jun 2014 19:36

Re: Install Nvidia Driver when DDM doesn't quite get it

Postby miken242 » 20 Jun 2015 12:05

Many thanks for the tutorial great job

galen
Posts: 6
Joined: 09 Jul 2015 16:31

Re: Install Nvidia Driver when DDM doesn't quite get it

Postby galen » 09 Jul 2015 17:23

why no one has provided a recovery mode (ubuntu style) script
and a short version of a tutorial like this for all distros is beyond me.
Brilliant distros will have to have the base documentation handy (offline) in order to recover a system.
those 3 pillars are: grub2, xserver, network


Return to “Tutorials”

Who is online

Users browsing this forum: No registered users and 3 guests