如何得到 [PRIME 简介] 标签出现在nvidia-settings
?
这种情况类似于这个问题,但这是在 Ubuntu 18.04 上,并且 nvidia 驱动程序是已安装。nvidia-settings 仍然显示批判的控制台中的错误信息:
(nvidia-settings:3290): GLib-GObject-CRITICAL **: 09:03:31.871: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
GPU at BusId 0x1 doesn't have a supported video decoder
查看lspci
并apt-list
输出:
$ lspci -k | grep -EA2 'VGA|3D'
00:02.0 VGA compatible controller: Intel Corporation UHD Graphics 620 (rev 07)
Subsystem: ASUSTeK Computer Inc. UHD Graphics 620
Kernel driver in use: i915
--
01:00.0 3D controller: NVIDIA Corporation GP108M [GeForce MX150] (rev a1)
Subsystem: ASUSTeK Computer Inc. GP108M [GeForce MX150]
Kernel driver in use: nvidia
实际的 nvidia 软件包已安装:
$ sudo apt list nvidia* | grep install
nvidia-compute-utils-440/sconosciuto,now 440.33.01-0ubuntu1 amd64 [installato, automatico]
nvidia-dkms-440/sconosciuto,now 440.33.01-0ubuntu1 amd64 [installato, automatico]
nvidia-driver-440/sconosciuto,now 440.33.01-0ubuntu1 amd64 [installato]
nvidia-kernel-common-440/sconosciuto,now 440.33.01-0ubuntu1 amd64 [installato, automatico]
nvidia-kernel-source-440/sconosciuto,now 440.33.01-0ubuntu1 amd64 [installato, automatico]
nvidia-prime/bionic-updates,bionic-updates,now 0.8.8.2 all [installato, automatico]
nvidia-settings/sconosciuto,now 440.33.01-0ubuntu1 amd64 [installato, automatico]
nvidia-utils-440/sconosciuto,now 440.33.01-0ubuntu1 amd64 [installato, automatico]
我应该安装另一个驱动程序吗?应该另外安装还是作为替代品安装?
答案1
您可能遇到了来自多个存储库的驱动程序包冲突的问题。如果您使用 CUDA,这可能会很棘手。
打开 konsole 等终端,然后选择所需的 GPU,如下所示。使用 nvidia 可获得高性能,或使用 intel 可延长电池寿命。
sudo su -
prime-select query # show options
prime-select nvidia # select nvidia gpu
prime-select intel # select intel gpu
reboot
切换图形后应立即重新启动,以避免出现伪影和故障。