You are not logged in.

#1 2020-12-09 17:06:44

ecal
Member
Registered: 2020-12-09
Posts: 2

[SOLVED] xinit: connection to X server lost

Hello

I am very new to Arch, but I managed to install it successfully in a VM. Now I am trying to do so on my laptop but I can't get xorg working.
This seems to be a common issue but after trying solutions from a dozen or so threads I am still getting the same issue.
My laptop is a Dell XPS 15 9570 and I've installed xorg, xorg-server, xorg-xrandr, xorg-init, nvidia, bumblebee, mesa, xf86-video-intel, acpi, acpid
Following the article on PRIME render offload, I also installed and ran nvidia-xconfig but a thread mentioned that this breaks things so I deleted the file.
I included my bash history so you can see exactly what I've installed and done incase my troubleshooting broke something, the main things were removing /etc/X11/xorg.conf and /etc/X11/xorg.conf.d (I moved them to backups instead of deleting just in case). I also removed ~/.Xauthority although it was empty anyway.

Xorg.0.log:
https://github.com/Ec4ll/logs/blob/main/Xorg.0.log

Bash history:
https://github.com/Ec4ll/logs/blob/main/.bash_history

.xinitrc (the template plus starting nitrogen, picom, and xmonad)
https://github.com/Ec4ll/config/blob/main/.xinitrc

Last edited by ecal (2020-12-10 02:48:32)

Offline

#2 2020-12-09 18:37:09

loqs
Member
Registered: 2014-03-06
Posts: 18,859

Re: [SOLVED] xinit: connection to X server lost

The Xorg.0.log file shows X did not crash for that run:

[    84.406] (II) Server terminated successfully (0). Closing log file.

Did you post the wrong log or is X no longer crashing?  Do you want to use the Nvidia GPU all the time or just for some processes?

Offline

#3 2020-12-09 19:11:29

ecal
Member
Registered: 2020-12-09
Posts: 2

Re: [SOLVED] xinit: connection to X server lost

Sorry I just fixed that issue. Turns out X wasn't crashing it was just me being an idiot and forgetting to install xmonad-contrib which was causing my issue. I would still like a bit of help understanding the Nvidia drivers though, I don't want the Nvidia GPU all the time as I've read that its terrible for battery life. I want it just for certain processes that need the power.

Offline

#4 2020-12-09 19:32:49

loqs
Member
Registered: 2014-03-06
Posts: 18,859

Re: [SOLVED] xinit: connection to X server lost

As you are following PRIME#PRIME_render_offload ensure bumblebee is not installed and check the output of the following which requires mesa-demos

prime-run glxinfo | grep "OpenGL renderer"

Offline

Board footer

Powered by FluxBB