Nvidia Privative Drivers installation

Some people can experience difficulties installing the Nvidia privative drivers, this howto explains in better detail how to reach that.

Introduction

The correct way to install the privative drivers in a Debian system is by using their own provided packages

  • nouveau module should not be loaded
  • have the kernel headers installed to compile the module
  • install the correct packages & versions to use
  • module is compiled and loaded with modprobe
  • maybe you need to add an /etc/X11/xorg.conf* template to make it working
  • you may want to better check official instructions for debian NvidiaGraphicsDrivers - Debian Wiki

Tool provided by Elive:

The tool provided by Elive makes all the process to just follow a few questions and guides the user, installing and doing everything needed for him.

Please report any modification to the tool if needed in order to work easily and automated for everybody

The live mode boots, when an nvidia card is detected it shows a dialog asking to the user if wants to install the privative drivers, eventually is needed to reboot with a different boot option (privative drivers) in order to not load the nouveau driver, which will conflict with the other nvidia driver and it wont work (everything is guided from the nvidia installer)

When the user is proceding with the installation of the drivers, it shows different driver versions to select, every graphic card would need a different version, the installer suggest a recommended one, but if not works you must try with the other versions too.

Next steps of the tool is:

  • install the required packages
  • which compiles the driver module
  • then try to load the module
  • if everything is fine, the Live mode continues and starts the graphical system
  • if fails, it proceed with removing the privative drivers to switch back to the opensource option (nouveau) and continue the boot

If the drivers succeed and eventually the user runs the installing of elive to the hard disk, the same nvidia option is used for the installed system

Auto / guided installation

  • :point_right: Boot in Live mode and just follow the instructions :applause::excited::coding:

Manual installation

Live mode

If you have the option "privative drivers" before to boot, you must select this one in order to not use the nouveau driver to proceed with the use of the privative ones, both drivers cannot be loaded at the same time

Optionally you can press TAB or "e" to edit the boot parameters and append "nox11autologin" to run the tool yourself manually

Elive already Installed on the hard disk

  • Boot the computer select Advanced / Recovery mode
  • Login as root from the provided console
  • Make sure that the module "nouveau" is not loaded, using "lsmod | grep nouveau"
    • if is loaded, you must reboot and press the "e" key in the boot menu to edit the bootloader and add the boot parameter "modprobe.blacklist=nouveau", then press F10 to boot in this mode
  • run the tool 'nvidia-privative-drivers-install'
  • if the driver was correctly installed and loaded, try to run the graphical system with "startx" or "service lightdm start"
  • update your initrd with "update-initramfs -k all -c"
  • reboot

2nd option:

Do not run the Elive provided tool and try to make it working entirely by yourself, if you are successfull and the provided tool by Elive don't worked, report what it needs to be added to it

Extra

The Elive tool automates all the needed steps process, but it may be not perfect, so maybe trying to install the drivers there's a missing package to install or step to add. You must open a temporal console / terminal if says that it failed in order to check the package / drivers status and try to make it working yourself, then, report to elive the improvements needed to the tool in order to make it working by default and for everybody.

Tips:

  • Update to the last version of the tool before to use it, which may include fixes or improvements:

apui elive-tools

Installing the Official Nvidia drivers

(from their website)

You can also use the .run file provided by the official nvidia drivers from their website, this should work in most of the cases and will be newer versions of the drivers, but we don't suggest to use them unless really needed, because:

  • we want to make the provided drivers by Elive to work for everybody, so helping to improve them instead will help everybody
  • the installation is not as clean as you do it from packages (which you can remove), and your resulting system can be more dirty with files installed (this is not totally wrong if you simply use your computer for yourself, in any case, you can always reinstall very easily Elive in upgrade-mode)

So, after that said, let's proceed with the instructions :slight_smile:

Installing:

  • Go to the nvidia website and download their .run file to install the drivers, select the details of your system, OS, architecture, and card model if needed...
  • Open it from your file-manager and double-click to the .run file, Elive has special helpers to run it in the correct way :happy:

Now, you may have some issues installing them, so let's explain them and their solutions:

