Skip to content

Getting started

Nvidia proprietary drivers⚓︎

Determine which driver is required by your GPU⚓︎

  1. There are two Nvidia driver options available in the Nvidia repository - nvidia-glG05 and nvidia-glG04.
  2. The nvidia-glG05 package corresponds with the Nvidia 460 series driver.
  3. The nvidia-glG04 package corresponds with the Nvidia 390 series driver.
  4. Please refer to the Nvidia website to determine which driver best supports your GPU.

Setup the driver⚓︎

With Yast⚓︎

  1. Go to YAsT2.
  2. Then Software Management.
  3. On the menu, click Configuration > Repositories... (or do Ctrl + R).
  4. Click Add > Community Repositories.
  5. Select nVidia Graphics Drivers > Accept > Trust.
  6. On the Configured Software Repositories > Click Ok
  7. Back to Software Management Windows" > View > Repositories > Select nVidia Graphics Drivers.
  8. Select x11-video-nvidiaG05 > Accept (Some graphic cards need G04, see the first section above)
  9. Reboot.

Using the command line⚓︎

  1. Add the Nvidia Repository. If using Tumbleweed for example, you would run sudo zypper addrepo --refresh https://download.nvidia.com/opensuse/tumbleweed NVIDIA. For Leap, you can run sudo zypper addrepo --refresh 'https://download.nvidia.com/opensuse/leap/$releasever' NVIDIA.
  2. Install the appropriate driver by running sudo zypper in x11-video-nvidiaG05 or sudo zypper in x11-video-nvidiaG04
  3. Reboot.

CUDA⚓︎

  1. CUDA can be installed with the Nvidia-ComputeG05 or Nvidia-ComputeG04 package.
  2. See Nvidia's documentation for further information.

Manual installation⚓︎

Warning

This setup is not supported by your distribution. Make sure you know what you are doing and you know the risks of installing NVIDIA the manual way. Before doing this, make sure you have created a snapshot so you can rollback if something goes wrong e.g. sudo snapper create.

Sometimes, installing NVIDIA through zypper is not what you want because you want to either get the latest driver from the new feature branch or install only the things you "needed". Thus, you will do a manual install of NVIDIA. In preparation, run sudo systemctl isolate multi-user.target and to disable your display manager, run sudo systemctl disable --now display-manager.service. Make sure Xorg or an existing X session is not running.

  1. Check in zypper if you have NVIDIA repo. If there is, remove NVIDIA repo with sudo zypper removerepo NVIDIA.
  2. Uninstall the existing NVIDIA packages with the following commands:
  3. sudo zypper remove x11-video-nvidiaG04 nvidia-glG04 or sudo zypper remove x11-video-nvidiaG05 nvidia-glG05 depending on the driver you are using.
  4. sudo zypper ref -rf to refresh all repositories.
  5. Do note that NVIDIA has two "download types"; the new feature branch and production branch. Download NVIDIA.run or nvidia-installer with your chosen download type through your browser or through curl or wget from either of these websites:
  6. https://www.nvidia.com/Download/
  7. https://http.download.nvidia.com/XFree86/nvidia-installer/
  8. Let's say you downloaded NVIDIA into your $HOME from the new feature branch which as of writing is NVIDIA 495.44, you will get the NVIDIA-Linux-x86_64-495.44.run. Then run sudo sh -c "$HOME/NVIDIA-Linux-x86_64-495.44.run -e" for expert mode. Choose the things you needed from the install.
  9. Once done, run sudo mkinitrd which calls dracut to regenerate the initramfs to make sure the NVIDIA modules are installed.
  10. Disabling the nouveau can already be done when installing NVIDIA-Linux.XXX.xx.run. But in case you want to disable it manually, disable the nouveau driver by adding this to your kernel parameters rd.driver.blacklist=nouveau nouveau.modeset=0 in /etc/default/grub or blacklisting it by running # echo "blacklist nouveau" >> /etc/modprobe.d/nouveau-blacklist.conf. If you did the former, run sudo grub2-mkconfig -o /boot/grub/grub.cfg.
  11. Reboot.
Signing NVIDIA to enable Secure Boot (WIP)⚓︎

Hybrid Graphics/Optimus⚓︎

  1. See Hybrid Graphics

Last update: 2021-12-04