Otu esi etinye ma kwalite ndị ọkwọ ụgbọ ala Nvidia na Ubuntu 20.04

Ọtụtụ sistemụ desktọpụ Linux ọgbara ọhụrụ dịka Ubuntu bia na a Nvidia ọkwọ ụgbọala etinyegoro na mbụ Ọhụrụ Onye na-anya ngwaọrụ eserese mepere emepe maka kaadị vidiyo Nvidia. Maka ọtụtụ akụkụ, nke a bụ ihe a na-anabata; Agbanyeghị, ọ bụrụ na ị na-eji sistemụ Linux gị maka imepụta eserese ma ọ bụ egwuregwu, ị nwere ike nweta ndị ọkwọ ụgbọ ala ka mma.

Kemgbe ụwa, Ọhụrụ Ndị ọkwọ ụgbọ ala nwere ji nwayọọ nwayọọ karịa nke Nvidia, nke na-enweghị njirimara kacha ọhụrụ ngwaike kaadị eserese, teknụzụ ngwanrọ na nkwado. N'ọtụtụ ọnọdụ, ịkwalite ndị ọkwọ ụgbọ ala Nvidia gị site na iji ntuziaka ndị a bara uru karịa ịmeghị ya. N'ọnọdụ ụfọdụ, ị nwere ike ịhụ nkwalite ụfọdụ n'ozuzu ya.

N'ime nkuzi na-esonụ, ị ga-amụta ka esi etinye Nvidia Graphic Drivers maka usoro 470.xx / 465.xx / 460.xx / 390.xx na 340.xx site na Nvidia Proprietary Repository, na-enye gị ihe kachasị ọhụrụ na ngwanrọ dị.

Prerequisites

  • OS akwadoro: Ubuntu 20.04 ma ọ bụ karịa.
  • Akaụntụ onye ọrụ: Akaụntụ onye ọrụ nwere sudo ma ọ bụ ohere mgbọrọgwụ.

Na-emelite Sistemụ Ọrụ

Melite gi Ubuntu 20.04 sistemụ arụmọrụ iji hụ na ngwugwu niile dị kwalitere ruo ugbu a:

sudo apt update && sudo apt upgrade

Mgbọrọgwụ ma ọ bụ Sudo Access

Site na ndabara, akaụntụ ahụ ejiri Ubuntu na-enye ọkwa sudo, mana ọ bụrụ na ịchọrọ ịnyekwu akaụntụ sudo / mgbọrọgwụ, ị ga-enwerịrị ike ịnweta ya. mgbọrọgwụ paswọọdụ iji iwu su ma ọ bụ gaa na nkuzi nkuzi anyị Otu esi etinye onye ọrụ na Sudoers na Ubuntu.


Advertisement


Nhọrọ 1. Wụnye ndị ọkwọ ụgbọ ala NVIDIA site na iji Terminal

Nhọrọ mbụ iji wụnye ndị ọkwọ ụgbọ ala NVIDIA maka sistemụ arụmọrụ Ubuntu 20.04 gị bụ iji ahịrị iwu. Ndị ọrụ dị elu na-ahọrọ iji iwu dabere na iwu, mana onye mbido nwere ike nweta nke a ngwa ngwa site na ihe ndị a:

Mepee ọnụ ọnụ gị "CTRL + TLỌ + T" wee chọpụta ozi na kaadị eserese gị nke mbụ.

ubuntu-drivers devices

Ihe atụ mmepụta:

ubuntu-drivers devices
 == /sys/devices/pci0000:00/0000:00:03.0/0000:03:00.0 ==
 modalias : pci:v000010DEd00001F82sv00001458sd00004028bc03sc00i00
 vendor   : NVIDIA Corporation
 model    : TU117 [GeForce GTX 1650]
 driver   : nvidia-driver-450-server - distro non-free
 driver   : nvidia-driver-418-server - distro non-free
 driver   : nvidia-driver-460 - distro non-free recommended
 driver   : nvidia-driver-465 - distro non-free
 driver   : nvidia-driver-460-server - distro non-free
 driver   : xserver-xorg-video-nouveau - distro free builtin

