4656
Comment: Add F12 specific steps for fixing the initrd
|
7087
|
Deletions are marked like this. | Additions are marked like this. |
Line 4: | Line 4: |
The prerequisite is to have followed the [[Configuration]] page to have at least the RPM Fusion nonfree section available. |
|
Line 12: | Line 16: |
== Installing the drivers == === Fedora 10 and 11 === Please remember that once the drivers are installed, they will configure your xorg.conf automatically and changes will take effect after a full reboot. There is no need to run nvidia-xconfig or other tools. |
|
Line 16: | Line 17: |
==== GeForce 6 and higher ==== {{{ yum install kmod-nvidia-PAE (or kmod-nvidia if not using kernel-PAE) }}} ==== GeForce 5 (FX series) ==== {{{ yum install kmod-nvidia-173xx }}} ==== GeForce 2 through GeForce 4 ==== {{{ yum install kmod-nvidia-96xx }}} ==== Older ==== Unfortunately, nVidia has not yet released a 71.xx legacy driver compatible with Fedora 10. |
You can also check the [[http://www.nvidia.com/Download/index.aspx|nVidia download driver]] section and see which series is recommended for you card, then install the appropriate driver series. Please remember that our package doesn't work with optimus yet. |
Line 32: | Line 21: |
=== Fedora 8 and 9 === ==== GeForce 6 and higher ==== |
== Installing the drivers == Please remember that once the driver is installed, it will configure your xorg.conf automatically only if it's not already present. You can also run nvidia-xconfig or nvidia-settings at anytime. Changes will take effect after a '''''full reboot''''' on the newest kernel. === Newer GeForce === |
Line 35: | Line 26: |
yum install kmod-nvidia | dnf install xorg-x11-drv-nvidia akmod-nvidia "kernel-devel-uname-r == $(uname -r)" xorg-x11-drv-nvidia dnf update -y |
Line 37: | Line 29: |
==== GeForce 5 (FX series) ==== | or kmod-nvidia/kmod-nvidia-PAE if using pre-built kmod for kernel/kernel-PAE === GeForce 8/9/200 === |
Line 39: | Line 34: |
yum install kmod-nvidia-173xx | dnf install xorg-x11-drv-nvidia-340xx akmod-nvidia-340xx "kernel-devel-uname-r == $(uname -r)" dnf update -y |
Line 41: | Line 37: |
==== GeForce 2 through GeForce 4 ==== | or kmod-nvidia/kmod-nvidia-PAE if using pre-built kmod for kernel/kernel-PAE === GeForce 6/7 === |
Line 43: | Line 41: |
yum install kmod-nvidia-96xx | dnf install xorg-x11-drv-nvidia-304xx akmod-nvidia-304xx "kernel-devel-uname-r == $(uname -r)" dnf update -y |
Line 45: | Line 44: |
==== Older ==== | === GeForce 5 (FX series) === Supported up to Fedora 20 - EOL, no more nvidia updates |
Line 47: | Line 47: |
yum install kmod-nvidia-legacy | yum install akmod-nvidia-173xx "kernel-devel-uname-r == $(uname -r)" yum update -y }}} === GeForce 2 through GeForce 4 === Supported up to Fedora 14 - EOL, no more nvidia updates {{{ yum install akmod-nvidia-96xx "kernel-devel-uname-r == $(uname -r)" yum update -y |
Line 50: | Line 57: |
=== Special notes === ==== x86_64 (64bit) users ==== If you wish to have 3D acceleration in 32bit packages such as Wine, be sure to install the xorg-x11-drv-nvidia-libs.i386 package for your driver variant. For example, if you installed kmod-nvidia then you will require xorg-x11-drv-nvidia-libs.i386, but if you install kmod-nvidia-'''96xx''', you will need xorg-x11-drv-nvidia-'''96xx'''-libs.i386. ==== PAE (Physical Address Extension) kernel users ==== If you are on a 32bit (i686) system and have the PAE kernel installed to access more RAM, please append '''-PAE''' to all the "kmod" pacakges above. For example, '''kmod-nvidia-PAE''' or '''kmod-nvidia-96xx-PAE'''. This will install the kernel module for the PAE kernel instead of the regular 32bit kernel. Please note that this step is not required for any 64bit (x64_64) users. |
== Special notes == |
Line 56: | Line 59: |
==== Akmods ==== An [[Package/akmod|akmod]] is a new 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. If you think you'd like to try akmods, simply replace '''kmod''' with '''akmod''' in the instructions above and run them again. For example, kmod-nvidia-96xx becomes '''a'''kmod-nvidia-96xx. Akmods are fully compatible with regular kmods, so you can switch between the two or even use both at once without any problems. ==== 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. To avoid such problem, after you have installed the right series of the nvidia driver for your hardware, execute the following commands: '''Fedora 11''' {{{ su - mv /boot/initrd-$(uname -r).img /boot/initrd-$(uname -r)-nouveau.img mkinitrd /boot/initrd-$(uname -r).img $(uname -r) reboot |
=== CUDA === The driver support CUDA when installing the xorg-x11-drv-nvidia-cuda subpackage. Please have a look on the official NVIDIA [[http://docs.nvidia.com/cuda/cuda-getting-started-guide-for-linux/|getting started guide]] {{{ dnf install xorg-x11-drv-nvidia-cuda |
Line 70: | Line 66: |
'''Fedora 12''' {{{ su - mv /boot/initramfs-$(uname -r).img /boot/initramfs-$(uname -r)-nouveau.img dracut /boot/initramfs-$(uname -r).img $(uname -r) reboot |
=== Latest/Beta driver === You can install the latest drivers from Rawhide using the following command: {{{ dnf --enablerepo=rpmfusion-nonfree-rawhide install akmod-nvidia dnf install "kernel-devel == $(uname -r)" dnf update -y |
Line 78: | Line 74: |
Or if you want to grab it from the latest fedora stable release: {{{ yum --releasever=23 install akmod-nvidia yum install "kernel-devel-uname-r == $(uname -r)" yum update -y }}} === x86_64 (64bit) users === If 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, but if you install kmod-nvidia-'''96xx''', you will need xorg-x11-drv-nvidia-'''96xx'''-libs.i686. If using Fedora 11 you will need to use xorg-x11-drv-nvidia-libs.'''i586''', with Fedora 10 or older use xorg-x11-drv-nvidia-libs.'''i386'''. === PAE (Physical Address Extension) kernel users === If you are on a 32bit (i686) system and have the PAE kernel installed to access more RAM, please append '''-PAE''' to all the "kmod" packages above. For example, '''kmod-nvidia-PAE''' or '''kmod-nvidia-96xx-PAE'''. This will install the kernel module for the PAE kernel instead of the regular 32bit kernel. Please note that this step is not required for any 64bit (x64_64) users. === VDPAU/VAAPI === In 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: {{{ # dnf install vdpauinfo libva-vdpau-driver libva-utils }}} With the native vdpau backend from a nvidia card, the output is similar to this: {{{ $ vdpauinfo display: :0.0 screen: 0 API version: 1 Information string: NVIDIA VDPAU Driver Shared Library 280.13 Wed Jul 27 17:15:20 PDT 2011 ... }}} Here is an example of an accurate output of vainfo, when the bridge to the VAAPI is correctly installed. {{{ $ vainfo libva: libva version 0.32.0 Xlib: extension "XFree86-DRI" missing on display ":0.0". libva: va_getDriverName() returns 0 libva: Trying to open /usr/lib64/dri/nvidia_drv_video.so libva: va_openDriver() returns 0 vainfo: VA API version: 0.32 vainfo: Driver version: Splitted-Desktop Systems VDPAU backend for VA-API - 0.7.3 vainfo: Supported profile and entrypoints ... }}} === Akmods === An [[Packaging/KernelModules/Akmods|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. If you think you'd like to try akmods, simply replace '''kmod''' with '''akmod''' in the instructions above and run them again. For example, kmod-nvidia-96xx becomes '''a'''kmod-nvidia-96xx. Akmods are fully compatible with regular kmods, so you can switch between the two or even use both at once without any problems. === Nouveau compatibility === <<Anchor(nouveau)>> 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. |
|
Line 83: | Line 127: |
==== Race condition with drivers 180.xx and 185.xx ==== If you've experienced hangs with these version, you should consider to add this line to the device section of the xorg.conf file: |
=== Secure Boot === Sometimes, Secure Boot blocks the kernel loading the nvidia driver. It can be disabled before booting the OS as a test. === Rawhide === Rawhide kernels are built with debug enabled GPL-only symbols which kernel is incompatible with the nvidia binary-only driver. You need to use the [[http://fedoraproject.org/wiki/RawhideKernelNodebug|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: |
Line 86: | Line 136: |
Option "ConstantFrameRateHint" "True" | dnf downgrade xorg-x11-server\* --releasever=22 --allowerasing echo "exclude=xorg-x11*" >> /etc/dnf/dnf.conf |
Line 88: | Line 139: |
This problem was initilialy reported in our bugzilla as [[http://bugzilla.rpmfusion.org/show_bug.cgi?id=671|potential race condition(?) in binary nvidia 180.xx and 185.xx drivers]]. This will probably be added as a default option unless fixed in a future nvidia driver release. | |
Line 91: | Line 141: |
== Troubleshooting == If you're experiencing problems with the drivers (in particular, lack of 3D after using nvidia-xconfig or nvidia-settings), try executing these commands: |
== Uninstall the nvidia driver == |
Line 94: | Line 144: |
nvidia-config-display disable nvidia-config-display enable |
dnf remove xorg-x11-drv-nvidia\* |
Line 97: | Line 146: |
This will re-configure xorg.conf for use with the RPM Fusion drivers. | |
Line 99: | Line 147: |
== Bug Report == If you still cannot make the driver to work, you can either report a problem to nVidia or to RPM Fusion packager team. Please read: [[https://devtalk.nvidia.com/default/topic/522835/linux/if-you-have-a-problem-please-read-this-first/|If you have a problem, PLEASE read this first]] |
Contents
About this Howto
This howto will help you install the correct nVidia driver 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 model
nVidia 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:
/sbin/lspci | grep VGA
You can also check the nVidia download driver section and see which series is recommended for you card, then install the appropriate driver series. Please remember that our package doesn't work with optimus yet.
Installing the drivers
Please remember that once the driver is installed, it will configure your xorg.conf automatically only if it's not already present. You can also run nvidia-xconfig or nvidia-settings at anytime. Changes will take effect after a full reboot on the newest kernel.
Newer GeForce
dnf install xorg-x11-drv-nvidia akmod-nvidia "kernel-devel-uname-r == $(uname -r)" xorg-x11-drv-nvidia dnf update -y
or kmod-nvidia/kmod-nvidia-PAE if using pre-built kmod for kernel/kernel-PAE
GeForce 8/9/200
dnf install xorg-x11-drv-nvidia-340xx akmod-nvidia-340xx "kernel-devel-uname-r == $(uname -r)" dnf update -y
or kmod-nvidia/kmod-nvidia-PAE if using pre-built kmod for kernel/kernel-PAE
GeForce 6/7
dnf install xorg-x11-drv-nvidia-304xx akmod-nvidia-304xx "kernel-devel-uname-r == $(uname -r)" dnf update -y
GeForce 5 (FX series)
Supported up to Fedora 20 - EOL, no more nvidia updates
yum install akmod-nvidia-173xx "kernel-devel-uname-r == $(uname -r)" yum update -y
GeForce 2 through GeForce 4
Supported up to Fedora 14 - EOL, no more nvidia updates
yum install akmod-nvidia-96xx "kernel-devel-uname-r == $(uname -r)" yum update -y
Special notes
CUDA
The driver support CUDA when installing the xorg-x11-drv-nvidia-cuda subpackage. Please have a look on the official NVIDIA getting started guide
dnf install xorg-x11-drv-nvidia-cuda
Latest/Beta driver
You can install the latest drivers from Rawhide using the following command:
dnf --enablerepo=rpmfusion-nonfree-rawhide install akmod-nvidia dnf install "kernel-devel == $(uname -r)" dnf update -y
Or if you want to grab it from the latest fedora stable release:
yum --releasever=23 install akmod-nvidia yum install "kernel-devel-uname-r == $(uname -r)" yum update -y
x86_64 (64bit) users
If 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, but if you install kmod-nvidia-96xx, you will need xorg-x11-drv-nvidia-96xx-libs.i686. If using Fedora 11 you will need to use xorg-x11-drv-nvidia-libs.i586, with Fedora 10 or older use xorg-x11-drv-nvidia-libs.i386.
PAE (Physical Address Extension) kernel users
If you are on a 32bit (i686) system and have the PAE kernel installed to access more RAM, please append -PAE to all the "kmod" packages above. For example, kmod-nvidia-PAE or kmod-nvidia-96xx-PAE. This will install the kernel module for the PAE kernel instead of the regular 32bit kernel. Please note that this step is not required for any 64bit (x64_64) users.
VDPAU/VAAPI
In 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:
# dnf install vdpauinfo libva-vdpau-driver libva-utils
With the native vdpau backend from a nvidia card, the output is similar to this:
$ vdpauinfo display: :0.0 screen: 0 API version: 1 Information string: NVIDIA VDPAU Driver Shared Library 280.13 Wed Jul 27 17:15:20 PDT 2011 ...
Here is an example of an accurate output of vainfo, when the bridge to the VAAPI is correctly installed.
$ vainfo libva: libva version 0.32.0 Xlib: extension "XFree86-DRI" missing on display ":0.0". libva: va_getDriverName() returns 0 libva: Trying to open /usr/lib64/dri/nvidia_drv_video.so libva: va_openDriver() returns 0 vainfo: VA API version: 0.32 vainfo: Driver version: Splitted-Desktop Systems VDPAU backend for VA-API - 0.7.3 vainfo: Supported profile and entrypoints ...
Akmods
An 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. If you think you'd like to try akmods, simply replace kmod with akmod in the instructions above and run them again. For example, kmod-nvidia-96xx becomes akmod-nvidia-96xx. Akmods are fully compatible with regular kmods, so you can switch between the two or even use both at once without any problems.
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. After the reboot, this command should not output anything:
lsmod |grep nouveau
Secure Boot
Sometimes, Secure Boot blocks the kernel loading the nvidia driver. It can be disabled before booting the OS as a test.
Rawhide
Rawhide 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:
dnf downgrade xorg-x11-server\* --releasever=22 --allowerasing echo "exclude=xorg-x11*" >> /etc/dnf/dnf.conf
Uninstall the nvidia driver
dnf remove xorg-x11-drv-nvidia\*
Bug Report
If 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