![Ubuntu 22.04 专有 nvidia-driver-470 GK106 [GeForce GTX 660] 使用 nvidia-prime 无法正常工作](https://linux22.com/image/1199450/Ubuntu%2022.04%20%E4%B8%93%E6%9C%89%20nvidia-driver-470%20GK106%20%5BGeForce%20GTX%20660%5D%20%E4%BD%BF%E7%94%A8%20nvidia-prime%20%E6%97%A0%E6%B3%95%E6%AD%A3%E5%B8%B8%E5%B7%A5%E4%BD%9C.png)
我拿到了这张旧的 nvidia 卡,并决定将它安装在我儿子的电脑上。我已经有一段时间没有使用专有驱动程序了,所以这让我有点困惑。如果有人能帮我验证我的设置是否正确就太好了,因为我似乎无法在 nvidia 卡上运行 glxgears。
我拥有的:
- 戴尔 Vostro 3910
- 第 12 代英特尔酷睿™ i3-12100
- Nvidia 卡 GK106 [GeForce GTX 660]
主要问题:
1- 无法(不知道如何)使用 dGPU。我试过了
$ __NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia glxgears -info
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 149 (GLX)
Minor opcode of failed request: 3 (X_GLXCreateContext)
Value in failed request: 0x0
Serial number of failed request: 26
Current serial number in output stream: 27
2- Nvidia-settings 没有显示显卡,只允许设置主要配置文件。我将其设置为,performance
结果仍然相同。这是它在命令行上显示的内容:
$ sudo nvidia-settings
(nvidia-settings:9650): GLib-GObject-CRITICAL **: 18:19:34.710: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
** (nvidia-settings:9650): CRITICAL **: 18:19:34.710: ctk_powermode_new: assertion '(ctrl_target != NULL) && (ctrl_target->h != NULL)' failed
ERROR: nvidia-settings could not find the registry key file or the X server is not accessible. This file should have been installed along with this driver at
/usr/share/nvidia/nvidia-application-profiles-key-documentation. The application profiles will continue to work, but values cannot be prepopulated or validated, and will not be listed in the help
text. Please see the README for possible values and descriptions.
** Message: 18:19:34.727: PRIME: Requires offloading
** Message: 18:19:34.727: PRIME: is it supported? yes
** Message: 18:19:34.746: PRIME: Usage: /usr/bin/prime-select nvidia|intel|on-demand|query
** Message: 18:19:34.746: PRIME: on-demand mode: "1"
** Message: 18:19:34.746: PRIME: is "on-demand" mode supported? yes
3- 如果有人能解释各种 prime-* 和 nvidia-* 命令,因为我找不到任何适当的帮助/文档。特别是,它是什么prime-switch
以及它与 有什么不同prime-select
?什么是prime-offloading
?没有prime-select
安装命令!任何指示都非常感谢。
我目前所做的:
- 使用以下方式安装发行版提供的驱动程序
sudo ubuntu-drivers install
- 已更新至最新固件
- 切换到 Wayland(也尝试过 X11,但仍然不起作用)
- 清除了 nvidia 驱动程序并安装了 oem 内核 6.5.0-1009-oem(默认为 6.2,结果相同),现在使用
dkms
。 - 从 BIOS 中选择 nvidia 卡作为主卡,并尝试使用该卡的 HDMI 插槽,但没有信号。但是 iGPU HDMI 仍然可以使用
再次感谢