You are not logged in.

#1 2023-12-19 03:24:34

toriyomi
Member
From: Québec
Registered: 2023-12-19
Posts: 2

[SOLVED] Xorg terminates upon xinit with Nvidia drivers

Hi,

I am trying to run i3 on my new Arch Linux installation. My system only has one single graphics card.

Here is my video card :

$ lspci -v | grep -A1 -e VGA -e 3D
2b:00.0 VGA compatible controller: NVIDIA Corporation GA106 [GeForce RTX 3060 Lite Hash Rate] (rev a1) (prog-if 00 [VGA controller])
	Subsystem: Micro-Star International Co., Ltd. [MSI] GA106 [GeForce RTX 3060 Lite Hash Rate]

I have installed xorg-server, xorg-xinit, and xorg-apps. I also have installed the i3 package group. Moreover, I installed the nvidia package as I need to use Nvidia's proprietary drivers.
After that, I ran nvidia-xconfig to generate an etc/X11/xorg.conf file.

When I run

xinit i3

a black screen appears for about a second; After that, I am back to shell, where the message

xinit: connection to X server lost
waiting for X server to shutdown (II) Server terminated sucessfully (0). Closing log file.

is outputted.

At the end of my /var/logs/Xorg.0.log, there is the following lines :

[   429.511] (II) NVIDIA(GPU-0): Deleting GPU-0

Also, I have this Xorg error at the end of dmesg's output :

[   41.329061] Xorg[681]: memfd_create() called without MFD_EXEC or MFD_NOEXEC_SEAL set

I feel like this is a driver issue because of NVIDIA(GPU-0): Deleting GPU-0, is this the case?

Thank you.

Last edited by toriyomi (2023-12-23 20:02:30)

Offline

#2 2023-12-19 04:26:54

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,727

Re: [SOLVED] Xorg terminates upon xinit with Nvidia drivers

toriyomi wrote:

HAfter that, I ran nvidia-xconfig to generate an etc/X11/xorg.conf file.

Step 1: get rid of that. Is there a reason you're not using startx? Post the entire log, not just bits and pieces.

Online

#3 2023-12-19 09:02:22

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

Re: [SOLVED] Xorg terminates upon xinit with Nvidia drivers

Step 2:

At the end of my /var/logs/Xorg.0.log, there is the following lines :

That's unlikely the relevant xorg log w/ xinit/startx,  see ~/.local/share/xorg/ and post the entire log. removing devices when the server tears down is norma

Step 3: https://man.archlinux.org/man/extra/xor … xinit.1.en
Because what you're doing isn't at all how xinit works

Offline

#4 2023-12-23 20:01:24

toriyomi
Member
From: Québec
Registered: 2023-12-19
Posts: 2

Re: [SOLVED] Xorg terminates upon xinit with Nvidia drivers

Thank you both for your contribution.

I got rid of Nvidia's /etc/X11/xorg.conf file. I then noticed that I had no .xinitrc, and had instead created a "xinitrc" file (without the dot). I renamed it to .xinitrc (with contents "exec i3").

startx now launches i3 without issue; it was a dumb mistake on my part. Thank you all again.

Offline

#5 2023-12-23 23:30:59

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

Re: [SOLVED] Xorg terminates upon xinit with Nvidia drivers

with contents "exec i3"

Please visit the last link below and pay attention to what to at least include in your xinitrc.

Offline

Board footer

Powered by FluxBB