Causes and solution for the .run installer:

Old drivers installed:

So you may have some nvidia drivers already installed from the elive tool

To remove them, use our magic tool:

~ ❯❯❯ sudo nvidia-privative-drivers-install -u

Nouveau driver already in use:

Your computer may have booted normally and detected that you have an nvidia card, and so it loaded the nouveau module, the problem is that unless you set "vga=788" or similar parameter, the module will be in use, and so you won't be able to "rmmod nouveau", this makes the installing (or switching) to the other nvidia driver not possible...

To solve that, turn ON your computer and in the first boot menu selector, press the "e" key to edit your grub menu, go to the boot parameters and append "modprobe.blacklist=nouveau" to the line starting with the word "linux", like here:

It is also suggested to remove the "quiet" and "splash" parameters to have more messages in your consoles

Finally, press the F10 key to boot using your modifications

IMPORTANT: Since you are not booting with your correct drivers installed, your graphical system may fail to start, so you would need to do everything from the console first. To boot in console mode just append the number "1" to the end of your grub list (like explained before), it will ask you for your admin (root) password and then you can do everything from it


Be free to improve this howto with better instructions

1 Like

New drivers for the next build 3.8.14:

image

  • All of them pre-cached in the iso
  • "current" version is 440.82 from buster-backports
  • legacy ones are from main debian buster
  • tesla's are own backported builds from sid
  • all of them installs correctly, cached (offline-able), and compilesn successfully, but I dont have all the hardware / models to test them:

NOTE: this thread has many unneeded posts, Im thinking to delete all / most of them in order to cleanup the thread for useful related info specifically about the drivers

1 Like

Yes, definitely clean it up ... it has become totally unwieldy.
Actually the first and your last post should suffice. :mwahaha:

100 posts deleted :eyepopping: I needed some time to scroll all of them down :rofl2:

:rainbowyay: :rainbowyay: :rainbowyay: :rainbowyay: :rainbowyay: :rainbowyay: :rainbowyay: :rainbowyay: :rainbowyay: :rainbowyay: :rainbowyay: :rainbowyay: :rainbowyay: :rainbowyay: :rainbowyay: :rainbowyay: :rainbowyay: :rainbowyay:

There's nothing wrong on deleting useless posts :smiley: like many offtopic things or answers which says nothing (me included do this a lot), in order to improve the forum for others :love: :happy:

3 Likes

There's also more improvements for the next build 3.8.14:

  • the drivers to include in the installed system may have failed in the past (autodetected), now it will make sure that is using the same version of the last driver you selected from the tool
  • the installer of elive includes the option to select if you want extra features for your nvidia card, like CUDA and some others, the asking for include it is mostly because this option takes almost 2 GB more in your install

@Franc could be good if you test the next 3.8.14 and tell me if the CUDA works correctly in your installed system :slight_smile:

Hi!

ASAP!! :wink:

Hello!

On eeepc 1015pn live, is it possible to activate CUDA? I see nothing related during start procedure nor via menus in E or Cairo...
Verified (as usual) by launching Blender (the-new-2.82a- :hugs:-that-is-now-included-in-the-.iso) and going in preferences > system > CUDA : didn't find cuda processor...
Install process en route: perhaps it appears during this?
Or is there a special command to set it on?

EDIT: So, near the end of install, it asks for setting cuda (bla-bla 2Gb blabla), off course clicking "OK", & after some seconds, got a full black screen, no indications at all, impossible to go on tty 12 to see eventually what's happen, any attempt to swap tty doing nothing; Black screen, computer still "on" (led wise), the HDD led flashing sometimes...
As HDD led optionally tell it's going on, I let it running "on the night" for a while, hopping it to finish ok.........

Salutations.

done :slight_smile:

yes and no, you technically can, but the installer of nvidia-drivers doesn't include it (maybe it should include it for the persistence mode), the reason is simply because cuda requires a TON of space (more than 1GB if im not wrong, which in live mode translates to RAM used), in other words you need to have a lot of RAM free otherwise your computer block with out-of-ram

its better to perform an install on the hard disk (migration mode to a previous elive, with 3.8.14), the installer should ask you to install cuda and all should work out of the box

