我正在尝试在运行 Ubuntu 19.04 的 ASUS zenbook 14 上安装最新的 NVDIA 图形驱动程序。我正在遵循本教程:https://www.cyberciti.biz/faq/ubuntu-linux-install-nvidia-driver-latest-proprietary-driver/
根据软件更新程序的窗口,驱动程序在那里:
但是当我检查驱动程序的状态时,我得到:
giulio@giulio-ZenBook-UX431FN:~$ nvidia-smi
NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.
PS. Grub 已开启nomodeset
。
我如何安装该驱动程序?
我正在发布以下命令的编辑:
giulio@giulio-ZenBook-UX431FN:~$ sudo ubuntu-drivers devices
[sudo] password for giulio:
== /sys/devices/pci0000:00/0000:00:1c.0/0000:01:00.0 ==
modalias : pci:v000010DEd00001D12sv00001043sd00001EBEbc03sc02i00
vendor : NVIDIA Corporation
model : GP108M [GeForce MX150]
driver : nvidia-driver-390 - distro non-free
driver : nvidia-driver-418 - distro non-free recommended
driver : xserver-xorg-video-nouveau - distro free builtin
giulio@giulio-ZenBook-UX431FN:~$ mokutil --sb-state
SecureBoot enabled
giulio@giulio-ZenBook-UX431FN:~$ test -d /sys/firmware/efi && echo efi || echo "Legacy(bios)"
efi
giulio@giulio-ZenBook-UX431FN:~$ sudo lshw -c video
*-display UNCLAIMED
description: VGA compatible controller
product: Intel Corporation
vendor: Intel Corporation
physical id: 2
bus info: pci@0000:00:02.0
version: 00
width: 64 bits
clock: 33MHz
capabilities: pciexpress msi pm vga_controller bus_master cap_list
configuration: latency=0
resources: iomemory:600-5ff iomemory:400-3ff memory:6012000000-6012ffffff memory:4000000000-400fffffff ioport:4000(size=64) memory:c0000-dffff
*-display UNCLAIMED
description: 3D controller
product: GP108M [GeForce MX150]
vendor: NVIDIA Corporation
physical id: 0
bus info: pci@0000:01:00.0
version: a1
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list
configuration: latency=0
resources: iomemory:600-5ff iomemory:600-5ff memory:80000000-80ffffff memory:6000000000-600fffffff memory:6010000000-6011ffffff ioport:3000(size=128) memory:81000000-8107ffff
giulio@giulio-ZenBook-UX431FN:~$ dkms status
nvidia, 418.56, 5.0.0-13-generic, x86_64: installed
giulio@giulio-ZenBook-UX431FN:~$ echo $XDG_SESSION_TYPE
x11
giulio@giulio-ZenBook-UX431FN:~$ lspci -knn | grep -A 3 -E "(VGA|3D)"
00:02.0 VGA compatible controller [0300]: Intel Corporation UHD Graphics 620 (Whiskey Lake) [8086:3ea0]
Subsystem: ASUSTeK Computer Inc. UHD Graphics 620 (Whiskey Lake) [1043:1ebe]
Kernel modules: i915
00:04.0 Signal processing controller [1180]: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Thermal Subsystem [8086:1903] (rev 0b)
--
01:00.0 3D controller [0302]: NVIDIA Corporation GP108M [GeForce MX150] [10de:1d12] (rev a1)
Subsystem: ASUSTeK Computer Inc. GP108M [GeForce MX150] [1043:1ebe]
Kernel modules: nvidiafb, nouveau, nvidia_drm, nvidia
02:00.0 Non-Volatile memory controller [0108]: Sandisk Corp Device [15b7:5003] (rev 01)
lsmod | grep nvidia
没有输出。
答案1
驱动程序可能已安装,但 Nvidia 适配器未启用。
通过运行来启用它:
sudo prime-select nvidia
然后注销并重新登录。适配器现在应该已启用并nvidia-smi
可以工作。