Maybe all people knows (or maybe not), but here I post a guide written by me to install Nvidia propietary drivers.
**
TIP**: Read everything before doing anything even if you see a lot of handwriting. The process is very simple.
There are 2 ways to do this. By repositories or manually (I prefer the second way).
Preparations (for both ways to install)
- Have the kernel development packages installed. In total, these packages must be installed:
kernel-default, kernel-default-devel, kernel-devel y kernel-macros.
- Uninstall and mark Taboo the package:
Mesa-dri-nouveau
- Ignore the nouveau driver. To do this, type the following command:
echo "blacklist nouveau" >> /etc/modprobe.d/50-blacklist.conf
Install the driver by repositories
- Add the Nvidia repository using Yast2. For it:
Open Yast2 → Software repositories. Click Add → Community repositories (2nd option on the list).
Click on nVidia Graphics Drivers and click OK.
- Install the Nvidia driver using Yast2. For it:
Open Yast2 → Install / Uninstall Software and search for nvidia. Install the nvidia-gfxG05-kmp-default package (it will mark other dependency packages for you).
NOTE: In the package name, G05 is for GeForce 600 series cards and above while G04 is for Geforce 400 series cards and above.
Before was used G03 for GeForce 8000 to 600 cards but it is gone. Now you have to go to the Nvidia drivers website in this case and download the 340 driver.
- Restart the computer to apply the changes.
Install the driver manually
-
Install the libglvnd, libglvnd-32bit, libglvnd-devel and libglvnd-devel-32bit packages. These packages will help you with the installation interface in ncurses that we will use.
-
Download the drivers from the Nvidia website.
1.1. To do this go to the address:
https://www.nvidia.es/Download/index.aspx?lang=en
and choose all the data of your graphics card with linux-64bit system or linux-32bit (leave Download type by default).
Click Search, Download Now, Download Now and click Save File. The driver is already down.
1.2. Another option of drivers to download is the Beta drivers for vulkan (for GeForce GTX 745 and above) that you can download from here:
https://developer.nvidia.com/vulkan-driver
WARNING: This driver is only for linux-64bit and it may not install if you have the latest kernel.
- Install the Nvidia driver.
2.1. Reboot
First restart the computer and on the Grub screen press the down arrow key so that it does not continue to boot.
Select (without pressing enter) the first line that is openSUSE and hit the “e” key on the Grub screen. Scroll down with the down arrow key until the cursor is at the beginning of the line that starts with linux.
Hit the “End” key to get to the end of the line (one or more lines below) and write a space and a 3.
It would be something like “quiet 3” at the end of the line (it can end with a different parameter instead of quiet).
Hit the F10 key and the computer will boot into a mode where the desktop manager does not load.
2.2. Installation process
You will first have to log in with the root user.
Change to the directory where you downloaded the driver and then type:
sh NVIDIA-Linux-x86_64-470.94.00.run
NOTE: 470.94.00 is the latest driver available. If you have downloaded a different version you will have to type another number.
A text interface will open for you. If you have done all the steps of the Preparations and have installed the libraries of point 0 of this section, everything will be limited to hitting Enter all the time.
There will be a time when you see raise a bar while you are compiling the kernel module of the driver. When it fills up it’s not over yet. It will be over when you see “done.” at the top of the bar.
Everything continues to hit the Enter key, without more.
- Ending
When everything is finished and you are back in the black terminal you will have to type the following command so that the kernel you are using is written:
dracut --force
After that you can type:
init 5
to run the graphical system.
2.4. Changing the kernel
Sometimes there are security patches that update the kernel version. When that happens, you have to repeat the entire process described above but with the advantage that you already have done the preparations, drivers downloaded and the optional package (described in the next section) as well (if you decided to install it).
NOTE: Point 0 does not have to be done again.
As soon as you do it a couple of times, the process is very mechanical and short to do.
- Optional package
You can install the nvdock package from Yast2 to have the Nvidia icon in the taskbar and from there access with the right click to the driver version, the graphic temperature and by clicking on NVIDIA Settings… open an extensive control panel for the graphics card.