https://en.opensuse.org/api.php?action=feedcontributions&user=Miso&feedformat=atomopenSUSE Wiki - User contributions [en]2024-03-29T13:53:06ZUser contributionsMediaWiki 1.37.6https://en.opensuse.org/index.php?title=SDB:NVIDIA_drivers&diff=132520SDB:NVIDIA drivers2019-03-04T13:46:34Z<p>Miso: replaced a "or" by "and then" as both commands need to be executed. The "or" suggested that one or the other were sufficient.</p>
<hr />
<div>{{SDB_navbar}}<br />
<br />
{{DEFAULTSORT:{{PAGENAME}}}} <div style="vertical-align:top; clear:right;float:right;">{{Nvidia navbox}}</div><br />
{{Intro|The NVIDIA drivers can not be included with openSUSE because of their [[Restricted_formats#NVIDIA_graphics_drivers|license]]. Fortunately for new users, NVIDIA has an openSUSE repository containing their drivers which is also available via [[YaST]].}}<br />
<br />
__TOC__<br />
<br />
{{Warning|If you plan to replace your card with a more recent one, you should uninstall the driver before upgrading your hardware and run <code>zypper inr</code> once it is installed.}}<br />
<br />
== Installation ==<br />
<br />
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.<br />
<br />
=== Add Nvidia Repository ===<br />
<br />
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.<br />
<br />
=== Determine the appropriate package ===<br />
<br />
If you don't know the name of your video card, in a terminal:<br />
<br />
# lspci | grep VGA<br />
<br />
or<br />
<br />
# hwinfo --gfxcard | grep Model<br />
<br />
There is also '''YaST2 > Hardware Information > Display'''.<br />
<br />
One way to find the recommended driver for your hardware is to visit the [https://www.nvidia.com/Download/index.aspx Nvidia Drivers] website, put your<br />
graphics card information and then hit the '''Search''' button.<br />
<br />
# zypper se x11-video-nvidiaG0*<br />
S | Name | Summary | Type <br />
--+---------------------+---------------------------------------------------------+--------<br />
| x11-video-nvidiaG04 | NVIDIA graphics driver for GeForce 400 series and newer | package<br />
| x11-video-nvidiaG05 | NVIDIA graphics driver for GeForce 400 series and newer | package<br />
<br />
# zypper se -s x11-video-nvidiaG0*<br />
S | Name | Type | Version | Arch | Repository<br />
--+---------------------+---------+-------------+--------+-----------<br />
| x11-video-nvidiaG04 | package | 390.87-10.3 | x86_64 | NVIDIA <br />
| x11-video-nvidiaG04 | package | 390.87-10.3 | i586 | NVIDIA <br />
| x11-video-nvidiaG05 | package | 410.78-6.1 | x86_64 | NVIDIA<br />
<br />
[https://en.wikipedia.org/wiki/List_of_Nvidia_graphics_processing_units List of Nvidia graphics processing units]<br />
<br />
You can use YaST or zypper to install.<br />
<br />
=== YaST ===<br />
<br />
# Open YaST, then click Software Repositories.<br />
# Click Add (in the bottom left), then select Community Repositories.<br />
# Select NVIDIA Graphics Drivers, then click OK.<br />
# Go back to the YaST Control Center and click Software Management.<br />
# View > Repositories > NVIDIA<br />
# Choose the appropriate driver: x11-video-nvidiaG02, x11-video-nvidiaG03 or x11-video-nvidiaG04<br />
# Press Accept.<br />
# Restart your computer.<br />
<br />
=== Zypper ===<br />
<br />
==== openSUSE Leap ====<br />
<br />
# zypper addrepo --refresh https://download.nvidia.com/opensuse/leap/15.0 NVIDIA<br />
# zypper inr -r NVIDIA<br />
<br />
and then<br />
<br />
# zypper in <x11-video-nvidiaG02 or x11-video-nvidiaG03 or x11-video-nvidiaG04><br />
<br />
Restart your computer.<br />
<br />
==== openSUSE Tumbleweed ====<br />
# zypper addrepo --refresh https://download.nvidia.com/opensuse/tumbleweed NVIDIA<br />
# zypper inr -r NVIDIA<br />
<br />
and then<br />
<br />
# zypper in <x11-video-nvidiaG04 or x11-video-nvidiaG05><br />
<br />
Restart your computer.<br />
<br />
== Uninstalling the NVIDIA drivers==<br />
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:<br />
# Start YaST, go to: Software -> Software Management<br />
# Change the 'Filter' to filter by software repositories<br />
# Select the respective NVIDIA repository<br />
# 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.<br />
# Now in YaST select: Software -> Software Repositories <br />
# 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.<br />
<br />
Uninstalling the proprietary drivers will restore the previous X configuration file <code>/etc/X11/xorg.conf</code> if one has existed. If the hardware has changed in the mean time it may be necessary to manually edit this file.<br />
<br />
On Leap 42.3 you may want to install the drm-kmp-default package again.<br />
<br />
{{Shell|sudo zypper in drm-kmp-default }}<br />
<br />
=== Manual Uninstallation ===<br />
You should uninstall the NVIDIA driver manually<br />
* if you have the NVIDIA driver installed and plan to update it manually<br />
* if you have installed the NVIDIA driver manually and plan to update your distribution <br />
* if you switch to another driver version (for example you have G03 installed but want to switch to G04) <br />
If you plan to update your distribution using <code>zypper dup</code> you should uninstall the old driver version first to avoid problems.<br />
You should perform the installation '''before''' you do any of the above actions, so you may need to do two steps.<br />
<br />
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.<br />
<br />
'''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.<br />
<br />
== See also ==<br />
<br />
=== External links ===<br />
<br />
* https://build.opensuse.org/project/show/X11:Drivers:Video<br />
* https://news.opensuse.org/tag/nvidia/<br />
* [https://lists.opensuse.org/opensuse-factory/2017-08/msg00397.html *Updated* NVIDIA gfx driver RPMs available for Tumbleweed]<br />
* [https://forums.opensuse.org/showthread.php/526192-Installing-NVIDIA-drivers]<br />
<br />
[[Category:SDB:Hardware]]<br />
[[Category:SDB:HOWTOs]]<br />
[[Category:SDB:X11]]<br />
[[Category:NVIDIA|NVIDIA]]<br />
<br />
[[de:SDB:NVIDIA-Grafiktreiber]]<br />
[[es:SDB:Cómo instalar el controlador gráfico de NVIDIA]]<br />
[[fr:NVIDIA]]<br />
[[it:SDB:Driver NVIDIA]]<br />
[[nl:NVIDIA]]<br />
[[ru:SDB:Драйверы_NVIDIA]]<br />
[[pl:NVIDIA]]<br />
[[pt:NVIDIA]]<br />
[[ja:NVIDIA]]<br />
[[zh:SDB:NVIDIA_驱动]]<br />
[[zh-tw:NVIDIA]]</div>Miso