Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: [SOLVED] Trouble with x-org (Read 2799 times) previous topic - next topic
0 Members and 3 Guests are viewing this topic.

[SOLVED] Trouble with x-org

I was working in a vm on my install and had accidentally written way too large of a file that broke some things on my install… clearing my root directory and clearing my Pac-Man cache has not given me any headway. Any pointers or logs that may lead me in the direction I need to be are much appreciated.

xinit: giving up
xinit: unable to connect to X server
xinit: server error

I have tried some things from this Arch thread as well with no results: https://bbs.archlinux.org/viewtopic.php?id=276032

Re: Trouble with x-org

Reply #1
That is all pretty vague!

Broke things, Tried things.

What else is broken apart from starting X ?
What things have you tried?
There's no point anyone suggesting "try this" only to get lots of "Done that".

How do you start X ?
Post Xorg.log.0

Whichever file is more recent of:
~/.local/share/xorg/Xorg.0.log
/var/log/Xorg.0.log

Re: Trouble with x-org

Reply #2
Code: [Select]
[   210.133] 
X.Org X Server 1.21.1.7
X Protocol Version 11, Revision 0
[   210.135] Current Operating System: Linux slicks-pc 6.1.20-1-lts #1 SMP PREEMPT_DYNAMIC Fri, 17 Mar 2023 17:56:55 +0000 x86_64
[   210.135] Kernel command line: BOOT_IMAGE=/vmlinuz-linux-lts root=UUID=21b7993f-7bf6-48b4-a16c-e659e0423dca rw loglevel=3 quiet
[   210.137] 
[   210.137] Current version of pixman: 0.42.2
[   210.138] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[   210.139] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   210.141] (==) Log file: "/home/slick_57/.local/share/xorg/Xorg.0.log", Time: Fri Mar 24 18:59:04 2023
[   210.143] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[   210.144] (==) No Layout section.  Using the first Screen section.
[   210.144] (==) No screen section available. Using defaults.
[   210.144] (**) |-->Screen "Default Screen Section" (0)
[   210.144] (**) |   |-->Monitor "<default monitor>"
[   210.144] (==) No monitor specified for screen "Default Screen Section".
Using a default monitor configuration.
[   210.144] (==) Automatically adding devices
[   210.144] (==) Automatically enabling devices
[   210.144] (==) Automatically adding GPU devices
[   210.144] (==) Automatically binding GPU devices
[   210.144] (==) Max clients allowed: 256, resource mask: 0x1fffff
[   210.144] (WW) The directory "/usr/share/fonts/misc" does not exist.
[   210.144] Entry deleted from font path.
[   210.145] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/TTF".
[   210.145] Entry deleted from font path.
[   210.145] (Run 'mkfontdir' on "/usr/share/fonts/TTF").
[   210.145] (WW) The directory "/usr/share/fonts/OTF" does not exist.
[   210.145] Entry deleted from font path.
[   210.145] (WW) The directory "/usr/share/fonts/Type1" does not exist.
[   210.145] Entry deleted from font path.
[   210.145] (WW) The directory "/usr/share/fonts/100dpi" does not exist.
[   210.145] Entry deleted from font path.
[   210.145] (WW) The directory "/usr/share/fonts/75dpi" does not exist.
[   210.145] Entry deleted from font path.
[   210.145] (==) FontPath set to:

[   210.145] (==) ModulePath set to "/usr/lib/xorg/modules"
[   210.145] (II) The server relies on udev to provide the list of input devices.
If no devices become available, reconfigure udev or disable AutoAddDevices.
[   210.145] (II) Module ABI versions:
[   210.145] X.Org ANSI C Emulation: 0.4
[   210.145] X.Org Video Driver: 25.2
[   210.145] X.Org XInput driver : 24.4
[   210.145] X.Org Server Extension : 10.0
[   210.145] (++) using VT number 2

