zypper inronce it is installed.
Please read the full page first and also briefly look at the linked forum posts as there are some pitfalls for specific versions. The steps below may need some adjustments, e.g. removal of kernel modules and an additional restart of the system.
Add Nvidia Repository
The steps below assume that the Nvidia repository has been added and enabled. An example how to do this for Leap 42.3 can be found further below.
Determine the appropriate package
If you don't know the name of your video card, in a terminal:
# lspci | grep VGA
# hwinfo --gfxcard | grep Model
There is also YaST2 > Hardware Information > Display.
One way to find the recommended driver for your hardware is to visit the Nvidia Drivers website, put your graphics card information and then hit the Search button.
# zypper se x11-video-nvidiaG0* S | Name | Summary | Type --+---------------------+---------------------------------------------------------+-------- | x11-video-nvidiaG04 | NVIDIA graphics driver for GeForce 400 series and newer | package | x11-video-nvidiaG05 | NVIDIA graphics driver for GeForce 400 series and newer | package
# zypper se -s x11-video-nvidiaG0* S | Name | Type | Version | Arch | Repository --+---------------------+---------+-------------+--------+----------- | x11-video-nvidiaG04 | package | 390.87-10.3 | x86_64 | NVIDIA | x11-video-nvidiaG04 | package | 390.87-10.3 | i586 | NVIDIA | x11-video-nvidiaG05 | package | 410.78-6.1 | x86_64 | NVIDIA
You can use YaST or zypper to install.
- Open YaST, then click Software Repositories.
- Click Add (in the bottom left), then select Community Repositories.
- Select NVIDIA Graphics Drivers, then click OK.
- Go back to the YaST Control Center and click Software Management.
- View > Repositories > NVIDIA
- Choose the appropriate driver: x11-video-nvidiaG02, x11-video-nvidiaG03 or x11-video-nvidiaG04
- Press Accept.
- Restart your computer.
# zypper addrepo --refresh https://download.nvidia.com/opensuse/leap/15.0 NVIDIA # zypper inr -r NVIDIA
# zypper in <x11-video-nvidiaG02 or x11-video-nvidiaG03 or x11-video-nvidiaG04>
Restart your computer.
# zypper addrepo --refresh https://download.nvidia.com/opensuse/tumbleweed NVIDIA # zypper inr -r NVIDIA
# zypper in <x11-video-nvidiaG04 or x11-video-nvidiaG05>
Restart your computer.
Uninstalling the NVIDIA drivers
There may be occasions when one needs to get rid of an installed proprietary driver. This is possible, however requires some steps. This is the easiest way to do it:
- Start YaST, go to: Software -> Software Management
- Change the 'Filter' to filter by software repositories
- Select the respective NVIDIA repository
- Mark any installed package from this repository for deletion and press 'Accept'. You may be prompted for conflicts, please ignore any conflicts and chose to break dependencies.
- Now in YaST select: Software -> Software Repositories
- Chose the respective NVIDIA repository and mark it 'disabled' - don't delete it as it will return enabled the next time the repositories are synced with the server.
Uninstalling the proprietary drivers will restore the previous X configuration file
/etc/X11/xorg.conf if one has existed. If the hardware has changed in the mean time it may be necessary to manually edit this file.
On Leap 42.3 you may want to install the drm-kmp-default package again.
You should uninstall the NVIDIA driver manually
- if you have the NVIDIA driver installed and plan to update it manually
- if you have installed the NVIDIA driver manually and plan to update your distribution
- if you switch to another driver version (for example you have G03 installed but want to switch to G04)
If you plan to update your distribution using
zypper dup you should uninstall the old driver version first to avoid problems.
You should perform the installation before you do any of the above actions, so you may need to do two steps.
If you have installed the driver manually you should make sure that the NVIDIA community repository is disabled so your manually installed drivers will not conflict with automatic update.
PLEASE NOTE manual installation is not the recommended way of installing the NVIDIA driver. It should only be done as last resort by experienced people. No one can guarantee that the installation scripts will catch every corner case where conflicts may arise.