Nvidia-settings cannot work on Ubuntu 18.04 and nvidia gpus seem not working

Hi all, I am using Ubuntu 18.04 remotely on xrdp and try to use vulkan to do some work but I just found that I couldn’t use nvidia on vulkan nor even use it for display settings.

Here is the gpu info (1 aspeed and 8 nvidia 1080ti):

03:00.0 VGA compatible controller: ASPEED Technology, Inc. ASPEED Graphics Family (rev 41)
	Subsystem: ASPEED Technology, Inc. ASPEED Graphics Family
	Kernel driver in use: ast
--
1a:00.0 VGA compatible controller: NVIDIA Corporation GP102 [GeForce GTX 1080 Ti] (rev a1)
	Subsystem: NVIDIA Corporation GP102 [GeForce GTX 1080 Ti]
	Kernel driver in use: nvidia
--
1b:00.0 VGA compatible controller: NVIDIA Corporation GP102 [GeForce GTX 1080 Ti] (rev a1)
	Subsystem: ASUSTeK Computer Inc. GP102 [GeForce GTX 1080 Ti]
	Kernel driver in use: nvidia
--
1d:00.0 VGA compatible controller: NVIDIA Corporation GP102 [GeForce GTX 1080 Ti] (rev a1)
	Subsystem: ASUSTeK Computer Inc. GP102 [GeForce GTX 1080 Ti]
	Kernel driver in use: nvidia
--
1e:00.0 VGA compatible controller: NVIDIA Corporation GP102 [GeForce GTX 1080 Ti] (rev a1)
	Subsystem: NVIDIA Corporation GP102 [GeForce GTX 1080 Ti]
	Kernel driver in use: nvidia
--
3d:00.0 VGA compatible controller: NVIDIA Corporation GP102 [GeForce GTX 1080 Ti] (rev a1)
	Subsystem: ASUSTeK Computer Inc. GP102 [GeForce GTX 1080 Ti]
	Kernel driver in use: nvidia
--
3f:00.0 VGA compatible controller: NVIDIA Corporation GP102 [GeForce GTX 1080 Ti] (rev a1)
	Subsystem: Gigabyte Technology Co., Ltd GP102 [GeForce GTX 1080 Ti]
	Kernel driver in use: nvidia
--
40:00.0 VGA compatible controller: NVIDIA Corporation GP102 [GeForce GTX 1080 Ti] (rev a1)
	Subsystem: Gigabyte Technology Co., Ltd GP102 [GeForce GTX 1080 Ti]
	Kernel driver in use: nvidia
--
41:00.0 VGA compatible controller: NVIDIA Corporation GP102 [GeForce GTX 1080 Ti] (rev a1)
	Subsystem: ASUSTeK Computer Inc. GP102 [GeForce GTX 1080 Ti]
	Kernel driver in use: nvidia

When I run nvidia-settings, it got

ERROR: Unable to load info from any available system

run “nvidia-smi”, got

 Sun Aug 16 16:55:38 2020       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 450.57       Driver Version: 450.57       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  GeForce GTX 108...  Off  | 00000000:1A:00.0 Off |                  N/A |
|  0%   21C    P8     9W / 250W |     42MiB / 11178MiB |      0%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
|   1  GeForce GTX 108...  Off  | 00000000:1B:00.0 Off |                  N/A |
| 21%   23C    P8     9W / 250W |      7MiB / 11178MiB |      0%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
|   2  GeForce GTX 108...  Off  | 00000000:1D:00.0 Off |                  N/A |
| 20%   29C    P8     9W / 250W |      7MiB / 11178MiB |      0%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
|   3  GeForce GTX 108...  Off  | 00000000:1E:00.0 Off |                  N/A |
|  0%   21C    P8     8W / 250W |      7MiB / 11178MiB |      0%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
|   4  GeForce GTX 108...  Off  | 00000000:3D:00.0 Off |                  N/A |
| 20%   22C    P8     8W / 250W |      7MiB / 11178MiB |      0%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
|   5  GeForce GTX 108...  Off  | 00000000:3F:00.0 Off |                  N/A |
| 21%   22C    P8     9W / 250W |      7MiB / 11178MiB |      0%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
|   6  GeForce GTX 108...  Off  | 00000000:40:00.0 Off |                  N/A |
| 21%   25C    P8     9W / 250W |      7MiB / 11178MiB |      0%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
|   7  GeForce GTX 108...  Off  | 00000000:41:00.0 Off |                  N/A |
| 29%   24C    P8     8W / 250W |      7MiB / 11178MiB |      0%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|    0   N/A  N/A      1990      G   /usr/lib/xorg/Xorg                 31MiB |
|    0   N/A  N/A      3170      G   /usr/bin/gnome-shell                8MiB |
|    1   N/A  N/A      1990      G   /usr/lib/xorg/Xorg                  4MiB |
|    2   N/A  N/A      1990      G   /usr/lib/xorg/Xorg                  4MiB |
|    3   N/A  N/A      1990      G   /usr/lib/xorg/Xorg                  4MiB |
|    4   N/A  N/A      1990      G   /usr/lib/xorg/Xorg                  4MiB |
|    5   N/A  N/A      1990      G   /usr/lib/xorg/Xorg                  4MiB |
|    6   N/A  N/A      1990      G   /usr/lib/xorg/Xorg                  4MiB |
|    7   N/A  N/A      1990      G   /usr/lib/xorg/Xorg                  4MiB |
+-----------------------------------------------------------------------------+

and glxinfo | grep render:

direct rendering: Yes
GLX_MESA_multithread_makecurrent, GLX_MESA_query_renderer,
GLX_EXT_visual_rating, GLX_MESA_copy_sub_buffer, GLX_MESA_query_renderer,
Extended renderer info (GLX_MESA_query_renderer):
OpenGL renderer string: llvmpipe (LLVM 10.0.0, 256 bits)
GL_ARB_conditional_render_inverted, GL_ARB_conservative_depth,
GL_MESA_ycbcr_texture, GL_NV_conditional_render, GL_NV_depth_clamp,
GL_ARB_conditional_render_inverted, GL_ARB_conservative_depth,
GL_NV_conditional_render, GL_NV_depth_clamp, GL_NV_fog_distance,
GL_EXT_polygon_offset_clamp, GL_EXT_read_format_bgra, GL_EXT_render_snorm,
GL_MESA_shader_integer_functions, GL_NV_conditional_render,
GL_OES_element_index_uint, GL_OES_fbo_render_mipmap,

and vulkaninfo:

ERROR at /build/vulkan-tools-1.2.148.0-1ubuntu18.04/vulkaninfo/vulkaninfo.h:240:vkEnumerateInstanceExtensionProperties failed with ERROR_INITIALIZATION_FAILED

and xrandr --listproviders:

Providers: number : 0

I searched a lot and trid many methods, including but not limited to disable secure boot (mokutil --sb-state), set the nvidia-drm.modeset=1 to GRUB_CMDLINE_LINUX_DEFAULT option in the grub config, add option “Option “PrimaryGPU” “Yes”” or “AllowNVIDIAGPUScreens” on /etc/X11/xorg.conf; but nothing seemed to really work.

Attatched is the bug report. Really hope someone could help cause I really need nvidia gpu running for my work.

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