Site ihe atụ mmepụta, ị pụrụ ịhụ anyị sistemụ modul bụ "TU117 (GeForce GTX 1650]", na onye ọkwọ ụgbọ ala Nvidia akwadoro bụ"Nvidia-ọkwọ ụgbọala-460". Cheta na nke a bụ naanị ihe atụ. Onye ọ bụla ga-enwe kaadị eserese Nivida dị iche iche. Chọọ maka nhọrọ akwadoro ma ọ bụrụ na enwere otu.

Ọzọ, anyị ga-etinye ihe "Nvidia-ọkwọ ụgbọala-460" ngwugwu ọkwọ ụgbọala. Enwere ike ime nke a n'ụzọ abụọ.

Nke mbụ, ọ bụrụ na ị nwere mmasị na ụdị akwadoro, jiri iwu a:

sudo ubuntu-drivers autoinstall

Nke abụọ, kọwaa ya n'okpuru ma ọ bụrụ na ịchọrọ ịwụnye ngwugwu ọkwọ ụgbọala ozugbo ma ọ bụ họrọ ụdị ọzọ.

sudo apt install nvidia-driver-460

Ozugbo arụnyere, ị ga-achọ ịmalitegharị sistemụ arụmọrụ Ubuntu gị, tinye iwu a:

reboot

Mgbe ịbanye n'ime sistemụ gị, ị nwere ike ịlele ọkwa nke kaadị eserese site na iji "Nvidia-smi" iwu.

nvidia-smi

Ihe atụ mmepụta:

~$ nvidia-smi
 Sun Jun 27 23:01:34 2021       
 +-----------------------------------------------------------------------------+
 | NVIDIA-SMI 460.80       Driver Version: 460.80       CUDA Version: 11.2     |
 |-------------------------------+----------------------+----------------------+
 | GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
 | Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
 |                               |                      |               MIG M. |
 |===============================+======================+======================|
 |   0  GeForce GTX 1650    Off  | 00000000:03:00.0  On |                  N/A |
 | 56%   30C    P8    N/A /  75W |    403MiB /  3903MiB |      5%      Default |
 |                               |                      |                  N/A |
 +-------------------------------+----------------------+----------------------+
 +-----------------------------------------------------------------------------+
 | Processes:                                                                  |
 |  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
 |        ID   ID                                                   Usage      |
 |=============================================================================|
 |    0   N/A  N/A      1627      G   /usr/lib/xorg/Xorg                182MiB |
 |    0   N/A  N/A      1772      G   /usr/bin/gnome-shell               35MiB |
 |    0   N/A  N/A      3782      G   …lib/vmware/bin/vmware-vmx        8MiB |
 |    0   N/A  N/A     35908      G   …lib/vmware/bin/vmware-vmx        8MiB |
 |    0   N/A  N/A     81318      G   /usr/lib/firefox/firefox          161MiB |
 +-----------------------------------------------------------------------------+

Nhọrọ 2. Wụnye ndị ọkwọ ụgbọ ala NVIDIA Iji GUI

Ihe ngwọta nke abụọ na ịwụnye Nvidia Drivers bụ iji usoro GUI. A na-akwado nke a maka ndị mbido na Linux karịsịa.

Nke mbụ, gaa na menu ngwa gị wee mepee ya "Ndị ọkwọ ụgbọ ala ndị ọzọ" dịka ọmụmaatụ n'okpuru.

Otu esi etinye ma kwalite ndị ọkwọ ụgbọ ala Nvidia na Ubuntu 20.04

Ọzọ, "Sọftụwia & MmeliteWindow ga-apụta, ebe ị nwere ike ịhụ ndị ọkwọ ụgbọala niile dị maka kaadị eserese Nvidia gị iji wụnye. Mara, ụfọdụ ndị ọrụ ga-ahụ nha ndepụta dị iche iche dabere na afọ na ewu ewu nke kaadị eserese.

Otu esi etinye ma kwalite ndị ọkwọ ụgbọ ala Nvidia na Ubuntu 20.04

Nzọụkwụ ọzọ bụ ịhọrọ Nvidia diver ịchọrọ ịwụnye wee pịa "Tinye Mgbanwe"Bọtịnụ.

Mara, nrụnye ga-ewe 2 ruo 3 nkeji, dabere na sistemụ gị na akụrụngwa ya.