[   210.146] (II) systemd-logind: took control of session /org/freedesktop/login1/session/_31
[   210.146] (II) xfree86: Adding drm device (/dev/dri/card0)
[   210.146] (II) Platform probe for /sys/devices/pci0000:00/0000:00:01.1/0000:01:00.0/drm/card0
[   210.146] (II) systemd-logind: got fd for /dev/dri/card0 226:0 fd 13 paused 0
[   210.148] (--) PCI:*(1@0:0:0) 10de:2488:1043:883a rev 161, Mem @ 0xfb000000/16777216, 0xd0000000/268435456, 0xe0000000/33554432, I/O @ 0x0000f000/128, BIOS @ 0x????????/524288
[   210.148] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[   210.148] (II) LoadModule: "glx"
[   210.149] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[   210.151] (II) Module glx: vendor="X.Org Foundation"
[   210.151] compiled for 1.21.1.7, module version = 1.0.0
[   210.151] ABI class: X.Org Server Extension, version 10.0
[   210.151] (==) Matched nouveau as autoconfigured driver 0
[   210.151] (==) Matched nv as autoconfigured driver 1
[   210.151] (==) Matched modesetting as autoconfigured driver 2
[   210.151] (==) Matched fbdev as autoconfigured driver 3
[   210.151] (==) Matched vesa as autoconfigured driver 4
[   210.151] (==) Assigned the driver to the xf86ConfigLayout
[   210.151] (II) LoadModule: "nouveau"
[   210.151] (WW) Warning, couldn't open module nouveau
[   210.151] (EE) Failed to load module "nouveau" (module does not exist, 0)
[   210.151] (II) LoadModule: "nv"
[   210.151] (WW) Warning, couldn't open module nv
[   210.151] (EE) Failed to load module "nv" (module does not exist, 0)
[   210.151] (II) LoadModule: "modesetting"
[   210.151] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[   210.152] (II) Module modesetting: vendor="X.Org Foundation"
[   210.152] compiled for 1.21.1.7, module version = 1.21.1
[   210.152] Module class: X.Org Video Driver
[   210.153] ABI class: X.Org Video Driver, version 25.2
[   210.153] (II) LoadModule: "fbdev"
[   210.153] (WW) Warning, couldn't open module fbdev
[   210.153] (EE) Failed to load module "fbdev" (module does not exist, 0)
[   210.153] (II) LoadModule: "vesa"
[   210.153] (WW) Warning, couldn't open module vesa
[   210.153] (EE) Failed to load module "vesa" (module does not exist, 0)
[   210.153] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[   210.153] (II) modeset(0): using drv /dev/dri/card0
[   210.153] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[   210.153] (II) modeset(0): Creating default Display subsection in Screen section
"Default Screen Section" for depth/fbbpp 24/32
[   210.153] (==) modeset(0): Depth 24, (==) framebuffer bpp 32
[   210.153] (==) modeset(0): RGB weight 888
[   210.153] (==) modeset(0): Default visual is TrueColor
[   210.153] (II) Loading sub module "glamoregl"
[   210.153] (II) LoadModule: "glamoregl"
[   210.153] (II) Loading /usr/lib/xorg/modules/libglamoregl.so
[   210.155] (II) Module glamoregl: vendor="X.Org Foundation"
[   210.155] compiled for 1.21.1.7, module version = 1.0.1
[   210.155] ABI class: X.Org ANSI C Emulation, version 0.4
[   210.247] (EE)
[   210.247] (EE) Backtrace:
[   210.247] (EE) 0: /usr/lib/Xorg (dri3_send_open_reply+0xdd) [0x55be767f59ad]
[   210.247] (EE) 1: /usr/lib/libc.so.6 (__sigaction+0x50) [0x7faa83ba6f50]
[   210.248] (EE) 2: /usr/lib/dri/nouveau_dri.so (nouveau_drm_screen_create+0x493bc) [0x7faa8175b14c]
[   210.248] (EE) 3: /usr/lib/dri/nouveau_dri.so (nouveau_drm_screen_create+0x15327) [0x7faa817270b7]
[   210.248] (EE) 4: /usr/lib/dri/nouveau_dri.so (nouveau_drm_screen_create+0x2b6) [0x7faa81712046]
[   210.248] (EE) 5: /usr/lib/dri/nouveau_dri.so (__driDriverGetExtensions_d3d12+0x151ee) [0x7faa80ed147e]
[   210.248] (EE) 6: /usr/lib/dri/nouveau_dri.so (__driDriverGetExtensions_d3d12+0x5f3d83) [0x7faa814b0013]
[   210.248] (EE) 7: /usr/lib/dri/nouveau_dri.so (__driDriverGetExtensions_d3d12+0x1241e) [0x7faa80ece6ae]
[   210.249] (EE) unw_get_proc_name failed: no unwind info found [-10]
[   210.249] (EE) 8: /usr/lib/dri/nouveau_dri.so (?+0x0) [0x7faa80ebab05]
[   210.249] (EE) 9: /usr/lib/libgbm.so.1 (gbm_create_device+0x2c7) [0x7faa84123d17]
[   210.249] (EE) 10: /usr/lib/libgbm.so.1 (gbm_create_device+0x2697) [0x7faa841260e7]
[   210.249] (EE) unw_get_proc_name failed: no unwind info found [-10]
[   210.249] (EE) 11: /usr/lib/libgbm.so.1 (?+0x0) [0x7faa84123a2c]
[   210.249] (EE) 12: /usr/lib/libgbm.so.1 (gbm_create_device+0x119) [0x7faa84123b69]
[   210.249] (EE) 13: /usr/lib/xorg/modules/libglamoregl.so (glamor_egl_init+0x65) [0x7faa830936b5]
[   210.249] (EE) unw_get_proc_name failed: no unwind info found [-10]
[   210.249] (EE) 14: /usr/lib/xorg/modules/drivers/modesetting_drv.so (?+0x0) [0x7faa8311fee7]
[   210.249] (EE) 15: /usr/lib/Xorg (InitOutput+0x1862) [0x55be768125d2]
[   210.249] (EE) 16: /usr/lib/Xorg (SProcXkbDispatch+0x17b7) [0x55be766d7e93]
[   210.249] (EE) 17: /usr/lib/libc.so.6 (__libc_init_first+0x90) [0x7faa83b91790]
[   210.250] (EE) 18: /usr/lib/libc.so.6 (__libc_start_main+0x8a) [0x7faa83b9184a]
[   210.250] (EE) 19: /usr/lib/Xorg (_start+0x25) [0x55be766d92b5]
[   210.250] (EE)
[   210.250] (EE) Segmentation fault at address 0x20
[   210.250] (EE)
Fatal server error:
[   210.250] (EE) Caught signal 11 (Segmentation fault). Server aborting
[   210.250] (EE)
[   210.250] (EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
 for help.
[   210.250] (EE) Please also check the log file at "/home/slick_57/.local/share/xorg/Xorg.0.log" for additional information.
[   210.250] (EE)
[   210.251] (EE) Server terminated with error (1). Closing log file.

Apologies, I am not used to using termux and w3m and vim as I am a zoomer, I had lost hope in restoring since those were the things that I had always done in the past when having trouble logging in. Startx just runs usually right when I login…

I had my VM fixed and everything before I powered down last night and woke up and turned on my machine this morning to the startx issue… In my efforts to fix my VM I had cleared my pacman cache and root directory, as well as of course cleared out some of the filesystem of the virtual machine itself.

Re: Trouble with x-org

Reply #3
I think reinstalling your graphics driver might solve the issue

Re: Trouble with x-org

Reply #4
I think reinstalling your graphics driver might solve the issue


Just tried this and still nothing when I try to startx, which drivers would one install for a 3070 lite hashrate card? I am trying to understand the docs here https://wiki.archlinux.org/title/NVIDIA but am having a hard time interpreting… sorry if I am committing sin by trying to use Arch docs but I don’t know where else to look in regards to getting the correct drivers installed.

Re: Trouble with x-org

Reply #5
From the log it doesn't look like any attempt is made to load the nvidia driver.

What is the output of
Code: [Select]
lsmod | grep nvidia
and
Code: [Select]
pacman -Qs nvidia
Also from the log it seems you have an lts kernel
Output of
Code: [Select]
uname -a
If you want to try something while waiting for a reply try installing nvidia-dkms
Which will replace the normal nvidia driver. (You need to reboot after installing)

Re: Trouble with x-org

Reply #6
From the log it doesn't look like any attempt is made to load the nvidia driver.

What is the output of
Code: [Select]
lsmod | grep nvidia
and
Code: [Select]
pacman -Qs nvidia
Also from the log it seems you have an lts kernel
Output of
Code: [Select]
uname -a
If you want to try something while waiting for a reply try installing nvidia-dkms
Which will replace the normal nvidia driver. (You need to reboot after installing)

I did install dkms as well and that also did not work, I will try these things later on as I will not have access to this machine for a few hours.

So when I attempt to install dkms, I get the following errors:

Code: [Select]
Missing etc kernel headers for module nvidia/525.89.02
Missing lib kernel headers for module nvidia/525.89.02
Missing lost+found kernel headers for module nvidia/525.89.02
Missing bin kernel headers for module nvidia/525.89.02
Missing usr kernel headers for module nvidia/525.89.02
Missing sbin kernel headers for module nvidia/525.89.02
Missing sys kernel headers for module nvidia/525.89.02
Missing proc kernel headers for module nvidia/525.89.02
Missing opt kernel headers for module nvidia/525.89.02
Missing var kernel headers for module nvidia/525.89.02
Missing boot kernel headers for module nvidia/525.89.02
Missing dev kernel headers for module nvidia/525.89.02
Missing srv kernel headers for module nvidia/525.89.02
Missing home kernel headers for module nvidia/525.89.02
Missing tmp kernel headers for module nvidia/525.89.02
Missing run kernel headers for module nvidia/525.89.02
Missing lib64 kernel headers for module nvidia/525.89.02
Missing mnt kernel headers for module nvidia/525.89.02
Missing root kernel headers for module nvidia/525.89.02


As well as this:
Code: [Select]
local/egl-wayland 2:1.1.11-3
EGLStream-based Wayland external platform
local/libvdpau 1.5-1
Nvidia VDPAU library
local/nvidia 525.89.02-11
NVIDIA Drivers for linux
local/nvidia-utils 525.89.02-2
NVIDIA drivers utilities

Re: Trouble with x-org

Reply #7
From the log it doesn't look like any attempt is made to load the nvidia driver.

What is the output of
Code: [Select]
lsmod | grep nvidia
and
Code: [Select]
pacman -Qs nvidia
Also from the log it seems you have an lts kernel
Output of
Code: [Select]
uname -a
If you want to try something while waiting for a reply try installing nvidia-dkms
Which will replace the normal nvidia driver. (You need to reboot after installing)

I did install dkms as well and that also did not work, I will try these things later on as I will not have access to this machine for a few hours.

So when I attempt to install dkms, I get the following errors:

Code: [Select]
Missing etc kernel headers for module nvidia/525.89.02
Missing lib kernel headers for module nvidia/525.89.02
Missing lost+found kernel headers for module nvidia/525.89.02
Missing bin kernel headers for module nvidia/525.89.02
Missing usr kernel headers for module nvidia/525.89.02
Missing sbin kernel headers for module nvidia/525.89.02
Missing sys kernel headers for module nvidia/525.89.02
Missing proc kernel headers for module nvidia/525.89.02
Missing opt kernel headers for module nvidia/525.89.02
Missing var kernel headers for module nvidia/525.89.02
Missing boot kernel headers for module nvidia/525.89.02
Missing dev kernel headers for module nvidia/525.89.02
Missing srv kernel headers for module nvidia/525.89.02
Missing home kernel headers for module nvidia/525.89.02
Missing tmp kernel headers for module nvidia/525.89.02
Missing run kernel headers for module nvidia/525.89.02
Missing lib64 kernel headers for module nvidia/525.89.02
Missing mnt kernel headers for module nvidia/525.89.02
Missing root kernel headers for module nvidia/525.89.02


As well as this:
Code: [Select]
local/egl-wayland 2:1.1.11-3
EGLStream-based Wayland external platform
local/libvdpau 1.5-1
Nvidia VDPAU library
local/nvidia 525.89.02-11
NVIDIA Drivers for linux
local/nvidia-utils 525.89.02-2
NVIDIA drivers utilities

Re: Trouble with x-org

Reply #8
Am I going to have to just re-install? Or is there a way to go about troubleshooting the drivers, feeling really shell brained on this...

Re: Trouble with x-org

Reply #9
At this point I am feeling as though I have exhausted my options, I have attempted reinstalling xorg-server along with all of its dependencies, checking with pacman -Qm yields no results for installed drivers after attempting to reinstall nvidia-lts along with, installing linux-lts-headers yielded no results as well... any and all tips greatly appreciated, as I can not wrap my head around what it is that I might be missing here.

Issues with X-Org

Reply #10
See here https://forum.artixlinux.org/index.php/topic,5247.0.html
As well as here https://forum.artixlinux.org/index.php/topic,5331.0.html
As well as here https://www.reddit.com/r/artixlinux/comments/12zt91k/reinstall_or_can_i_fix_the_nvidia_drivers/

I really feel burnt out on this issue, and am not sure what it is that I am doing wrong as I migrated from Manjaro and have not had any experience with Gentoo or OpenRC, although I feel as though I have taken all of the steps that I can reasonably come up with, and I think that this area of the forum might be the place that people have the tricks that work? If there is some link or thread that there is that I am missing I would greatly appreciate a shove in the right direction.

Re: Trouble with x-org

Reply #11
Make sure you are fully up to date. Also give nvidia-dkms a try.

Re: Trouble with x-org

Reply #12
So when I attempt to install dkms, I get the following errors:

Code: [Select]
Missing etc kernel headers for module nvidia/525.89.02
Missing lib kernel headers for module nvidia/525.89.02
Missing lost+found kernel headers for module nvidia/525.89.02
Missing bin kernel headers for module nvidia/525.89.02
Missing usr kernel headers for module nvidia/525.89.02
Missing sbin kernel headers for module nvidia/525.89.02
Missing sys kernel headers for module nvidia/525.89.02
Missing proc kernel headers for module nvidia/525.89.02
Missing opt kernel headers for module nvidia/525.89.02
Missing var kernel headers for module nvidia/525.89.02
Missing boot kernel headers for module nvidia/525.89.02
Missing dev kernel headers for module nvidia/525.89.02
Missing srv kernel headers for module nvidia/525.89.02
Missing home kernel headers for module nvidia/525.89.02
Missing tmp kernel headers for module nvidia/525.89.02
Missing run kernel headers for module nvidia/525.89.02
Missing lib64 kernel headers for module nvidia/525.89.02
Missing mnt kernel headers for module nvidia/525.89.02
Missing root kernel headers for module nvidia/525.89.02


You need to install linux-headers or the correct variant for your kernel (i.e. linux-zen-headers if you use linux-zen) for dkms

Re: Trouble with x-org

Reply #13
So when I attempt to install dkms, I get the following errors:

Code: [Select]
Missing etc kernel headers for module nvidia/525.89.02
Missing lib kernel headers for module nvidia/525.89.02
Missing lost+found kernel headers for module nvidia/525.89.02
Missing bin kernel headers for module nvidia/525.89.02
Missing usr kernel headers for module nvidia/525.89.02
Missing sbin kernel headers for module nvidia/525.89.02
Missing sys kernel headers for module nvidia/525.89.02
Missing proc kernel headers for module nvidia/525.89.02
Missing opt kernel headers for module nvidia/525.89.02
Missing var kernel headers for module nvidia/525.89.02
Missing boot kernel headers for module nvidia/525.89.02
Missing dev kernel headers for module nvidia/525.89.02
Missing srv kernel headers for module nvidia/525.89.02
Missing home kernel headers for module nvidia/525.89.02
Missing tmp kernel headers for module nvidia/525.89.02
Missing run kernel headers for module nvidia/525.89.02
Missing lib64 kernel headers for module nvidia/525.89.02
Missing mnt kernel headers for module nvidia/525.89.02
Missing root kernel headers for module nvidia/525.89.02


You need to install linux-headers or the correct variant for your kernel (i.e. linux-zen-headers if you use linux-zen) for dkms

This worked, I feel really stupid, must have just been tired last night, TYSM. I was looking at this log last night too and wondering why it was that it seemed that I could install the drivers but they were not appearing correctly.

 

Re: Trouble with x-org

Reply #14
No problem, glad you got it sorted out