Llvmpipe is used instead of NVIDIA GPU. nvidia-settings not working and cannot switch to NVIDIA GPU

Hi Tigwelder, thank you very much for your answer and also your link to the other post you sent before.

I tried out the things you mentioned here: Nvidia-settings returns 'Connection refused. ERROR: The control display is undefined' - #3 by simon.r.greener

However, I cannot directly replicate them since I do not have any display ports on my NVIDIA GPU.

The good thing right now, is that we are finally shown some running processes, when I run “nvidia-smi” now.
So currently this is my xorg.conf file:

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 460.73.01


Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0"
    Screen      1  "Screen1" RightOf "Screen0"
    Screen      2  "Screen2" RightOf "Screen1"
    Screen      3  "Screen3" RightOf "Screen2"
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection

Section "Files"
EndSection

Section "InputDevice"

    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"

    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
    Option         "DPMS"
EndSection

Section "Monitor"
    Identifier     "Monitor1"
    VendorName     "Unknown"
    ModelName      "Unknown"
    Option         "DPMS"
EndSection

Section "Monitor"
    Identifier     "Monitor2"
    VendorName     "Unknown"
    ModelName      "Unknown"
    Option         "DPMS"
EndSection

Section "Monitor"
    Identifier     "Monitor3"
    VendorName     "Unknown"
    ModelName      "Unknown"
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "Tesla V100-SXM2-16GB"
    BusID          "PCI:97:0:0"
EndSection

Section "Device"
    Identifier     "Device1"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "Tesla V100-SXM2-16GB"
    BusID          "PCI:98:0:0"
EndSection

Section "Device"
    Identifier     "Device2"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "Tesla V100-SXM2-16GB"
    BusID          "PCI:137:0:0"
EndSection

Section "Device"
    Identifier     "Device3"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "Tesla V100-SXM2-16GB"
    BusID          "PCI:138:0:0"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Section "Screen"
    Identifier     "Screen1"
    Device         "Device1"
    Monitor        "Monitor1"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Section "Screen"
    Identifier     "Screen2"
    Device         "Device2"
    Monitor        "Monitor2"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Section "Screen"
    Identifier     "Screen3"
    Device         "Device3"
    Monitor        "Monitor3"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

And this is the “nvidia-smi” Output:

raytracing@raytracing:/msc/MSC.Software/MSC Licensing/Helium$ nvidia-smi
Wed May 26 19:17:31 2021       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 460.73.01    Driver Version: 460.73.01    CUDA Version: 11.2     |
|-------------------------------+----------------------+----------------------+
| 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  Tesla V100-SXM2...  Off  | 00000000:61:00.0 Off |                    0 |
| N/A   41C    P0    45W / 300W |    109MiB / 16160MiB |      0%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
|   1  Tesla V100-SXM2...  Off  | 00000000:62:00.0 Off |                    0 |
| N/A   41C    P0    47W / 300W |     23MiB / 16160MiB |      0%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
|   2  Tesla V100-SXM2...  Off  | 00000000:89:00.0 Off |                    0 |
| N/A   40C    P0    44W / 300W |     23MiB / 16160MiB |      0%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
|   3  Tesla V100-SXM2...  Off  | 00000000:8A:00.0 Off |                    0 |
| N/A   41C    P0    43W / 300W |     23MiB / 16160MiB |      0%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|    0   N/A  N/A      1154      G   /usr/lib/xorg/Xorg                 96MiB |
|    0   N/A  N/A      1400      G   /usr/bin/gnome-shell               12MiB |
|    1   N/A  N/A      1154      G   /usr/lib/xorg/Xorg                 22MiB |
|    2   N/A  N/A      1154      G   /usr/lib/xorg/Xorg                 22MiB |
|    3   N/A  N/A      1154      G   /usr/lib/xorg/Xorg                 22MiB |
+-----------------------------------------------------------------------------+

I feel like it is really good, that the Xorg and gnome-shell applications are actually running on our GPU now, however using benchmarks like glmark2 or similar still show, that the used GPU is llvmpipe and not the NVIDIA GPU, even though the NVIDIA GPU is referenced in the settings as the chosen one.

glmark2 Output:

raytracing@raytracing:/etc/X11$ glmark2
** GLX does not support GLX_EXT_swap_control or GLX_MESA_swap_control!
** Failed to set swap interval. Results may be bounded above by refresh rate.
=======================================================
    glmark2 2014.03+git20150611.fa71af2d
=======================================================
    OpenGL Information
    GL_VENDOR:     Mesa/X.org
    GL_RENDERER:   llvmpipe (LLVM 11.0.0, 256 bits)
    GL_VERSION:    3.1 Mesa 20.2.6
