NVIDIA 设置中仅英特尔 GPU 设置为灰色

NVIDIA 设置中仅英特尔 GPU 设置为灰色
sudo lshw -C display
  *-display                 
       description: 3D controller
       product: GA107M [GeForce RTX 3050 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=1920x1200 visual=truecolor xres=1920 yres=1200
       resources: iomemory:600-5ff iomemory:610-60f irq:185 memory:be000000-beffffff 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=1920,1200
       resources: iomemory:610-60f iomemory:400-3ff irq:186 memory:6188000000-6188ffffff memory:4000000000-400fffffff ioport:4000(size=64) memory:c0000-dffff memory:4010000000-4016ffffff memory:4020000000-40ffffffff

我正在运行 NVIDIA 驱动程序515.65.01和 Kubuntu 22.10。我想将我的计算机设置为仅使用集成 GPU,因为按需模式仍允许 Xorg 在其上运行。但是,这样做的设置是灰色的。我该如何解决这个问题,或者,如果失败了,通过其他方法来实现这一点?

在此处输入图片描述

答案1

免责声明:这仅适用于 Ubuntu 和 Ubuntu 版本

可以通过手动启用 Intel 专用模式sudo prime-select intel,然后执行系统重启。Intel 专用模式仍为灰色,但已被选中。

在此处输入图片描述

我很确定它确实有效,因为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.

相关内容