Howto/NVIDIA1662024-03-25 17:58:34NicolasChauvetakmods --force1652024-03-25 17:55:27NicolasChauvetfixup macro name: rfbz#68971642024-02-14 18:40:38NicolasChauvet1632023-11-14 09:37:581622023-04-24 13:44:26NicolasChauvet1612023-04-19 17:28:50NicolasChauvet1602023-04-19 17:28:11NicolasChauvet1592023-04-19 17:27:02NicolasChauvet1582023-01-30 20:26:59NicolasChauvet1572022-11-08 08:38:35NicolasChauvet1562022-11-08 08:06:04NicolasChauvet1552022-11-07 09:34:46NicolasChauvet1542022-11-07 09:27:05NicolasChauvet1532022-11-07 08:19:23NicolasChauvet1522022-11-07 08:04:10NicolasChauvet1512022-10-18 14:04:56Sérgio Basto1502022-05-15 16:38:29NicolasChauvet1492022-04-06 14:52:53NicolasChauvet1482022-04-06 09:27:54NicolasChauvet1472022-04-06 09:26:30NicolasChauvet1462022-02-08 16:23:12NicolasChauvet1452021-11-04 08:57:47NicolasChauvet1442021-11-01 10:17:21NicolasChauvet470xx live1432021-10-26 20:39:50NicolasChauvet1422021-10-26 20:35:41NicolasChauvet1412021-10-26 20:34:54NicolasChauvet1402021-10-14 16:20:37NicolasChauvet1392021-10-08 14:31:39NicolasChauvet1382021-08-23 12:12:29NicolasChauvet1372021-08-23 08:54:28NicolasChauvet1362021-08-23 08:45:17NicolasChauvet1352021-08-23 08:38:59NicolasChauvet1342021-05-23 15:47:52NicolasChauvet1332020-09-04 13:29:19NicolasChauvet1322020-07-01 06:24:49NicolasChauvet1312020-06-29 15:36:16NicolasChauvet1302020-06-29 13:57:21NicolasChauvet1292020-06-26 09:40:19NicolasChauvet1282020-05-11 14:45:24NicolasChauvet1272020-05-10 19:11:49NicolasChauvet1262020-03-23 16:38:10NicolasChauvet1252020-03-04 12:26:42NicolasChauvet1242020-03-04 12:23:59NicolasChauvetupdates1232019-11-05 20:26:57NicolasChauvet1222019-10-14 15:55:55NicolasChauvet1212019-09-20 15:04:44NicolasChauvet1202019-09-20 15:03:55NicolasChauvetDisable secure boot1192019-09-19 06:53:42NicolasChauvet1182019-07-09 09:50:48NicolasChauvet1172019-07-09 09:46:01NicolasChauvet1162019-07-09 09:45:26NicolasChauvet1152019-07-09 09:37:41NicolasChauvet1142019-07-09 09:36:14NicolasChauvet1132019-06-03 20:47:39NicolasChauvetrevert last change1122019-05-30 19:53:31NicolasChauvet1112019-03-05 16:21:40NicolasChauvet1102018-12-16 14:42:18NicolasChauvet1092018-11-05 10:15:42NicolasChauvet1082018-11-05 10:14:07NicolasChauvet1072018-11-05 10:13:37NicolasChauvet1062018-11-05 10:12:39NicolasChauvetwayland update1052018-11-05 10:06:54NicolasChauvetUpdate 390xx1042018-05-28 17:34:46NicolasChauvet1032018-03-07 13:36:25XavierBachelot1022018-03-07 13:23:22XavierBachelot1012018-03-06 16:02:09NicolasChauvet1002018-03-06 16:01:44NicolasChauvet992018-03-04 13:44:02NicolasChauvet982018-03-04 13:43:21NicolasChauvet972018-02-24 10:50:53NicolasChauvet962018-02-24 10:18:07NicolasChauvet952018-01-22 22:10:36NicolasChauvet942017-11-25 20:57:19NicolasChauvet932017-11-23 21:07:56NicolasChauvetWith current akmods it's possible to avoid kernel-devel-uname-r dependency explicitely922017-11-15 20:19:07NicolasChauvet912017-11-15 20:13:56NicolasChauvet902017-06-28 16:32:26NicolasChauvet892017-06-20 18:08:16NicolasChauvet882017-06-10 19:15:25NicolasChauvet872017-06-09 09:32:08NicolasChauvet862017-06-09 09:26:03NicolasChauvet852017-06-09 09:25:15NicolasChauvet842017-05-19 15:42:37NicolasChauvet832017-05-19 15:32:04NicolasChauvet822017-05-19 11:46:17NicolasChauvetRenamed from 'Howto/nVidia'.812017-05-19 10:32:20NicolasChauvetCuda update802017-05-19 10:29:33NicolasChauvetRemove fedora 25 mention792017-05-19 10:27:18NicolasChauvet782017-02-28 18:40:58slaanesh772017-01-16 20:12:35NicolasChauvet762016-12-23 09:30:50NicolasChauvet752016-12-23 09:15:41leigh123linux742016-11-29 13:35:01NicolasChauvet732016-11-23 17:34:26NicolasChauvet722016-11-19 18:56:43NicolasChauvet712016-11-19 18:56:13NicolasChauvet702016-11-11 22:10:27Sérgio Basto692016-11-11 22:07:52Sérgio Basto682016-11-11 22:05:19Sérgio Basto672016-11-08 10:12:13NicolasChauvet662016-11-08 10:10:27NicolasChauvet652016-11-08 10:08:54NicolasChauvet642016-11-06 09:39:58NicolasChauvet632016-10-26 20:25:22NicolasChauvet622016-10-26 13:12:00NicolasChauvet612016-10-26 13:05:56NicolasChauvet602016-10-26 12:54:59NicolasChauvet592016-10-26 12:44:23NicolasChauvet582016-10-26 09:59:59NicolasChauvet572016-10-26 07:03:49NicolasChauvet562016-10-26 06:59:17NicolasChauvet552016-10-25 21:32:07NicolasChauvet542016-10-06 07:28:07NicolasChauvetAdd nvidia xorg ddx package to the install step532016-07-29 14:50:20NicolasChauvet522016-02-26 10:37:28JonathanWakelyspelling512016-01-17 10:34:00JonathanAnderson502015-11-24 19:30:34DavidFetter492015-11-24 19:28:39DavidFetter482015-11-05 10:37:55NicolasChauvet472015-11-05 10:23:35NicolasChauvet462015-11-05 10:22:53NicolasChauvet452015-11-05 10:12:09NicolasChauvet442015-11-05 10:09:40NicolasChauvet340xx is NOT the best driver for 300/400/+ series432015-11-05 10:07:24NicolasChauvetdracut is uneeded422015-08-16 13:01:52Juan Carlos Barreto412015-01-24 19:35:18PrzemysławPalaczPackage nvidia-340xx is now in RPM Fusion402014-12-13 15:26:57NicolasChauvet392014-07-11 17:37:09NicolasChauvet382014-07-11 17:32:24NicolasChauvet372014-07-11 17:30:20NicolasChauvetUpdate Rawhide notice362014-01-04 14:24:59NicolasChauvetUpdate if the current kernel doesn't match the next kernel to be booted352014-01-04 14:18:27NicolasChauvetUse variable to workaround https://bugzilla.redhat.com/1047041#c1342013-12-28 15:51:56NicolasChauvet332013-12-28 15:51:07NicolasChauvetMove the Update322013-12-21 20:23:05leigh123linux312013-08-09 07:22:34NicolasChauvet302013-02-27 21:42:34NicolasChauvetNope, we want official fix for that, see https://bugzilla.rpmfusion.org/2317 and https://bugzilla.rpmfusion.org/2072292013-02-27 19:18:47JacekPliszka282013-02-21 18:33:07Kasumi_Ninja272012-12-19 09:40:11xahoUninstall section: updated package list262012-12-18 21:47:34NicolasChauvet252011-09-19 20:24:28NicolasChauvetadd VDPAU/VAAPI support - Delete unrational removal of xorg-x11-drv-nouveau242011-08-23 15:27:33mobinmob232011-06-21 09:47:42NicolasChauvetfull reboot222011-01-15 19:12:21mobinmob212011-01-15 18:50:09mobinmobReference to previously deleted section removed.202011-01-12 13:52:13NicolasChauvet192011-01-12 13:34:34NicolasChauvetNote about new behaviour of xorg.conf.d allowing nvidia-xconfig and nvidia-settings182011-01-12 13:26:21NicolasChauvetRemove Fedora version specifics notes as they are outdated in current Fedora172010-09-23 04:33:51BrackBill162010-09-19 16:17:44BrackBillAdded command for disable 96xx drivers152010-08-31 15:47:02NicolasChauvetallow_execstack is done by the package nowadays142010-07-16 07:43:56NicolasChauvetAdd uninstall section132010-05-26 15:07:00NicolasChauvetUpdate for F13122010-02-23 21:30:57NicolasChauvetRemove note on F12 and nvidia legacy - nVidia does support them from the begining when F12 was released.112009-12-31 05:05:54GaryTalentAdded note for 64-bit users of Fedora 11 and later.102009-11-22 06:25:34MattGillenAdd option for easier way to disable nouveau92009-11-11 16:21:53NicolasChauvetgeneric driver installation - selinux/nouveau notes for F-1282009-11-03 21:40:54GianlucaSfornaAdd F12 specific steps for fixing the initrd72009-07-15 12:51:26NicolasChauvet62009-06-19 15:21:20StewartAdamReword some text, add note for PAE users52009-06-09 23:59:36NicolasChauvet42009-05-21 18:39:45StewartAdamRevert to revision 2.32009-05-21 18:28:17OsndokRepos show nvidia-*kmod not kmod-nvidia*, guess they have been renamed?22008-12-15 20:32:49StewartAdam12008-12-14 19:04:32StewartAdamAbout this HowtoThis howto will help you install the correct NVIDIA driver on Fedora for your graphics card as well as troubleshoot common driver problems. The prerequisite is to have followed the Configuration page to have at least the RPM Fusion nonfree section available. - Determining your card modelNVIDIA has several driver series, each of which has different hardware support. To determine which driver you need to install, you'll first need to find your graphics card model. If you don't know it, open a Terminal (Applications > System Tools > Terminal) and type: You can also check the supported chips section and see which series is recommended for you card, then install the appropriate driver series. Please remember that you need additional steps for optimus. You are probably in the Optimus case if your NVIDIA card is found with the next command: Installing the driversPlease remember that once the driver is installed, there is no need to configure xorg.conf by default. Changes will take effect after a full reboot on the newest kernel. /!\ The Secure Boot Please have a look on Howto/Secure Boot in order to sign the nvidia kmod. You will have to enter the BIOS/EFI to import your self generated key. Current GeForce/Quadro/TeslaSupported on current stable Xorg server release. This driver is suitable for any GPU found in 2014 and later. /!\ The 510+ driver is available by default on Fedora 34+ and later and has dropped support for some older Kepler GPU. /!\ Please remember to wait after the RPM transaction ends, until the kmod get built. This can take up to 5 minutes on some systems. Once the module is built, "modinfo -F version nvidia" should outputs the version of the driver such as 440.64 and not modinfo: ERROR: Module nvidia not found. Legacy GeForce 600/700Supported on current stable Xorg server release. /!\ This serie is introduced since Fedora 34+. This driver is suitable for any NVIDIA Kepler GPU found between 2012 and 2014 /!\ Please remember to wait after the RPM transaction ends, until the kmod get built. This can take up to 5 minutes on some systems. Legacy GeForce 400/500Supported on current stable Xorg server release. EOL by NVIDIA at the end of 2022. Still available on "best effort basis" (newer kernel may break, will be discontinued at anytime if not actively maintained) This driver is suitable for any NVIDIA Fermi GPU found between 2010 and 2012 /!\ Please remember to wait after the RPM transaction ends, until the kmod get built. This can take up to 5 minutes on some systems. Legacy GeForce 8/9/200/300Supported on current stable Xorg server release. EOL by NVIDIA at the end of 2019. Still available on "best effort basis" (newer kernel may break, will be discontinued at anytime if not actively maintained) /!\ Please remember to wait until the kmod get built each time a new kernel rise up. This can take up to 5 minutes on some systems. /!\ Workaround for keeping 340xx driver on newer fedora. /!\ This driver doesn't support "pre-optimus" devices so if you have a mean to only use the NVIDIA device in bios, please turn it on (or rely on Intel/Nouveau if you want to keep both). Legacy GeForce 6/7Supported up to Fedora 27 - EOL, no more nvidia updates Legacy GeForce 5 (FX series)Supported up to Fedora 20 - EOL, no more nvidia updates Legacy GeForce 2 through GeForce 4Supported up to Fedora 14 - EOL, no more nvidia updates Special notesOptimusNVIDIA Optimus is a technology that allows an Intel integrated GPU and discrete NVIDIA GPU to be built into and accessed by a laptop. With Fedora 25 and later, Optimus devices are supported automatically by default. Please see the dedicated Optimus Howto. OSTree (Silverblue/Kinoite/etc)OStree based systems are supported with the NVIDIA driver using akmod-nvidia starting with f30. (only the current NVIDIA driver is tested). Please follow the Configuration page first. Note: There is a need for a special "Hack" to work with secureboot on OSTree systems. Once you have the keys generated and imported, you need to create a dedicated packages for the key to be available when signing the kernel modules in OStree. See also Switching between nouveau/nvidiaWith recent drivers as packaged with RPM Fusion, it is possible to switch easily between nouveau and nvidia while keeping the nvidia driver installed. When you are about to select the kernel at the grub menu step. You can edit the kernel entry, find the linux boot command line and manually remove the following options "rd.driver.blacklist=nouveau modprobe.blacklist=nouveau nvidia-drm.modeset=1". This will allow you to boot using the nouveau driver instead of the nvidia binary driver. At this time, there is no way to make the switch at runtime. CUDAThe driver support CUDA when installing the xorg-x11-drv-nvidia-cuda subpackage. Please have a look on the dedicated CUDA Howto Version LockSometime, there is a need to lock to a particular driver version for any reason (regression, compatibility with another application, vulka beta branch or else). Using dnf versionlock module is the appropriate way to deal with that. Please remember that version lock will prevent any updates to the nvidia driver including fixes for kernel compatibilities if relevant. > /etc/dnf/plugins/versionlock.list]]>KMSKMS stands for "Kernel Mode Setting" which is the opposite of "Userland Mode Setting". This feature allows to set the screen resolution on the kernel side once (at boot), instead of after login from the display manager. This feature has early support in the main NVIDIA driver, but is not enabled by default. Our package enable this feature by default to ease installation with optimus and wayland which requires this. To disable, use: To re-enable, use Graphic consoleFor long time, NVIDIA driver team have advertised "against" using a graphical console (vga parameters or else) over the default text console on non-EFI mode (bios). That's because some drivers bad interaction with the vesafb driver. This problem is now solved as it seems. (See also ). If using a legacy bios, you can improve the vesafb driver using this parameter: (along the appropriate vga=id, use vga=ask for the first time). SuspendNVIDIA has provided some experimental scripts to enable clean resume on suspend to RAM or suspend to disk (hibernate) that might be specially needed in some environment. Theses scripts will prevent artefacts on resume by moving the full content of the graphic memory into either host RAM (or disk). Packaging is currently (as of 2021-08-23) in in-between state and will be improved as discussed in VulkanThe main package support Vulkan, but you need to install the vulkan libraries if requested. Vulkan BetaA dedicated Vulkan Beta driver version is maintained since October 2022 for fedora 36 and x86_64 only. Because it's not a dedicated package, you need to use 'versionlock' to prevent the packages to be updated to the main series. WaylandNVIDIA works under Wayland (and Xwayland) starting with Fedora 35 and NVIDIA driver 495 and later. With GNOME 41, Wayland can be selected explicitly with GDM. Please remind that there are known limitations with Wayland and the current NVIDIA driver either because of the driver or the Wayland protocol. See Wayland information for r545 beta release. This document might not be updated to current releases. NVENC/NVDECRPM Fusion support ffmpeg compiled with NVENC/NVDEC with Fedora 25 and later. You need to have a recent NVIDIA card (see the support matrix), and install the cuda sub-package. Please have a look on the ffmpeg HWAccel introduction to the feature Kernel OpenSince the NVIDIA driver 515xx, there is a mean to use a full open source kernel space driver (userspace driver remains proprietary). This is only relevant for Turing, Ampere and later (there is no chance for it to works with older GPU). With 515xx, the driver is only production ready for datacenter. (no workstation, display GPU as it misses certain features), but you can add an option for using it on such GPU if it's recent enough family. (see the nvidia doc). For akmod-nvidia to build with the FLOSS (but pre-built) driver by default, you can use: /etc/rpm/macros.nvidia-kmod'
sudo akmods --kernels $(uname -r) --rebuild]]>You can also swith to the akmod-nvidia-open package that relies on the full source code of the kernel space driver (it takes longer to build). This package is located in the rpmfusion-nonfree-tainted repository so it doesn't get selected by misstake from unaware users. See also Latest/Beta driverYou can install the latest drivers from Rawhide using the following command: = $(uname -r)"
sudo dnf update -y
sudo dnf copr enable kwizart/nvidia-driver-rawhide -y
sudo dnf install rpmfusion-nonfree-release-rawhide -y
sudo dnf --enablerepo=rpmfusion-nonfree-rawhide install akmod-nvidia xorg-x11-drv-nvidia xorg-x11-drv-nvidia-cuda --nogpgcheck]]>Or if you want to grab it from the latest fedora stable release: nvidia-xconfigThis tool is only meant to be used as a sample to create a xorg.conf files. But don't use this directly as the generated xorg.conf is known to broke with many default Fedora/RHEL Xorg server options. Instead, you should probably start with : x86_64 (64bit) usersIf you wish to have 3D acceleration in 32bit packages such as Wine, be sure to install the appropriate 32bit version of the xorg-x11-drv-nvidia-libs package for your driver variant. For example, if you installed kmod-nvidia then you will require xorg-x11-drv-nvidia-libs.i686. With Current Fedora (not EL), this is handled automatically by RPM (Boolean dependencies). PAE (Physical Address Extension) kernel usersIf you are on a 32bit (i686) system and have the kernel-PAE installed to access more RAM, please install kernel-PAE-devel. Please note that this step is not required for any 64bit (x64_64) users. VDPAU/VAAPIIn order to enable video acceleration support for your player and if your NVIDIA card is recent enough (Geforce 8 and later is needed). You can install theses packages: With the native vdpau backend from a NVIDIA card, the output is similar to this: Here is an example of an accurate output of vainfo, when the bridge to the VAAPI is correctly installed. AkmodsAn akmod is a type of package similar to dkms. As you start your computer, the akmod system will check if there are any missing kmods and if so, rebuild a new kmod for you. Akmods have more overhead than regular kmod packages as they require a few development tools such as gcc and automake in order to be able to build new kmods locally. Nouveau compatibility As nouveau is enabled by default starting with Fedora 11, you may experience problem which is caused by the nouveau kernel module being present in the initrd image. Once the driver is installed and after the reboot, this command should not output anything: RawhideRawhide kernels are built with debug enabled GPL-only symbols which kernel is incompatible with the NVIDIA binary-only driver. You need to use the Rawhide nodebug repository. Please remind that Xorg server version is also to take into consideration. In the case of incompatibilities with the xorg-server, you might need to downgrade to the previous fedora release: > /etc/dnf/dnf.conf]]>Uninstall the NVIDIA driverRecover from NVIDIA installerThe NVIDIA binary driver installer overwrite some configuration and libraries. If you want to recover to a clean state, either to use nouveau or the packaged driver, use: Bug ReportIf you still cannot make the driver to work, you can either report a problem to NVIDIA or to RPM Fusion packager team. Please read: If you have a problem, PLEASE read this first Basically, you need to generate an archive and attach it to bugzilla or any paste service. CategoryHowto