=======================================================
** GLX does not support GLX_EXT_swap_control or GLX_MESA_swap_control!
** Failed to set swap interval. Results may be bounded above by refresh rate.
[build] use-vbo=false: FPS: 378 FrameTime: 2.646 ms
** GLX does not support GLX_EXT_swap_control or GLX_MESA_swap_control!
** Failed to set swap interval. Results may be bounded above by refresh rate.
[build] use-vbo=true: FPS: 376 FrameTime: 2.660 ms
** GLX does not support GLX_EXT_swap_control or GLX_MESA_swap_control!
** Failed to set swap interval. Results may be bounded above by refresh rate.
[texture] texture-filter=nearest:^C

And the settings of our server:

So I hope that this progress are steps into the right direction and will hopefully lead to a solution.

Hello
I think I may have also a similar problem.
My conf :Ubuntu 20.04 (on a ESXI VM) with Kernel updated and latest nvidia driver 465.27.

Some output that seems to show that the card is installed

inxi -G
Graphics: Device-1: NVIDIA GP108 [GeForce GT 1030] driver: nvidia v: 465.27
Display: server: X.Org 1.20.9 driver: nvidia unloaded: fbdev,modesetting,nouveau,vesa tty: N/A
OpenGL: renderer: llvmpipe (LLVM 11.0.0 256 bits) v: 4.5 Mesa 20.2.6

dkms status
nvidia, 465.27, 5.11.0-051100-generic, x86_64: installed

nvidia-smi
Wed May 26 20:56:42 2021
±----------------------------------------------------------------------------+
| NVIDIA-SMI 465.27 Driver Version: 465.27 CUDA Version: 11.3 |
|-------------------------------±---------------------±---------------------+
| 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 NVIDIA GeForce … Off | 00000000:03:00.0 Off | N/A |
| 35% 35C P8 N/A / 30W | 12MiB / 2001MiB | 0% Default |
| | | N/A |
±------------------------------±---------------------±---------------------+

±----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| 0 N/A N/A 1090 G /usr/lib/xorg/Xorg 8MiB |
| 0 N/A N/A 1138 G /usr/bin/gnome-shell 1MiB |
±----------------------------------------------------------------------------+

but I did not succeed to use OpenGL with the nvidia GPU…

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 11.0.0, 256 bits)
GL_ARB_conditional_render_inverted, GL_ARB_conservative_depth,
GL_NV_conditional_render, GL_NV_copy_image, GL_NV_depth_clamp,
GL_ARB_conditional_render_inverted, GL_ARB_conservative_depth,
GL_NV_conditional_render, GL_NV_copy_image, GL_NV_depth_clamp,
GL_EXT_render_snorm, GL_EXT_robustness, GL_EXT_sRGB_write_control,
GL_MESA_shader_integer_functions, GL_NV_conditional_render,
GL_OES_element_index_uint, GL_OES_fbo_render_mipmap,

OpenGL renderer string: llvmpipe (LLVM 11.0.0, 256 bits) don’t allow to use app with OpenGL 4.6 (or even 4.3) …

Any idee of the problem?

Many thanks

What’s this driver?

I saw there was no entry for your onboard GPU. If it’s still active you, can save your current config in a safe place, make sure this one has the correct BusID for Device0 and give it a shot.

X should be loading and displaying a desktop on your iGPU, If it is disabled in the bios that’s why apps are loading on the Nvidia card. It’s normal to see the “/usr/lib/xorg/Xorg” entries in nvidia-smi for each of the cards, but the shell or desktop should be on the iGPU as Device0,screeen0

llvmpipe seems to be it’s attempt at a fallback mode. I’m unsure as I have no experience with it.

also looking at the x.log you have kernel boot parameters loading "unsure if you added those

ro quiet splash nomodeset nvidia-drm.modeset=1

Here’s one with an extra device loaded in an attempt to get the onboard working in modesetting mode.

Also check /usr/share/X11/xorg.conf.d/10-nvidia.conf and see if it exists

And for laughs what does this command output

xrandr -q --screen 2

Here’s an edited xorg.conf

   # nvidia-xconfig: X configuration file generated by nvidia-xconfig

nvidia-xconfig: version 460.73.01

from Nvidia Forums 5/27/21

Section “ServerLayout”
Identifier “Layout0”
Screen 0 “Screen0” 0 0
Screen 1 “Screen1”
Screen 2 “Screen2”
Screen 3 “Screen3”
Screen 4 “Screen4”
Screen 5 “Screen5”
InputDevice “Keyboard0” “CoreKeyboard”
InputDevice “Mouse0” “CorePointer”
EndSection

