Difference between revisions of "Installing Nvidia proprietary drivers in Linux"

From Notes_Wiki
m
m
Line 1: Line 1:
<yambe:breadcrumb self="Installing Nvidia proprietary drivers in Linux">Nvidia graphics card|Nvidia graphics card</yambe:breadcrumb>
[[Main_Page|Home]] > [[Graphics card]] > [[Nvidia graphics card]] > [[Installing Nvidia proprietary drivers in Linux]]
=Installing Nvidia proprietary drivers in Linux=


#Use '<tt>lspci</tt>' to see the graphics card model number
#Use '<tt>lspci</tt>' to see the graphics card model number
Line 26: Line 25:
Refer:
Refer:
* https://www.dedoimedo.com/computers/centos-7-nvidia.html
* https://www.dedoimedo.com/computers/centos-7-nvidia.html
[[Main_Page|Home]] > [[Graphics card]] > [[Nvidia graphics card]] > [[Installing Nvidia proprietary drivers in Linux]]

Revision as of 13:10, 7 April 2022

Home > Graphics card > Nvidia graphics card > Installing Nvidia proprietary drivers in Linux

  1. Use 'lspci' to see the graphics card model number
  2. Download linux drivers from nvidia website for given card. Verify that your specific card is supported by the driver.
  3. Use 'yum -y install dkmskernel-devel kernel-headers kernel' to get latest kernel, its headers and its source
    Prefer use of 'dkms' system for installing nvidia kernel module, so that whenever kernel is changed a new module is automatically compiled and loaded for the new kernel
  4. In case of legacy grub edit '/etc/grub.conf' and add option 'rdblacklist=nouveau nouveau.modeset=0' to blacklist open source nvidia driver from getting loaded.
  5. In case of grub2 edit '/etc/default/grub' to change grub options to include 'rdblacklist=nouveau nouveau.modeset=0' . Then use following to update grub configuration:
    grub2-mkconfig -o /boot/grub2/grub.cfg
  6. Also edit '/etc/modprobe.d/blacklist.conf' add add line 'blacklist nouveau'. Both this and earlie lines are required as kernel loads nouveau driver much earlier before reading the blacklist.conf file.
    Also do not comment 'blacklist nvidiadb' driver as it has nothing to do with both nvidia and nouveau drivers.
  7. Generate a new initrd image using:
    dracut /boot/initrd-$(uname -r).img $(uname -r)
  8. Edit '/etc/inittab' and boot into runlevel 3 on older systems. On modern systems use systemd to boot into multi-user.target.
  9. Restart your computer. You should be in text-only mode with 80x25 screens.
  10. Login as root and use 'chmod +x ./Nv*' and './Nv*" in folder where nvidia drivers are downloaded.
  11. If setup is successful then again edit '/etc/inittab' and change runlevel to 5 on older systems. On modern systems use systemd to boot into graphical.target
  12. Reboot machine to see if the new drivers are working. On modern setups nvidia-settings command should open nvidia setting page, if installation is successful.


Refer:



Home > Graphics card > Nvidia graphics card > Installing Nvidia proprietary drivers in Linux