Ozugbo etinyere ya, malitegharịa sistemụ arụmọrụ Ubuntu 20.04 gị.

reboot

Ọ bụ ya. Ị tinyela Nvidia Drivers site na iji usoro GUI. Ndụmọdụ dị mma bụ ịlele ntọala na ozi nke kaadị eserese gị, nke enwere ike ịme na ọdụ gị, na-akpọku iwu a.

sudo nvidia-settings
Otu esi etinye ma kwalite ndị ọkwọ ụgbọ ala Nvidia na Ubuntu 20.04

Advertisement


Nhọrọ. Wụnye Nvidia Bleeding Edge PPA Beta Drivers

Ka e were ya na ịchọrọ ngwugwu Nvidia ọhụrụ n'ihi na kaadị eserese gị bụ modul ọhụrụ. Ị nweghị ike ịhụ nkwado ọkwọ ụgbọ ala na ebe nchekwa ndabere dị na Ubuntu; tinye Nvidia PPA ndị a.

sudo apt install software-properties-common
sudo add-apt-repository ppa:graphics-drivers/ppa

Mara, agụọ ndị ọkwọ ụgbọ ala ndị a dị ka ndị anaghị akwụrụ ọtọ. Wụnye na ihe egwu nke gị. Jide n'aka na ịkwado ihe niile na mbụ.

Na-esote, pịnye iwu ọnụ ka iweta ndụmọdụ na kaadị eserese gị.

ubuntu-drivers devices

Ị ga-enweta mmepụta ọhụrụ ma e jiri ya tụnyere nke mbụ yana kwụsiri ike:

~$ ubuntu-drivers devices
 == /sys/devices/pci0000:00/0000:00:03.0/0000:03:00.0 ==
 modalias : pci:v000010DEd00001F82sv00001458sd00004028bc03sc00i00
 vendor   : NVIDIA Corporation
 model    : TU117 [GeForce GTX 1650]
 driver   : nvidia-driver-465 - third-party non-free
 driver   : nvidia-driver-418-server - distro non-free
 driver   : nvidia-driver-450-server - distro non-free
 driver   : nvidia-driver-460-server - distro non-free
 driver   : nvidia-driver-460 - third-party non-free recommended
 driver   : xserver-xorg-video-nouveau - distro free builtin

Dị ka ị pụrụ ịhụ, anyị nwere ugbu a ndị ọzọ akwadoro ọkwọ ụgbọala. Iji wụnye, soro nhọrọ iwu ọzọ.

Nke mbụ, ọ bụrụ na ị nwere mmasị na ụdị akwadoro, jiri iwu a:

sudo ubuntu-drivers autoinstall

Nke abụọ, kọwaa ya n'okpuru ma ọ bụrụ na ịchọrọ ịwụnye ngwugwu ọkwọ ụgbọala ozugbo ma ọ bụ họrọ ụdị ọzọ.

sudo apt install nvidia-driver-460

Site na ndị ọkwọ ụgbọ ala nnwale/beta ọhụrụ, ị ga na-emelite ngwugwu nkwado ole na ole.

Ihe atụ mmepụta:

 Reading package lists… Done
 Building dependency tree… Done
 Reading state information… Done
 The following additional packages will be installed:
   dctrl-tools dkms libnvidia-cfg1-460 libnvidia-compute-460 libnvidia-decode-460
   libnvidia-encode-460 libnvidia-extra-460 libnvidia-fbc1-460 libnvidia-gl-460
   libnvidia-ifr1-460 nvidia-compute-utils-460 nvidia-dkms-460 nvidia-kernel-common-460
   nvidia-kernel-source-460 nvidia-utils-460 xserver-xorg-video-nvidia-460
 Suggested packages:
   debtags menu
 Recommended packages:
   libnvidia-compute-460:i386 libnvidia-decode-460:i386 libnvidia-encode-460:i386
   libnvidia-ifr1-460:i386 libnvidia-fbc1-460:i386 libnvidia-gl-460:i386
 The following packages will be REMOVED:
   linux-modules-nvidia-460-5.11.0-18-generic linux-modules-nvidia-460-5.11.0-22-generic
   linux-modules-nvidia-460-generic-hwe-20.04
 The following NEW packages will be installed:
   dctrl-tools dkms nvidia-dkms-460
 The following packages will be upgraded:
   libnvidia-cfg1-460 libnvidia-compute-460 libnvidia-decode-460 libnvidia-encode-460
   libnvidia-extra-460 libnvidia-fbc1-460 libnvidia-gl-460 libnvidia-ifr1-460
   nvidia-compute-utils-460 nvidia-driver-460 nvidia-kernel-common-460
   nvidia-kernel-source-460 nvidia-utils-460 xserver-xorg-video-nvidia-460
 14 to upgrade, 3 to newly install, 3 to remove and 3 not to upgrade.
 Need to get 131 MB of archives.
 After this operation, 106 kB of additional disk space will be used.
 Do you want to continue? [Y/n] 

