我有一台戴尔 Inspiron 7706 2n1,配备 NVIDIA GeForce MX350 和第 11 代英特尔 i7-1165G7。
现在我正在使用 Intel 集成显卡,但我希望在使用某些应用程序时能够切换到 NVIDIA 显卡。我在网上查找了该怎么做,但似乎没有什么帮助。我试过,prime-run
但没有安装。当我__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia glxinfo
测试 gpu 切换时,我得到了以下结果:
name of display: :0
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 152 (GLX)
Minor opcode of failed request: 24 (X_GLXCreateNewContext)
Value in failed request: 0x0
Serial number of failed request: 50
Current serial number in output stream: 51
我能做些什么?
可能有帮助的事情
❯ lspci -k | grep -A 2 -E "(VGA|3D)"
00:02.0 VGA compatible controller: Intel Corporation Device 9a49 (rev 01)
DeviceName: Onboard - Video
Subsystem: Dell Device 09df
--
2b:00.0 3D controller: NVIDIA Corporation GP107M [GeForce MX350] (rev a1)
Kernel modules: nvidiafb, nouveau, nvidia_drm, nvidia
2c:00.0 Non-Volatile memory controller: Samsung Electronics Co Ltd Device a809
❯ modprobe nvidia
modprobe: ERROR: ../libkmod/libkmod-module.c:838 kmod_module_insert_module() could not find module by name='off'
modprobe: ERROR: could not insert 'off': Unknown symbol in module, or unknown parameter (see dmesg)
❯ prime-select query
intel
/etc/modprobe.d