Ubuntu 18.04.5 LTS 的默认显卡显示 llvmpipe(LLVM 10.0.0,128 位)而不是专用 GPU(AMD/Nvidea 组合)。如何修复此问题?

Ubuntu 18.04.5 LTS 的默认显卡显示 llvmpipe(LLVM 10.0.0,128 位)而不是专用 GPU(AMD/Nvidea 组合)。如何修复此问题?

我最近购买了一台配备 AMD-Ryzen 4800H(8 核)CPU 的 ASUS TUF Gaming A15 笔记本电脑。它集成了 Nvida Geforce GTX 1650TI 作为专用 GPU,并集成了 AMD Radeon 作为默认 GPU。在双启动 Windows 10 系统和 Ubuntu 18.04.5 LTS 后,我发现系统既没有检测到默认的 AMD GPU,也没有检测到专用的 Nvidia GPU。系统信息反而显示 llvmpipe(LLVM 10.0.0,128 位)作为默认图形渲染器。因此,我无法调整屏幕亮度,而且在使用 Ubuntu 时电池似乎消耗得很快。

我的内核版本是 5.4.0-52-generic,并且我在 BIOS 中禁用了安全启动。

我可以从终端收集到的一些有用信息如下所示:

输入:inxi -G

输出:

Graphics:  Card-1: NVIDIA Device 1f95
           Card-2: Advanced Micro Devices [AMD/ATI] Device 1636
           Display Server: x11 (X.Org 1.20.8 )
           drivers: fbdev,ati (unloaded: modesetting,vesa,radeon)
           Resolution: [email protected]
           OpenGL: renderer: llvmpipe (LLVM 10.0.0, 128 bits) version: 3.3 Mesa 20.0.8

输入:lspci -nnk | grep -iA2 VGA

输出:

01:00.0 VGA compatible controller [0300]: NVIDIA Corporation Device [10de:1f95] (rev a1)
    Subsystem: ASUSTeK Computer Inc. Device [1043:16df]
    Kernel modules: nvidiafb, nouveau, nvidia_drm, nvidia
--
05:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Device [1002:1636] (rev c6)
    Subsystem: ASUSTeK Computer Inc. Device [1043:16df]
    Kernel modules: amdgpu

输入:dmesg | grep drm

输出:

[   15.975252] [drm] amdgpu kernel modesetting enabled.
[   15.976121] [drm] This hardware requires experimental hardware support.

我已经安装了 nvidea-driver-455,但它无法被检测/加载。

输入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.

我的 /etc/default/grub/ 最初有以下行。

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nouveau.modeset=0 tpm_tis.interrupts=0 acpi_osi=Linux i915.preliminary_hw_support=1 idle=nomwait acpi_backlight=vendor"

如下所示更改上面的行也不起作用。

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash radeon.cik_support=0 radeon.si_support=0 amdgpu.si_support=1 amdgpu.cik_support=1 amdgpu.dc=1 amdgpu.dpm=1"

任何帮助修复此问题的帮助都将不胜感激。如果我需要提供调试此问题所需的任何进一步详细信息,请告诉我。

相关内容