Dell XPS 15 - Nvidia 3050 Ti 驱动程序

Dell XPS 15 - Nvidia 3050 Ti 驱动程序

我有一台戴尔 XPS 15 型号的电脑,刚刚安装了全新的 Ubuntu 22.04.1 LTS。一开始安装时遇到了很多问题,但过了一段时间后就成功了。我还尝试安装“nvidia-drivers-515”驱动程序。我也遇到了一些问题,但最终还是安装成功了。

Ubuntu 似乎仍在使用集成卡,而不是 Nvidia。

这是一些输出。

➜  ~ lspci -nn | grep -E 'VGA|Display'
00:02.0 VGA compatible controller [0300]: Intel Corporation Alder Lake-P Integrated Graphics Controller [8086:46a6] (rev 0c)

系统可以识别这两张卡,但使用的是集成卡。

➜  ~ sudo lshw -c video
  *-display                 
       description: 3D controller
       product: GA107M [GeForce RTX 3050 Ti Mobile]
       vendor: NVIDIA Corporation
       physical id: 0
       bus info: pci@0000:01:00.0
       logical name: /dev/fb0
       version: a1
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list rom fb
       configuration: depth=32 driver=nvidia latency=0 mode=3456x2160 visual=truecolor xres=3456 yres=2160
       resources: iomemory:600-5ff iomemory:610-60f irq:189 memory:bb000000-bbffffff memory:6000000000-60ffffffff memory:6100000000-6101ffffff ioport:3000(size=128)
  *-display
       description: VGA compatible controller
       product: Alder Lake-P Integrated Graphics Controller
       vendor: Intel Corporation
       physical id: 2
       bus info: pci@0000:00:02.0
       logical name: /dev/fb0
       version: 0c
       width: 64 bits
       clock: 33MHz
       capabilities: pciexpress msi pm vga_controller bus_master cap_list rom fb
       configuration: depth=32 driver=i915 latency=0 resolution=3456,6480
       resources: iomemory:610-60f iomemory:400-3ff irq:188 memory:6186000000-6186ffffff memory:4000000000-400fffffff ioport:4000(size=64) memory:c0000-dffff memory:4010000000-4016ffffff memory:4020000000-40ffffffff

从以下输出来看 Nvidia 似乎处于休眠状态或者我遗漏了什么?

➜  ~ nvidia-smi         
Mon Oct 10 23:23:33 2022       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 515.65.01    Driver Version: 515.65.01    CUDA Version: 11.7     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  NVIDIA GeForce ...  Off  | 00000000:01:00.0 Off |                  N/A |
| N/A   46C    P3    N/A /  N/A |      4MiB /  4096MiB |      0%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|    0   N/A  N/A      2372      G   /usr/lib/xorg/Xorg                  4MiB |
+-----------------------------------------------------------------------------+

为什么两张卡都处于活动状态?如何确保我正在使用 Nvidia 并且驱动程序正常运行?

更新:来自评论的命令的输出

➜  ~ glxinfo | grep OpenGL
OpenGL vendor string: Intel
OpenGL renderer string: Mesa Intel(R) Graphics (ADL GT2)
OpenGL core profile version string: 4.6 (Core Profile) Mesa 22.0.5
OpenGL core profile shading language version string: 4.60
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 4.6 (Compatibility Profile) Mesa 22.0.5
OpenGL shading language version string: 4.60
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.2 Mesa 22.0.5
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
OpenGL ES profile extensions:

相关内容