Section “Files”
EndSection

Section “InputDevice”

# generated from default
Identifier     "Mouse0"
Driver         "mouse"
Option         "Protocol" "auto"
Option         "Device" "/dev/psaux"
Option         "Emulate3Buttons" "no"
Option         "ZAxisMapping" "4 5"

EndSection

Section “InputDevice”

# generated from default
Identifier     "Keyboard0"
Driver         "kbd"

EndSection

Section “Monitor”
Identifier “Monitor0”
VendorName “Unknown”
ModelName “Unknown”
Option “DPMS”
EndSection

Section “Monitor”
Identifier “Monitor1”
VendorName “Unknown”
ModelName “Unknown”
Option “DPMS”
EndSection

Section “Monitor”
Identifier “Monitor2”
VendorName “Unknown”
ModelName “Unknown”
Option “DPMS”
EndSection

Section “Monitor”
Identifier “Monitor3”
VendorName “Unknown”
ModelName “Unknown”
Option “DPMS”
EndSection

Section “Monitor”
Identifier “Monitor4”
VendorName “Unknown”
ModelName “Unknown”
Option “DPMS”
EndSection

Section “Device”
Identifier “Device0”
Driver “modesetting”
BusID “PCI:3:0:0”
Option “AllowEmptyInitialConfiguration” “True”
Option “IgnoreEDID” “true”
#you can try this Option “ConnectedMonitor” “DFP”
EndSection

Section “Device”
Identifier “Device1”
Driver “nvidia”
VendorName “NVIDIA Corporation”
BoardName “Tesla V100-SXM2-16GB”
BusID “PCI:97:0:0”
EndSection

Section “Device”
Identifier “Device2”
Driver “nvidia”
VendorName “NVIDIA Corporation”
BoardName “Tesla V100-SXM2-16GB”
BusID “PCI:98:0:0”
EndSection

Section “Device”
Identifier “Device3”
Driver “nvidia”
VendorName “NVIDIA Corporation”
BoardName “Tesla V100-SXM2-16GB”
BusID “PCI:137:0:0”
EndSection

Section “Device”
Identifier “Device4”
Driver “nvidia”
VendorName “NVIDIA Corporation”
BoardName “Tesla V100-SXM2-16GB”
BusID “PCI:138:0:0”
EndSection

Section “Screen”
Identifier “Screen0”
Device “Device0”
Monitor “Monitor0”
DefaultDepth 24
SubSection “Display”
Depth 24
EndSubSection
EndSection

Section “Screen”
Identifier “Screen1”
Device “Device1”
Monitor “Monitor1”
DefaultDepth 24
SubSection “Display”
Depth 24
EndSubSection
Option “Coolbits” “31”
EndSection

Section “Screen”
Identifier “Screen2”
Device “Device2”
Monitor “Monitor2”
DefaultDepth 24
SubSection “Display”
Depth 24
EndSubSection
Option “Coolbits” “31”
EndSection

Section “Screen”
Identifier “Screen3”
Device “Device3”
Monitor “Monitor3”
DefaultDepth 24
SubSection “Display”
Depth 24
EndSubSection
Option “Coolbits” “31”
EndSection

Section “Screen”
Identifier “Screen4”
Device “Device3”
Monitor “Monitor3”
DefaultDepth 24
SubSection “Display”
Depth 24
EndSubSection
Option “Coolbits” “31”
EndSection

Hello Tigwelder
I gess you reply to " PaxBustermann"
Any idea to go further on my problem?

Many thanks

try to instal linux lite (ubuntu) on old PC with nvidia GT730 but the driver not loaded and using llvm

$uname -a
Linux LGA775 5.4.0-99-generic #112-Ubuntu SMP Thu Feb 3 13:50:55 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

$dkms status
nvidia, 470.103.01: added

$inxi -G
Graphics: Device-1: NVIDIA GK208B [GeForce GT 730] driver: N/A
Display: x11 server: X.Org 1.20.13 driver: fbdev,nouveau unloaded: modesetting,vesa
resolution: 1024x768~76Hz
OpenGL: renderer: llvmpipe (LLVM 12.0.0 128 bits) v: 4.5 Mesa 21.2.6