I assume you are talking about you tried to install cuda in live mode (yes this can be a behaviour like getting out of ram), so as said, install elive and select to install cuda for hte installed system only :thinking:

Hi!

Well, for the live mode, effectively, with the Gb's to deal with, could be a "no way", or with big amount of ram & time...

Errh... "of course and no": it's during install of 3.8.14 from usb, and still no evolution since precedent message! Trying again to go to tty12 or anything else does nada, black screen, power led on, hdd led blinking sometimes...

Ih!

It was your install with a 390 version and/or from edh* email ? (I have received an nvidia report with failed install of drivers in the installed system)

Hi!

Well, no: For now I test with the eeepc 1015pn, so it's 340xx...
I in fine stop the machine on this black screen, taping "anywhere" on the keyboard gives me a somewhat full screen console with no indications and nothing to deal with...
After booting on this not finished installation, it goes to E, but with some lacks, as web connection possibility, B43 things, Blender starting grey & stopping...
I bet I have to re-usb install from scratch, but if you can have an idea from this point at cuda install..?

EDIT: Trying again to install with the cuda option (eeepc 1015pn, 340xx), quite same no go, except that this time I have at least a screen after the black one;
Here it is:

Salutations!

Hi!

In a new try, with dual operation: installation by morphing (migration) from CAELinux, with CUDA, on the eeepc 1015pn, same screen blablabla recursive fault blabla...

Ih!

Should I use the Nouveau or proprietary drivers for an Asus GTX 1650 Super? (I'm building a PC, and would love to use the open source drivers but heard that they're CRAP.)

Try both!!
This is beta testing after all and it would be good to hear more experiences.
In my experience Nouveau just about makes the card work, not much more....for more GPU features, you will need the proprietary drivers.

2 Likes

Hello!

New tests with 3.8.17 /64 live usb, for now on:
Precision M4400: impossible to run it, from start or elsewhere;
By the way, can't find the command nvidia-privative-drivers-install: What's up????
Eeepc 1015pn: runs ok but the option for setting CUDA is gone...?

EDIT for completion: on M4400, when usb booting with nvidia privative drivers, it starts until the double "OK" before E16 desktop launch, then going to write errors, tryings without x, y, .... and nothing more.......

Salutations!

sudo :slight_smile:

sudo nvidia-privative-drivers-install -h

mmmh... i need more info:

  • this means that no "nvidia installer" is run ?
  • I assume you tried with both new and old kernels? (that's important to know if the issue is with the kernel or with the driver of nvidia)
  • what driver of nvidia is the one you use for it? the 340-xx one?

Hi!

I'll verify, but I'm quite sure to have fit the sudo (if not, it should write a blabla, isn't it?)...

On the M4400, I didn't think about testing with the old kernel >> will asap..!

For those two machines, it's still 340-xx!

What about the disappeared CUDA install option that was in precedent 3.8.15 (even if not working yet with Blender)..?

Salutations!

If it doesn't work, nvidia<TAB> is your mate.

Never forget tab in Linux. It may just save you an hour. :smiley14:

1 Like

Hi!

So, for the M4400, the nvidia privative effectively works on old kernel! :+1:
But still no CUDA... So I´m trying to check opencl, and:
Well, good idea to clean this thread, but doing that you erase the special command to force coming back nvidia settings to a legacy after a synaptic install that automatically fits the new one... :frowning: So I have to crawl finding it back... :thinking: :face_with_head_bandage:
nvidia-privative-dirvers-install is back...

EDIT: When installing on HDD (still on M4400 fx770m, old kernel & nvidia privative), at the "end" of the process, it asks about fitting CUDA or not; Well, but replying "yes" or "no", instantly got a full black screen, trying some *F12, *Fx no more, just having eventually the HDD led blinking... At first try with "yes", hard restart after a while gives no boot option, second test with "no" gives by chance the option to reboot on installed Elive... ...but..?

Ih!

1 Like

Like overclocking/fan manager I assume?

What is CUDA? There's nothing that I can find that explains it in a way i understand