Yet another "Ubuntu driver installed but not used" thread


I’ve run into a problem which several other people here seem to have had, but could not solve it using the responses to their threads. I’d really appreciate any pointers from people knowing what to look for inside an nvidia bug report…

I have a Ubuntu workstation with a Quadro card that I mostly use for CUDA jobs. It is headless and I access it using ssh. However, from time to time I need to use a program that requires OpenGL, and I just discovered that the nvidia driver did not seem to work anymore for 3D rendering. I’ve deleted everything nvidia-related and reinstalled the drivers using the Ubuntu packet manager, but the problem remains. Worse – there now seems to be something weird with PRIME, as the outputs from glxinfo below demonstrate…

Below are a bug report and the output of a few relevant commands. Thanks for any help !


nvidia-bug-report.log.gz (1.0 MB)

(base) ➜ ~ nvidia-smi
Thu Oct 22 18:18:09 2020
| NVIDIA-SMI 450.80.02 Driver Version: 450.80.02 CUDA Version: 11.0 |
| 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 RTX 6000 Off | 00000000:73:00.0 Off | Off |
| 33% 27C P8 16W / 260W | 1MiB / 24220MiB | 0% Default |
| | | N/A |

| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
| No running processes found |

(base) ➜ ~ lshw -c video
description: VGA compatible controller
product: NVIDIA Corporation
vendor: NVIDIA Corporation
physical id: 0
bus info: pci@0000:73:00.0
version: a1
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress vga_controller bus_master cap_list rom
configuration: driver=nvidia latency=0
resources: irq:113 memory:c4000000-c4ffffff memory:b0000000-bfffffff memory:c0000000-c1ffffff ioport:9000(size=128) memory:c5000000-c507ffff

(base) ➜ ~ prime-select nvidia
Info: the nvidia profile is already set

(base) ➜ ~ glxinfo | grep vendor
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
server glx vendor string: SGI
client glx vendor string: Mesa Project and SGI
OpenGL vendor string: Intel Inc.

(base) ➜ ~ __NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia glxinfo | grep vendor
server glx vendor string: SGI
client glx vendor string: NVIDIA Corporation
OpenGL vendor string: Intel Inc.

(base) ➜ ~ glxinfo | grep render
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
direct rendering: No (If you want to find out why, try setting LIBGL_DEBUG=verbose)
GLX_MESA_multithread_makecurrent, GLX_MESA_query_renderer,
OpenGL renderer string: Intel Iris OpenGL Engine

(base) ➜ ~ __NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia glxgears -info
GL_RENDERER = Intel Iris OpenGL Engine
GL_VERSION = 1.4 (2.1 INTEL-10.36.32)
GL_VENDOR = Intel Inc.
GL_EXTENSIONS = GL_ARB_depth_texture GL_ARB_draw_buffers GL_ARB_fragment_program GL_ARB_fragment_program_shadow GL_ARB_multisample GL_ARB_multitexture GL_ARB_occlusion_query GL_ARB_point_parameters GL_ARB_point_sprite GL_ARB_shadow GL_ARB_texture_border_clamp GL_ARB_texture_compression GL_ARB_texture_cube_map GL_ARB_texture_env_add GL_ARB_texture_env_combine GL_ARB_texture_env_crossbar GL_ARB_texture_env_dot3 GL_ARB_texture_mirrored_repeat GL_ARB_texture_non_power_of_two GL_ARB_transpose_matrix GL_ARB_vertex_program GL_ARB_window_pos GL_EXT_abgr GL_EXT_bgra GL_EXT_blend_color GL_EXT_blend_equation_separate GL_EXT_blend_func_separate GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_draw_range_elements GL_EXT_fog_coord GL_EXT_framebuffer_object GL_EXT_multi_draw_arrays GL_EXT_rescale_normal GL_EXT_secondary_color GL_EXT_separate_specular_color GL_EXT_shadow_funcs GL_EXT_stencil_two_side GL_EXT_stencil_wrap GL_EXT_texture_compression_dxt1 GL_EXT_texture_compression_s3tc GL_EXT_texture_env_add GL_EXT_texture_filter_anisotropic GL_EXT_texture_lod_bias GL_ATI_texture_mirror_once GL_NV_blend_square GL_NV_depth_clamp GL_NV_fog_distance GL_NV_light_max_exponent GL_NV_texgen_reflection GL_SGIS_generate_mipmap GL_SGIS_texture_lod
VisualID 241, 0xf1