Skip to content

Getting started

Nvidia proprietary drivers⚓︎

Determine which driver is required by your GPU⚓︎

  1. There are three Nvidia driver options available in the Nvidia repository - nvidia-glG06, nvidia-glG05 and nvidia-glG04.
  2. The nvidia-glG06 package corresponds with the Nvidia 515 series driver.
  3. The nvidia-glG05 package corresponds with the Nvidia 470 series driver.
  4. The nvidia-glG04 package corresponds with the Nvidia 390 series driver.
  5. 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-nvidiaG06 > Accept (Some graphic cards need G05 or 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 NVIDIA. For Leap, you can run sudo zypper addrepo --refresh '${releasever}' NVIDIA.
  2. Install the appropriate driver by running sudo zypper in x11-video-nvidiaG06 or sudo zypper in x11-video-nvidiaG05 or sudo zypper in x11-video-nvidiaG04
  3. Reboot.


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

Manual installation⚓︎


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 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:
    $ sudo zypper remove x11-video-nvidiaG06 nvidia-glG06 # or `sudo zypper remove x11-video-nvidiaG05 nvidia-glG05` or`sudo zypper remove x11-video-nvidiaG04 nvidia-glG04` depending on the driver you are using.
    $ sudo zypper ref -rf  # to refresh all repositories.
  3. Do note that NVIDIA has two "download types"; the new feature branch and production branch. Download or nvidia-installer with your chosen download type through your browser or through curl or wget from either of these websites:
  4. 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 Then run sudo sh -c "$HOME/ -e" for expert mode. Choose the things you needed from the install.
  5. Once done, run sudo mkinitrd which calls dracut to regenerate the initramfs to make sure the NVIDIA modules are installed.
  6. Disabling the nouveau can already be done when installing 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.
  7. Reboot.
Signing NVIDIA to enable Secure Boot (WIP)⚓︎

Hybrid Graphics/Optimus⚓︎

1 See Hybrid Graphics

Last update: 2022-05-25