i have met a problem as the topic and i have struggled for days using many methods but they did not work.
nvidia-smi:
(base) server@server00:~$ nvidia-smi
Thu Apr 7 10:59:29 2022
±----------------------------------------------------------------------------+
| NVIDIA-SMI 510.60.02 Driver Version: 510.60.02 CUDA Version: 11.6 |
|-------------------------------±---------------------±---------------------+
| 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:18:00.0 Off | N/A |
| 50% 31C P8 16W / 250W | 5MiB / 11264MiB | 0% Default |
| | | N/A |
±------------------------------±---------------------±---------------------+
| 1 NVIDIA GeForce … Off | 00000000:3B:00.0 Off | N/A |
| 50% 32C P8 19W / 250W | 5MiB / 11264MiB | 0% Default |
| | | N/A |
±------------------------------±---------------------±---------------------+
| 2 NVIDIA GeForce … Off | 00000000:86:00.0 Off | N/A |
| 51% 32C P8 21W / 250W | 5MiB / 11264MiB | 0% Default |
| | | N/A |
±------------------------------±---------------------±---------------------+
| 3 NVIDIA GeForce … Off | 00000000:AF:00.0 Off | N/A |
| 52% 34C P8 17W / 250W | 5MiB / 11264MiB | 0% Default |
| | | N/A |
±------------------------------±---------------------±---------------------+
±----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| 0 N/A N/A 1790 G /usr/lib/xorg/Xorg 4MiB |
| 1 N/A N/A 1790 G /usr/lib/xorg/Xorg 4MiB |
| 2 N/A N/A 1790 G /usr/lib/xorg/Xorg 4MiB |
| 3 N/A N/A 1790 G /usr/lib/xorg/Xorg 4MiB |
±----------------------------------------------------------------------------+
inxi -Gx
Graphics: Card-1: ASPEED ASPEED Graphics Family bus-ID: 04:00.0
Card-2: NVIDIA Device 1e04 bus-ID: 18:00.0
Card-3: NVIDIA Device 1e04 bus-ID: 3b:00.0
Card-4: NVIDIA Device 1e04 bus-ID: 86:00.0
Card-5: NVIDIA Device 1e04 bus-ID: af:00.0
Display Server: x11 (X.Org 1.20.8 )
drivers: (unloaded: fbdev,vesa,nouveau) FAILED: modesetting,nvidia
Resolution: 1440x900@59.90hz
OpenGL: renderer: llvmpipe (LLVM 10.0.0, 256 bits)
version: 3.3 Mesa 20.0.8 Direct Render: Yes
Please tell me if other information is needed.
thanks!!!
The Xserver is running on the Aspeed graphics.
oh that is true, thanks a lot! and could you teach me how to change it to nvidia?
i didnot find how to switch it in my nvidia-settings
You need to create a basic /etc/X11/xorg.conf
Section "Device"
Identifier "nvidia"
Driver "nvidia"
BusID "PCI:24:0:0"
EndSection
and of course connect a monitor to the specific nvidia gpu.
It seems that I have the same error. nvidia-smi works fine but OpenGL renderer is llvmpipe.
(base) zhengkr@robotics189:~$ nvidia-smi
Sun Aug 11 22:15:09 2024
+---------------------------------------------------------------------------------------+
| NVIDIA-SMI 535.183.06 Driver Version: 535.183.06 CUDA Version: 12.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 NVIDIA GeForce RTX 2080 Ti On | 00000000:18:00.0 Off | N/A |
| 22% 32C P8 18W / 250W | 6MiB / 11264MiB | 0% Default |
| | | N/A |
+-----------------------------------------+----------------------+----------------------+
| 1 NVIDIA GeForce RTX 2080 Ti On | 00000000:3B:00.0 Off | N/A |
| 22% 32C P8 1W / 250W | 163MiB / 11264MiB | 0% Default |
| | | N/A |
+-----------------------------------------+----------------------+----------------------+
| 2 NVIDIA GeForce RTX 2080 Ti On | 00000000:86:00.0 Off | N/A |
| 22% 33C P8 2W / 250W | 6MiB / 11264MiB | 0% Default |
| | | N/A |
+-----------------------------------------+----------------------+----------------------+
| 3 NVIDIA GeForce RTX 2080 Ti On | 00000000:AF:00.0 Off | N/A |
| 22% 33C P8 5W / 250W | 6MiB / 11264MiB | 0% Default |
| | | N/A |
+-----------------------------------------+----------------------+----------------------+
+---------------------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=======================================================================================|
| 0 N/A N/A 2237 G /usr/lib/xorg/Xorg 4MiB |
| 1 N/A N/A 2237 G /usr/lib/xorg/Xorg 150MiB |
| 1 N/A N/A 2395 G /usr/bin/gnome-shell 10MiB |
| 2 N/A N/A 2237 G /usr/lib/xorg/Xorg 4MiB |
| 3 N/A N/A 2237 G /usr/lib/xorg/Xorg 4MiB |
+---------------------------------------------------------------------------------------+
(base) zhengkr@robotics189:~$ 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:
(base) zhengkr@robotics189:~$ inxi -Gx
Graphics:
Device-1: ASPEED Graphics Family vendor: Super Micro driver: ast v: kernel
bus ID: 04:00.0
Device-2: NVIDIA TU102 [GeForce RTX 2080 Ti] driver: nvidia v: 535.183.06
bus ID: 18:00.0
Device-3: NVIDIA TU102 [GeForce RTX 2080 Ti] driver: nvidia v: 535.183.06
bus ID: 3b:00.0
Device-4: NVIDIA TU102 [GeForce RTX 2080 Ti] driver: nvidia v: 535.183.06
bus ID: 86:00.0
Device-5: NVIDIA TU102 [GeForce RTX 2080 Ti] driver: nvidia v: 535.183.06
bus ID: af:00.0
Display: x11 server: X.Org 1.20.13 driver: nvidia
resolution: 1920x1080~50Hz
OpenGL: renderer: llvmpipe (LLVM 12.0.0 256 bits) v: 4.5 Mesa 21.2.6
direct render: Yes
And I have already set the /etc/X11/xorg.conf:
(base) zhengkr@robotics189:~$ cat /etc/X11/xorg.conf
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig: version 535.183.06
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0"
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 "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BusID "PCI:59:0:0"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Depth 24
EndSubSection
EndSection
But the error still exist.
Since this seems to be a server, are you logging in from remote, e.g. through rdp? Then it’s only a virtual Xserver using LLVM.