Arch linux установка драйверов nvidia

Saved searches

Use saved searches to filter your results more quickly

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

korvahannu/arch-nvidia-drivers-installation-guide

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Sign In Required

Please sign in to use Codespaces.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching Xcode

If nothing happens, download Xcode and try again.

Launching Visual Studio Code

Your codespace will open once ready.

There was a problem preparing your codespace, please try again.

Latest commit

Git stats

Files

Failed to load latest commit information.

README.md

Arch Linux nvidia drivers installation guide

This is a quick tutorial on how you can install proprietary nvidia drivers for Arch Linux. Please note if you are using anything other than the regular linux kernel, such as linux-lts, you need to make changes accordingly. All the commands marked with like this are meant to be run on the terminal. Do not reboot before you have finished all the steps below!

Читайте также:  Command to send email from linux

Step 1: Installing required packages and enable multilib

  1. Update the system: sudo pacman -Syu
  2. Install required packages: sudo pacman -S base-devel linux-headers git —needed
  3. Install the AUR helper, yay
 cd ~ git clone https://aur.archlinux.org/yay.git cd yay makepkg -si 
  1. Enable multilib repository sudo nano /etc/pacman.conf
  • Uncomment lines that have [multilib] and Include = /etc/pacman.d/mirrorlist , and then run yay -Syu , to update the system package database. Do not run yay -Syy , as that may cause a partial upgrade.

Step 2: Installing the driver packages

  1. This step might be a bit confusing. First find your nvidia card from this list here
  2. Check what driver packages you need to install from the list below
  1. Install the correct packages, for example yay -S nvidia-470xx-dkms nvidia-470xx-utils lib32-nvidia-470xx-utils
  2. I also recommend you to install nvidia-settings via yay -S nvidia-settings

Step 3: Enabling DRM kernel mode setting

  1. Add the kernel parameter
  • Go to your grub file with sudo nano /etc/default/grub
  • Find GRUB_CMDLINE_LINUX_DEFAULT
  • Append the line with nvidia-drm.modeset=1
  • For example: GRUB_CMDLINE_LINUX_DEFAULT=»quiet splash nvidia-drm.modeset=1″
  • Save the file with CTRL+O
  • Finish the grub config with sudo grub-mkconfig -o /boot/grub/grub.cfg
  1. Add the early loading
  • Go to your mkinitcpio configuration file with sudo nano /etc/mkinitcpio.conf
  • Find MODULES=()
  • Edit the line to match MODULES=(nvidia nvidia_modeset nvidia_uvm nvidia_drm)
  • Save the file with CTRL+O
  • Finish the mkinitcpio configuration with sudo mkinitcpio -P
  1. Adding the pacman hook
  • Find the nvidia.hook in this repository, make a local copy and open the file with your preferred editor
  • Find Target=nvidia
  • Replace the nvidia with the base driver you installed, e.g. nvidia-470xx-dkms
  • Save the file and move it to /etc/pacman.d/hooks/ , for example with sudo mv ./nvidia.hook /etc/pacman.d/hooks/
Читайте также:  Executing python in linux

You can now safely reboot and enjoy the proprietary nvidia drivers. If you have any problems check the Arch Linux Wiki or the forums for common pitfalls and questions.

Источник

Оцените статью
Adblock
detector