18.04 Nvidia 驱动程序已安装但未使用

18.04 Nvidia 驱动程序已安装但未使用

重大编辑:

正如@marmayogi所建议的,因为我全新安装了 18.04,所以以下是一些命令的新输出:

$ mokutil --sb-state
SecureBoot disabled
$ ls /sys/firmware/efi/
config_table  esrt              fw_vendor  runtime-map  vars
efivars       fw_platform_size  runtime    systab

$ sudo lshw -c video
  *-display                 
       description: 3D controller
       produit: GP107GLM [Quadro P2000 Mobile]
       fabriquant: NVIDIA Corporation
       identifiant matériel: 0
       information bus: pci@0000:01:00.0
       version: a1
       bits: 64 bits
       horloge: 33MHz
       fonctionnalités: pm msi pciexpress bus_master cap_list rom
       configuration: driver=nvidia latency=0
       ressources: irq:154 mémoire:ec000000-ecffffff mémoire:c0000000-cfffffff mémoire:d0000000-d1ffffff portE/S:3000(taille=128) mémoire:ed000000-ed07ffff
  *-display
       description: VGA compatible controller
       produit: Intel Corporation
       fabriquant: Intel Corporation
       identifiant matériel: 2
       information bus: pci@0000:00:02.0
       version: 00
       bits: 64 bits
       horloge: 33MHz
       fonctionnalités: pciexpress msi pm vga_controller bus_master cap_list rom
       configuration: driver=i915 latency=0
       ressources: irq:153 mémoire:eb000000-ebffffff mémoire:80000000-8fffffff portE/S:4000(taille=64) mémoire:c0000-dffff
$ dkms status
nvidia, 390.116, 4.18.0-17-generic, x86_64: installed
$ lsmod | grep nvidia
nvidia_uvm            757760  0
nvidia_drm             40960  0
nvidia_modeset       1048576  1 nvidia_drm
nvidia              14376960  14 nvidia_uvm,nvidia_modeset
drm_kms_helper        172032  2 nvidia_drm,i915
drm                   458752  25 drm_kms_helper,nvidia_drm,i915
ipmi_msghandler       102400  2 ipmi_devintf,nvidia
$ echo $XDG_SESSION_TYPE
wayland
$ lspci -k | grep -A 2 -E "(VGA|3D)"
00:02.0 VGA compatible controller: Intel Corporation Device 3e9b
    Subsystem: Dell Device 087d
    Kernel driver in use: i915
--
01:00.0 3D controller: NVIDIA Corporation GP107GLM [Quadro P2000 Mobile] (rev a1)
    Subsystem: Dell Device 087d
    Kernel driver in use: nvidia
$ sudo prime-select query
nvidia

此外,经过进一步调查,我意识到(出于某种原因)使用了 wayland,这可能是它无法正常工作的原因。我在互联网上看到,nvidia 驱动程序在 wayland 下尚不支持。

当我使用 gnome 时,我注意到我可以选择在登录时使用“gnome with Xorg”运行会话。但是,如果我选择此选项,则无法打开会话,并且我会返回到日志屏幕。

输出:

$ sudo ubuntu-drivers devices
== /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0 ==
modalias : pci:v000010DEd00001CBAsv00001028sd0000087Dbc03sc02i00
vendor   : NVIDIA Corporation
driver   : nvidia-driver-396 - third-party free
driver   : nvidia-driver-430 - third-party free recommended
driver   : nvidia-driver-418 - third-party free
driver   : nvidia-driver-415 - third-party free
driver   : nvidia-driver-390 - distro non-free
driver   : nvidia-driver-410 - third-party free
driver   : xserver-xorg-video-nouveau - distro free builtin

答案1

没有任何迹象表明未使用 nvidia 驱动程序,因为 lspci 说:

正在使用的内核驱动程序:nvidia

但也许您的 PC 使用的是集成 GPU。您是否尝试过在 BIOS 中更改默认 GPU?或者完全禁用集成显卡?

相关内容