Code: Select all
sudo zypper addrepo --refresh 'https://download.nvidia.com/opensuse/leap/$releasever' NVIDIA
Code: Select all
sudo zypper addrepo --refresh https://download.nvidia.com/opensuse/leap/tumbleweed NVIDIA
1. install your card in your PC
Restart the PC.
Automatically, the "nouveau" driver is installed. (which will not fold)
Open a session.
2 Installation of all about OpenCL and CUDA (you have not the choice)
Launch the Yast software manager.
Automatically, you get a window showing all necessary packages to install the "NVIDIA" driver and all about computing with CUDA and OpenCL for your NVIDIA card.
You have no choice between OpenCL and CUDA because all about OpenCL and CUDA is in only one package.
If you get an IGP (integrated GPU) with your MB, then 2 packages about PRIME technology are also selected. These packages are only required if your laptop is able to switch between an IGP and an NVIDIA card to optimize energy.
This is not the case of my desktop, then I unselect them.
If you want to monitor temperatures and other things, then select "kernel-firmware-nvidia"
Launch the package installation.
Restart the PC.
3. open a session
Wait a moment.
Suddenly, you hear your PC chassis fan roaring. Computing with the NVIDIA card has just started.
You can check this with fah-control.
SOME NEWS
I replace my old NVIDIA card not enough powerful by a GT 1030. I installed the 510.x driver.
This time, automatically in Gkrellm i get temperature sensors about my Nvidia card :
- NVIDIA GPU core, the Nvidia card temperature
- NVIDIA smi GPU current (?)
This time, "Nvidia X server settings" software runs well.
4. in case of only the graphical driver is installed
you need to install the following packages:
nvidiacompute-G04 for nvidia Geforce 400 series or newer -> 390 series driver.
nvidiacompute-G05 for nvidia Geforce 600 series or newer -> 470 series driver.
nvidiacompute-G06 for nvidia Geforce 700 series or newer -> 515 series driver
In case of :
- x11-video-nvidiaG04 is already installed, then install nvidiacompute-G04
- x11-video-nvidiaG05 is already installed, then install nvidiacompute-G05
- x11-video-nvidiaG06 is already installed, then install nvidiacompute-G06
Selecting the package triggers the selection of all the packages of dependencies.
5. In case of nothing is installed about your nvidia card for any reason
To auto-detect and install the right driver for your hardware, run:
Code: Select all
sudo zypper install-new-recommends --repo <name of the nvidia repo>
Code: Select all
sudo zypper repos
https://www.nvidia.com/Download/index.aspx
6 HEADLESS Installation
(with the advices of the openSUSE team member Stefan Dirsch)
I uninstalled and forbid the installation of :
libnvidia-egl-wayland1
nvidia-glG06
x11-video-nvidiaG06
Only stay installed :
kernel-firmware-nvidia
nvidia-computeG06
nvidia-gfxG06-kmp-default
and
all about nouveau driver.
It works well
Only one minor problem : there is no more temperature sensor.
If you want to know the temperature use "nvidia-smi" command.
7. WARNING
7.1.
If
you get a desktop PC (not a laptop)
and
you use the nvidia card only for computing and there is no connected monitor.
DON'T INSTALL all packages about PRIME (PRIME is for Laptop using hybrid graphical card)
If you install PRIME packages then X consumes from 1 % to 15 % of CPU power, then you get a slow GUI !
To forbid the installation during driver update, you must ask to YAST software manager to forbid the installation of the PRIME packages.
7.2.
7.2.1
If after an update of the NVIDIA packages, you restart your PC then you get a text console
then
log in as root
launch "yast2"
in yast2, launch "software manager"
delete all packages about NVIDIA
restart the PC
install again NVIDIA compute package. This triggers the installation of all the necessary packages.
A simpler way, execute :
Code: Select all
sudo rpm -e nvidia-gfxG06-kmp-default --nodeps
sudo zypper in nvidia-gfxG06-kmp-default
if after an update of the NVIDIA packages, you restart your PC then you get a black screen with a cursor in the top left corner and the mouse cursor
then
execute CTRL__Backspace_Bacspace
then
you get KDE GUI
then
uninstall all NVIDIA packages
install all NVIDIA packages
or
a simple way, in a text console, execute :
Code: Select all
sudo rpm -e nvidia-gfxG06-kmp-default --nodeps
sudo zypper in nvidia-gfxG06-kmp-default
With Yast software manager, if you forbid the installation of some packages, then the tool (packagekit) for updating the OS does not honor zypper package locks. See my bug report https://github.com/PackageKit/PackageKit/issues/325
Thus, lock packages are installed when updating occurs !
After 3 years waiting for packagekit team, the openSUSE team is solving the problem but till now the problem is not fixed. See my bug report.
http://bugzilla.opensuse.org/show_bug.cgi?id=1199895
SOME NEWS
I replace my old NVIDIA card not enough powerful by a GT 1030. I installed the 510.x driver.
This time, no more problem with installed PRIME Packets !
8. If you want to get a silent and cold PC
see the topic viewtopic.php?f=89&t=37572