ubuntu 20.04 上无法检测到 Nvidia 显卡型号

ubuntu 20.04 上无法检测到 Nvidia 显卡型号
== /sys/devices/pci0000:00/0000:00:01.1/0000:01:00.0 ==
modalias : pci:v000010DEd00001F9Dsv000017AAsd0000380Dbc03sc02i00
vendor   : NVIDIA Corporation
driver   : nvidia-driver-495 - distro non-free
driver   : nvidia-driver-460 - distro non-free
driver   : nvidia-driver-470-server - distro non-free
driver   : nvidia-driver-470 - distro non-free recommended
driver   : nvidia-driver-460-server - distro non-free
driver   : xserver-xorg-video-nouveau - distro free builtin

这是当我运行 ubuntu-drivers 设备时我使用 gtx1650 和 amd 集成显卡,并且我双启动 windows 和 ubuntu.windows 可以正常检测到显卡,但 ubuntu 却不能。

~$ lspci -nn | egrep -i "3d|display|vga"
01:00.0 3D controller [0302]: NVIDIA Corporation Device [10de:1f9d] (rev a1)
05:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Device [1002:1638] (rev c5)

这是我运行命令时得到的结果。我想将 VGA 从 amd 显卡切换到 nvidia 显卡,或者禁用集成 amd 显卡。

我使用 Linux 内核 5.13.0-27-generic 。

root@SoojinComputer:/home/soojin# lsmod | grep -i nvidia
nvidia_uvm           1036288  0
nvidia_drm             61440  12
nvidia_modeset       1150976  7 nvidia_drm
nvidia              36904960  650 nvidia_uvm,nvidia_modeset
drm_kms_helper        253952  2 amdgpu,nvidia_drm
drm                   557056  19 gpu_sched,drm_kms_helper,nvidia,amdgpu,drm_ttm_helper,nvidia_drm,ttm
root@SoojinComputer:/home/soojin# lspci -nn -k | egrep -i "3d|display|vga" -A3
01:00.0 3D controller [0302]: NVIDIA Corporation Device [10de:1f9d] (rev a1)
    Subsystem: Lenovo Device [17aa:380d]
    Kernel driver in use: nvidia
    Kernel modules: nvidiafb, nouveau
--
05:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Device [1002:1638] (rev c5)
    Subsystem: Lenovo Device [17aa:3801]
    Kernel driver in use: amdgpu
    Kernel modules: amdgpu

相关内容