我正在尝试更新我的 GPU 驱动程序以使用 OpenGL 4+(Ubuntu 18.04)。我已经安装了推荐的 Nvidia 驱动程序,但是当我运行
glxinfo | grep OpenGL
我仍然得到以下输出:
OpenGL vendor string: VMware, Inc.
OpenGL renderer string: llvmpipe (LLVM 8.0, 256 bits)
OpenGL core profile version string: 3.3 (Core Profile) Mesa 19.0.2
OpenGL core profile shading language version string: 3.30
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 3.1 Mesa 19.0.2
OpenGL shading language version string: 1.40
OpenGL context flags: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.0 Mesa 19.0.2
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.00
OpenGL ES profile extensions:
显示 OpenGL 仍在 Mesa 和llvmpipe
渲染器字符串上,而不是显示 Nvidia GPU。
当我检查使用了哪些驱动程序时,我得到以下输出:
01:00.0 VGA compatible controller: NVIDIA Corporation GP104 [GeForce GTX 1080] (rev a1) (prog-if 00 [VGA controller])
Subsystem: Micro-Star International Co., Ltd. [MSI] GP104 [GeForce GTX 1080]
Flags: bus master, fast devsel, latency 0, IRQ 125
Memory at ee000000 (32-bit, non-prefetchable) [size=16M]
Memory at d0000000 (64-bit, prefetchable) [size=256M]
Memory at e0000000 (64-bit, prefetchable) [size=32M]
I/O ports at e000 [size=128]
[virtual] Expansion ROM at 000c0000 [disabled] [size=128K]
Capabilities: <access denied>
Kernel driver in use: nvidia
Kernel modules: nvidiafb, nouveau, nvidia_drm, nvidia
此外,我无法运行nvidia-settings
,因为弹出此错误:
ERROR: Unable to load info from any available system
(nvidia-settings:2470): GLib-GObject-CRITICAL **: 18:39:28.467: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
** Message: 18:39:28.469: PRIME: No offloading required. Abort
** Message: 18:39:28.469: PRIME: is it supported? no
任何帮助,将不胜感激。
编辑:
一些额外的信息:
结果跑步nvidia-smi
这是推荐的 nvidia 驱动程序,通过运行sudo apt install nvidia-driver-430
并重新启动系统来安装(sudo reboot
)。
我还更新了运行时显示的错误消息nvidia-settings
不确定这是否有用,但系统在远程服务器上运行,我使用带有 Plasma KDE 的远程桌面访问它。