ụdị "Y," wee pịa "Tinye igodo" ịga n'ihu na mezue nrụnye. Cheta ịmalitegharị sistemụ gị dịka ọ dị na mbụ.

reboot

Wụnye usoro Nvidia ọkwọ ụgbọ ala 470 kacha ọhụrụ

Ị nwekwara ike ịwụnye usoro 470 kachasị ọhụrụ nke na-akwado kaadị eserese Nvidia ọhụrụ; n'okpuru bụ ihe atụ ọzọ.

Gbaa iwu ahụ Ngwa "ubuntu-ọkwọ ụgbọala."

ubuntu-drivers devices

Ihe atụ mmepụta:

== /sys/devices/pci0000:00/0000:00:03.1/0000:26:00.0 ==
modalias : pci:v000010DEd00001E89sv00001458sd00003FC1bc03sc00i00
vendor : NVIDIA Corporation
model : TU104 [GeForce RTX 2060]
driver : nvidia-driver-450-server - distro non-free
driver : nvidia-driver-460-server - distro non-free
driver : nvidia-driver-460 - distro non-free
driver : nvidia-driver-470-server - distro non-free
driver : nvidia-driver-470 - third-party non-free recommended
driver : xserver-xorg-video-nouveau - distro free builtin

A na-atụ aro Nvidia Driver 470 Third Party (Nvidia). Iji wụnye ọkwọ ụgbọala a maka ngwugwu ọkwọ ụgbọ ala kacha ọhụrụ, mee iwu a:

sudo apt install nvidia-driver-470 -y

Ugbu a malitegharịa usoro Ubuntu gị.

reboot

Ugbu a gosi na iji ya "Nvidia-smi" nye iwu ka arụnyere ụdị ọkwọ ụgbọ ala Nvidia:

nvidia-smi

Ihe atụ mmepụta:

Sat Oct  2 21:13:34 2021       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 470.74       Driver Version: 470.74       CUDA Version: 11.4     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  NVIDIA GeForce ...  Off  | 00000000:26:00.0  On |                  N/A |
|  0%   50C    P5    13W / 170W |    608MiB /  5926MiB |     10%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|    0   N/A  N/A      3018      G   /usr/lib/xorg/Xorg                336MiB |
|    0   N/A  N/A      3515      G   /usr/bin/gnome-shell               97MiB |
|    0   N/A  N/A      7823      G   ...AAAAAAAAA= --shared-files       21MiB |
|    0   N/A  N/A     92314      G   ...AAAAAAAAA= --shared-files       33MiB |
|    0   N/A  N/A    763859      G   ...lib/vmware/bin/vmware-vmx       67MiB |
|    0   N/A  N/A    764117      G   ...AAAAAAAAA= --shared-files       47MiB |
+-----------------------------------------------------------------------------+

Ekele, ị wụnyela Nvidia Drivers maka Ubuntu 20.04 Focal Fossa.

Okwu na mmechi

N'ime ntuziaka ahụ, ị ​​mụtara ka esi etinye ihe nkwụsi ike kachasị ọhụrụ ma ọ bụ beta na sistemụ Ubuntu 20.04 LTS Focal Fossa gị. Enwere ike ịchọta ozi ndị ọzọ na Nvidia Drivers maka Ubuntu site na ịga na Ubuntu nchọpụta nsogbu ngalaba.

Ahapụ a Comment