Skip to main content
Topic: NVIDIA installed but nothing runs on it apart from Xorg (Read 524 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

NVIDIA installed but nothing runs on it apart from Xorg

Hello,
I've recently reinstalled NVIDIA drivers after Xorg stopped working, now I get performance issues when using Brave.
Prior to this reinstallation, everything was default and I hadn't played with Nvidia Drivers until now.

The issue
This is the output of nvidia-smi, it shows that Xorg does run on the GPU, however when I use brave to log onto some heavy applications (FoundryVTT if you need to know), my CPU overloads while the GPU doesn't do anything.


Code: [Select]
Mon Jun 28 16:42:41 2021       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 465.31       Driver Version: 465.31       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:01:00.0  On |                  N/A |
| 27%   33C    P8     7W / 120W |     67MiB /  6075MiB |      5%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
                                                                              
+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|    0   N/A  N/A       914      G   /usr/lib/Xorg                      65MiB |
+-----------------------------------------------------------------------------+

Infos

Code: [Select]
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 465.31

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"
EndSection

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

Code: [Select]
Section "OutputClass"
Identifier "nvidia"
MatchDriver "nvidia-drm"
Driver "nvidia"
Option "AllowEmptyInitialConfiguration"
Option "PrimaryGPU" "yes"
ModulePath "/usr/lib/nvidia/xorg"
ModulePath "/usr/lib/xorg/modules"
EndSection
I also tried

Quote
prime-run brave
But it's the same. I also enabled Override software rendering list in brave://flags , to no avail.

Any idea of what I did wrong?

 

Re: NVIDIA installed but nothing runs on it apart from Xorg

Reply #1
I just realised that the Xorg logs date from yesterday, I seem to have no logs of today's boot. I'll try and dig around that.
What's more, it seems like Steam runs games on the GPU, so the issue might come from Brave itself ?
Code: [Select]
Mon Jun 28 18:44:05 2021       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 465.31       Driver Version: 465.31       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:01:00.0  On |                  N/A |
| 62%   78C    P0   113W / 120W |   2019MiB /  6075MiB |    100%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
                                                                              
+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|    0   N/A  N/A       922      G   /usr/lib/Xorg                      95MiB |
|    0   N/A  N/A     21992    C+G   ...ective-Win64-Shipping.exe     1918MiB |
+-----------------------------------------------------------------------------+

Edit : I followed https://wiki.archlinux.org/title/Firefox#Hardware_video_acceleration and it works on Firefox but still not on Brave.
Attached are the screenshots of the outputs of https://webglreport.com/?v=2 for both browsers, it shows Firefox uses Nvidia while Brave doesn't.
I should also mention that "use hardware acceleration if possible" is on in brave://settings.