$lspci -v | grep -EA30 -i ‘vga|3d|video’
01:00.0 VGA compatible controller: NVIDIA Corporation GK208B [GeForce GT 730] (rev a1) (prog-if 00 [VGA controller])
Subsystem: ASUSTeK Computer Inc. GK208B [GeForce GT 730]
Flags: bus master, fast devsel, latency 0, IRQ 11
Memory at fd000000 (32-bit, non-prefetchable) [size=16M]
Memory at f0000000 (64-bit, prefetchable) [size=128M]
Memory at fa000000 (64-bit, prefetchable) [size=32M]
I/O ports at ec00 [size=128]
Expansion ROM at 000c0000 [disabled] [size=128K]
Capabilities:
Kernel modules: nvidiafb, nouveau

01:00.1 Audio device: NVIDIA Corporation GK208 HDMI/DP Audio Controller (rev a1)
Subsystem: ASUSTeK Computer Inc. GK208 HDMI/DP Audio Controller
Flags: bus master, fast devsel, latency 0, IRQ 3
Memory at feb7c000 (32-bit, non-prefetchable) [size=16K]
Capabilities:
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel

$sudo nvidia-settings
ERROR: NVIDIA driver is not loaded

ERROR: Unable to load info from any available system

(nvidia-settings:4141): GLib-GObject-CRITICAL **: 11:43:06.253: g_object_unref: assertion ‘G_IS_OBJECT (object)’ failed
** Message: 11:43:06.259: PRIME: No offloading required. Abort
** Message: 11:43:06.259: PRIME: is it supported? no

$sudo nvidia-smi
NVIDIA-SMI has failed because it couldn’t communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.

$sudo prime-select nvidia
Info: the nvidia profile is already set


  • there is no xorg.conf in /etc/X11/ except xorg.conf.nvidia-xconfig-original with no content inside

  • remove (comment) blacklist nvidiafb in /etc/modprobe.d/blacklist-framebuffer.conf

  • create 2 configuration files (blacklist-nvidia-nouveau.conf and disable-nouveau.conf) in /etc/modprobe.d/ with contain
    blacklist nouveau
    options nouveau modeset=0

but still not works

any idea how to load the nvidia driver and using it istead of llvm ?

nvidia-bug-report.log (197.4 KB)

Many thanks

That is wrong. The nvidiafb module should be blacklisted.

As the nvidia driver does not seem to be compiled, I guess you are missing the necessary kernel headers.
sudo apt install linux-headers-$(uname -r)
and then
sudo dkms install nvidia/470.103.01
then
sudo update-initramfs -u
reboot.

blacklist the nvidiafb as suggested

then

#apt install linux-headers-$(uname -r)
linux-headers-5.4.0-99-generic is already the newest version (5.4.0-99.112).
linux-headers-5.4.0-99-generic set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.

#dkms install nvidia/470.103.01
Module nvidia/470.103.01 already installed on kernel 5.4.0-99-generic/x86_64

#update-initramfs -u
update-initramfs: Generating /boot/initrd.img-5.4.0-99-generic
I: The initramfs will attempt to resume from /dev/sda6
I: (UUID=26b4237c-c9d1-46d8-8ea3-f432a0a4d1a0)
I: Set the RESUME variable to override this.

reboot

now,
#nvidia-settings return

ERROR: Unable to load info from any available system

(nvidia-settings:4114): GLib-GObject-CRITICAL **: 05:07:36.826: g_object_unref: assertion ‘G_IS_OBJECT (object)’ failed
** Message: 05:07:36.833: PRIME: No offloading required. Abort
** Message: 05:07:36.833: PRIME: is it supported? no

Screenshot_2022-02-20_05-17-47

#nvidia-smi
No devices were found

#inxi -G
Graphics: Device-1: NVIDIA GK208B [GeForce GT 730] driver: nvidia v: 470.103.01
Display: x11 server: X.Org 1.20.13 driver: fbdev,nouveau unloaded: modesetting,vesa
resolution: 1024x768~76Hz
OpenGL: renderer: llvmpipe (LLVM 12.0.0 128 bits) v: 4.5 Mesa 21.2.6

seems like the nvidia has loaded the driver but still usng llvmpipe, is that right ?

still not works

here the recent nvidia-bug-report
nvidia-bug-report.log.gz (150.1 KB)

any idea to go further on my problem?

Many thanks

[ 7.061465] NVRM: GPU 0000:01:00.0: RmInitAdapter failed! (0x11:0x45:2309)
[ 7.061564] NVRM: GPU 0000:01:00.0: rm_init_adapter failed, device minor number 0

Please try to re-seat the GPU in its PCI slot and/or try a different one. Check the cabling. If available try in another computer.
Otherwise I think the card might simply be broken.

Ah, just checked the legacy drivers list:

Might just be your GPU is only supported by v.390 of the driver.

it works now.

Many thanks

lol can you give any feedback as to what changed so that it works now?