You are not logged in.

#1 2023-06-21 23:54:36

E.Coli1
Member
Registered: 2023-06-21
Posts: 1

NVIDIA fails to work with Xorg

I have a latop with NVIDIA T600 GPU. I followed every step on https://wiki.archlinux.org/title/NVIDIA#Installation to install and configure the driver (including disabling kms in mkinitcpio.conf). However, I ran into some troubles.
If I don't have

/etc/X11/xorg.conf

and anything in

/etc/X11/xorg.conf.d

, I can enter the graphic interface with

startx

, and

nvidia-smi

outputs like this:

Thu Jun 22 07:22:38 2023       
+---------------------------------------------------------------------------------------+
| NVIDIA-SMI 535.54.03              Driver Version: 535.54.03    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 T600 Laptop GPU         Off | 00000000:01:00.0 Off |                  N/A |
| N/A   58C    P8               3W /  45W |      5MiB /  4096MiB |      0%      Default |
|                                         |                      |                  N/A |
+-----------------------------------------+----------------------+----------------------+
                                                                                         
+---------------------------------------------------------------------------------------+
| Processes:                                                                            |
|  GPU   GI   CI        PID   Type   Process name                            GPU Memory |
|        ID   ID                                                             Usage      |
|=======================================================================================|
|    0   N/A  N/A       888      G   /usr/lib/Xorg                                 4MiB |
+---------------------------------------------------------------------------------------+

It's only the intergrated AMD that provides video output and the GPU Memory of the NVIDIA GPU is always 4MB only. It's clear that the NVIDIA isn't working. However, no errors are reported.

With

dmesg

, I usually find these:

[  600.177391] pcieport 0000:00:01.1: AER: Corrected error received: 0000:01:00.0
[  600.177407] nvidia 0000:01:00.0: PCIe Bus Error: severity=Corrected, type=Data Link Layer, (Receiver ID)
[  600.177410] nvidia 0000:01:00.0:   device [10de:1fb6] error status/mask=00000040/0000a000
[  600.177414] nvidia 0000:01:00.0:    [ 6] BadTLP

I tried a program called nvtop and it showed that the only process which used NVIDIA was

/usr/lib/Xorg -nolisten tcp :0 vt2 -keeptty -auth /tmp/serverauth.7m8PuTZ2Fu

which was owed by root.

Then I created a

/etc/X11/xorg.conf

file with

nvidia-xconfig

without error reported. I used

startx

again but failed to enter GUI. I got stuck instead.

This is my

~/.xinitrc

:

# xrandr --setprovideroutputsource modesetting NVIDIA-0
# xrandr --auto
xfce4-terminal &
xfce4-panel &
ibus-daemon &
exec xfwm4

When I got stuck, I changed to another tty and used

nvidia-smi

:

Thu Jun 22 07:27:36 2023       
+---------------------------------------------------------------------------------------+
| NVIDIA-SMI 535.54.03              Driver Version: 535.54.03    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 T600 Laptop GPU         Off | 00000000:01:00.0 Off |                  N/A |
| N/A   57C    P8               3W /  45W |     16MiB /  4096MiB |      0%      Default |
|                                         |                      |                  N/A |
+-----------------------------------------+----------------------+----------------------+
                                                                                         
+---------------------------------------------------------------------------------------+
| Processes:                                                                            |
|  GPU   GI   CI        PID   Type   Process name                            GPU Memory |
|        ID   ID                                                             Usage      |
|=======================================================================================|
|    0   N/A  N/A       718      G   /usr/lib/Xorg                                 6MiB |
|    0   N/A  N/A       724      G   xfwm4                                         8MiB |
+---------------------------------------------------------------------------------------+

Then I used

pkill Xorg

to terminate the process stuck. It didn't leave log file.

What else have I tried:
1. ways in https://wiki.archlinux.org/title/NVIDIA … e_to_start ,including setting kernel parameters.
2. blacklist nouveau in

/etc/modprobe.d/

3. prepend these in

.xinitrc

:

xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto

I use 6.3.8-arch1-1. If I should provide some particular details, please inform me. Thanks if you can help!

Offline

#2 2023-06-22 05:17:46

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,659

Re: NVIDIA fails to work with Xorg

https://wiki.archlinux.org/title/Optimus & https://wiki.archlinux.org/title/PRIME# … er_offload
Remove any config your generated and post an xorg log https://wiki.archlinux.org/title/Xorg#General
But most likely this is just a regular hybrid system, all outputs are wired to the AMD GPU and everything is functioning as expected.


Also see the last link below, notably the part of what to include at least.

Offline

Board footer

Powered by FluxBB