Hi,
Running __NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia glxgears
randomly either shows a black window or the gears graphics (black window most of the time). Runnig glxgears
always shows the gears graphics. I am connected to a Linux server from my Windows desktop through the Remote Desktop Connection application.
Settings of Linux server:
- Ubuntu 20.04.6 LTS
cat /proc/driver/nvidia/version
NVRM version: NVIDIA UNIX x86_64 Kernel Module 570.133.20 Sun Apr 13 04:50:56 UTC 2025
GCC version: gcc version 9.4.0 (Ubuntu 9.4.0-1ubuntu1~20.04.2)
glxinfo | grep OpenGL
OpenGL vendor string: Mesa/X.org
OpenGL renderer string: llvmpipe (LLVM 12.0.0, 256 bits)
OpenGL core profile version string: 4.5 (Core Profile) Mesa 21.2.6
OpenGL core profile shading language version string: 4.50
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 3.1 Mesa 21.2.6
OpenGL shading language version string: 1.40
OpenGL context flags: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.2 Mesa 21.2.6
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
OpenGL ES profile extensions:
__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia glxinfo | grep OpenGL
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: Quadro P6000/PCIe/SSE2
OpenGL core profile version string: 4.6.0 NVIDIA 570.133.20
OpenGL core profile shading language version string: 4.60 NVIDIA
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 4.6.0 NVIDIA 570.133.20
OpenGL shading language version string: 4.60 NVIDIA
OpenGL context flags: (none)
OpenGL profile mask: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.2 NVIDIA 570.133.20
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
OpenGL ES profile extensions:
nvidia-smi
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 570.133.20 Driver Version: 570.133.20 CUDA Version: 12.8 |
|-----------------------------------------+------------------------+----------------------+
| 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 Quadro P6000 Off | 00000000:21:00.0 Off | Off |
| 36% 69C P0 30W / 250W | 5833MiB / 24576MiB | 0% Default |
| | | N/A |
+-----------------------------------------+------------------------+----------------------+
+-----------------------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=========================================================================================|
+-----------------------------------------------------------------------------------------+
lsmod | grep nvidia
nvidia_uvm 1773568 18
nvidia_drm 110592 4
nvidia_modeset 1536000 6 nvidia_drm
nvidia 89915392 302 nvidia_uvm,nvidia_modeset
drm_kms_helper 311296 3 nvidia_drm
drm 618496 8 drm_kms_helper,nvidia,nvidia_drm
ls -l /usr/share/X11/xorg.conf.d/
total 84
drwxr-xr-x 2 root root 4096 Apr 23 2020 app-defaults
drwxr-xr-x 2 root root 4096 Apr 23 2020 cursors
-rw-r--r-- 1 root root 15 Apr 23 2020 default-display-manager
drwxr-xr-x 4 root root 4096 Apr 23 2020 fonts
-rw-r--r-- 1 root root 17394 Jan 20 2017 rgb.txt
drwxr-xr-x 2 root root 4096 Nov 19 2020 xinit
drwxr-xr-x 2 root root 4096 Feb 29 2020 xkb
drwxr-xr-x 2 root root 4096 Jul 31 2020 xrdp
-rwxr-xr-x 1 root root 709 Jan 20 2017 Xreset
drwxr-xr-x 2 root root 4096 Apr 23 2020 Xreset.d
drwxr-xr-x 2 root root 4096 Apr 23 2020 Xresources
-rwxr-xr-x 1 root root 3730 Dec 14 2018 Xsession
drwxr-xr-x 2 root root 4096 May 27 15:58 Xsession.d
-rw-r--r-- 1 root root 265 Jan 20 2017 Xsession.options
drwxr-xr-x 2 root root 4096 Apr 23 2020 xsm
-rw-r--r-- 1 root root 13 Feb 29 2020 XvMCConfig
-rw-r--r-- 1 root root 630 Apr 23 2020 Xwrapper.config
ls -l /usr/share/X11/xorg.conf.d/
total 28
-rw-r--r-- 1 root root 92 Aug 24 2022 10-amdgpu.conf
-rw-r--r-- 1 root root 206 Apr 13 10:03 10-nvidia.conf
-rw-r--r-- 1 root root 1350 Mar 4 06:35 10-quirks.conf
-rw-r--r-- 1 root root 92 Oct 22 2019 10-radeon.conf
-rw-r--r-- 1 201 201 475 Jun 22 2023 20-vmware-hid.conf
-rw-r--r-- 1 root root 1429 Aug 13 2019 40-libinput.conf
-rw-r--r-- 1 root root 3458 Mar 11 2020 70-wacom.conf
cat /usr/share/X11/xorg.conf.d/10-nvidia.conf
Section "OutputClass"
Identifier "nvidia"
MatchDriver "nvidia-drm"
Driver "nvidia"
Option "AllowEmptyInitialConfiguration"
ModulePath "/usr/lib/x86_64-linux-gnu/nvidia/xorg"
EndSection
xrandr --listproviders
Providers: number : 0
__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia xrandr --listproviders
Providers: number : 0