1 overview

Since some requirements require the installation of a graphics driver on Linux, here’s how to document the installation process.

2 the environment

  • Manjaro
  • RTX 2060

Download the driver installation package

Go to the official website to search and download, you can stamp here:

Choose your own graphics card model can be, the author choose the following reference:

After downloading a.run file, add the execution permissions:

Sudo chmod u + x NVIDIA - Linux - x86_64-455.28. The run

4 Preparation

4.1 installationlinux-header

Install the linux-header before installing it, and first get the kernel version number:

uname -a

This is version 5.8. Search for Linux-header and select version 5.8 to install:

The command is as follows:

pacman -Ss linux-header
sudo pacman -S linux58-headers

4.2 disableNouveau

In order to install the Nvidia driver, you need to disable it manually. Create the following file:

sudo vim /etc/modprobe.d/blacklist.conf

Enter the following:

blacklist nouveau

If you add a blacklist, you won’t be able to access the graphical interface. To be on the safe side, don’t delete the Nouveau driver in case you fail to access the graphical interface by mistake.

4.3 restart

After rebooting, it is normally impossible to access the graphical interface (the author can not access the single graphics card environment, if you are not sure about the dual graphics card, please test by yourself). Switch to the terminal by Ctrl+Alt+F2 and enter:

lsmod | grep nouveau

No output indicates that Nouveau has been disabled.

It is important to note that this step is disabled, or you will not be able to install the NVIDIA driver.

5 Formal installation

After reboot and switch to the terminal via Ctrl+Alt+F2, log in as root and enter the folder corresponding to the installation package for installation:

. / NVIDIA - Linux - x86_64-455.28. The run

If the following occurs at the terminal:

Nouveau is disabled, so it is impossible to access the graphical interface. This usually occurs on computers with dual graphics cards. You can manually close the graphical interface:

systemctl status lightdm
systemctl stop lightdm

There are several simple options to install according to personal needs to choose yes or no, the installation process is very fast, after completion of the installation will be prompted to complete XXX Complete, restart to enter the graphical interface.

6. Tightening up

Reboot to enter the graphical interface can be entered

nvidia-smi

To check the status of the graphics card, type

nvidia-settings

You can view the configuration of the graphical interface:

In this way, the installation is completed. In addition, the author found that the dual-screen display needs to be set manually, as shown in the figure below:

You need to manually set the position of the two screens, otherwise they will overlap.

The nvidia-settings Settings are temporary, and to save to a file you need root write privileges:

sudo nvidia-settings

7 About the tear of the picture

After installing the driver, I felt uncomfortable using Flameshot to cut a picture and the mouse couldn’t move. I thought it was the screenshot tool, but it was the same with Deepin-Screenshot. Then I went to check the problem and solved it with a simple setup:

Remember to save it to a file.