You are not logged in.

#1 2022-01-30 12:01:35

WeebSpirit
Member
Registered: 2021-10-27
Posts: 91

[SOVLED]Xorg not starting

Today i tried tinkering with nvidia drivers and it lead to xorg breaking. I assumed it was because /etc/X11/xorg.conf which i edited. I tried to find the default config file for it, pasted it but it still doesn't launch. Here's logs:

[    78.927] X.Org X Server 1.21.1.3
X Protocol Version 11, Revision 0
[    78.928] Current Operating System: Linux arch 5.16.3-arch1-1 #1 SMP PREEMPT Thu, 27 Jan 2022 14:18:25 +0000 x86_64
[    78.928] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=b174f517-1978-437a-a0d9-b1883048c1a8 rw loglevel=3 quiet
[    78.928]  
[    78.928] Current version of pixman: 0.40.0
[    78.928] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[    78.928] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    78.928] (==) Log file: "/var/log/Xorg.0.log", Time: Sun Jan 30 13:24:52 2022
[    78.929] (==) Using config file: "/etc/X11/xorg.conf"
[    78.929] (==) Using config directory: "/etc/X11/xorg.conf.d"
[    78.929] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[    78.929] (==) ServerLayout "Layout0"
[    78.929] (**) |-->Screen "Screen0" (0)
[    78.929] (**) |   |-->Monitor "Monitor0"
[    78.929] (**) |   |-->Device "Device0"
[    78.929] (**) |   |-->GPUDevice "main"
[    78.929] (**) |-->Input Device "Keyboard0"
[    78.929] (**) |-->Input Device "Mouse0"
[    78.929] (==) Automatically adding devices
[    78.929] (==) Automatically enabling devices
[    78.930] (==) Automatically adding GPU devices
[    78.930] (==) Automatically binding GPU devices
[    78.930] (==) Max clients allowed: 256, resource mask: 0x1fffff
[    78.930] (WW) The directory "/usr/share/fonts/OTF" does not exist.
[    78.930] 	Entry deleted from font path.
[    78.930] (WW) The directory "/usr/share/fonts/Type1" does not exist.
[    78.930] 	Entry deleted from font path.
[    78.930] (==) FontPath set to:
	/usr/share/fonts/misc,
	/usr/share/fonts/TTF,
	/usr/share/fonts/100dpi,
	/usr/share/fonts/75dpi
[    78.930] (==) ModulePath set to "/usr/lib/xorg/modules"
[    78.930] (WW) Hotplugging is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.
[    78.930] (WW) Disabling Keyboard0
[    78.930] (WW) Disabling Mouse0
[    78.930] (II) Module ABI versions:
[    78.930] 	X.Org ANSI C Emulation: 0.4
[    78.930] 	X.Org Video Driver: 25.2
[    78.930] 	X.Org XInput driver : 24.4
[    78.930] 	X.Org Server Extension : 10.0
[    78.930] (++) using VT number 1

[    78.933] (II) systemd-logind: took control of session /org/freedesktop/login1/session/_31
[    78.933] (II) xfree86: Adding drm device (/dev/dri/card0)
[    78.933] (II) Platform probe for /sys/devices/pci0000:00/0000:00:01.1/0000:01:00.0/drm/card0
[    78.933] (EE) systemd-logind: failed to take device /dev/dri/card0: Invalid argument
[    78.934] (II) xfree86: Adding drm device (/dev/dri/card1)
[    78.934] (II) Platform probe for /sys/devices/pci0000:00/0000:00:08.1/0000:05:00.0/drm/card1
[    78.935] (II) systemd-logind: got fd for /dev/dri/card1 226:1 fd 11 paused 0
[    80.798] (--) PCI: (1@0:0:0) 10de:1f99:1025:1447 rev 161, Mem @ 0xd0000000/16777216, 0xfcc0000000/268435456, 0xfcd0000000/33554432, I/O @ 0x00003000/128, BIOS @ 0x????????/524288
[    80.798] (--) PCI:*(5@0:0:0) 1002:1636:1025:1455 rev 198, Mem @ 0xfce0000000/268435456, 0xfcf0000000/2097152, 0xd1500000/524288, I/O @ 0x00001000/256
[    80.799] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[    80.799] (II) LoadModule: "glx"
[    80.799] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[    80.801] (II) Module glx: vendor="X.Org Foundation"
[    80.801] 	compiled for 1.21.1.3, module version = 1.0.0
[    80.801] 	ABI class: X.Org Server Extension, version 10.0
[    80.801] (II) LoadModule: "nvidia"
[    80.801] (WW) Warning, couldn't open module nvidia
[    80.801] (EE) Failed to load module "nvidia" (module does not exist, 0)
[    80.801] (II) LoadModule: "fbdev"
[    80.801] (WW) Warning, couldn't open module fbdev
[    80.801] (EE) Failed to load module "fbdev" (module does not exist, 0)
[    80.801] (EE) No drivers available.
[    80.801] (EE) 
Fatal server error:
[    80.801] (EE) no screens found(EE) 
[    80.801] (EE) 
Please consult the The X.Org Foundation support 
	 at http://wiki.x.org
 for help. 
[    80.801] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[    80.801] (EE) 
[    80.860] (EE) Server terminated with error (1). Closing log file.

Last edited by WeebSpirit (2022-01-30 19:37:33)

Offline

#2 2022-01-30 12:12:42

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOVLED]Xorg not starting

The default is for that file to not exist at all. Delete it entirely and try again.


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2022-01-30 13:56:31

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

Re: [SOVLED]Xorg not starting

On top of that

i tried tinkering with nvidia drivers

they're also no longer there

[    80.801] (II) LoadModule: "nvidia"
[    80.801] (WW) Warning, couldn't open module nvidia

so tinker-re-install them, but for a hybrid system you MUST NOT use nvidia-settings to generate a configuration.
https://wiki.archlinux.org/title/NVIDIA_Optimus

Online

#4 2022-01-30 14:58:44

WeebSpirit
Member
Registered: 2021-10-27
Posts: 91

Re: [SOVLED]Xorg not starting

Slithery wrote:

The default is for that file to not exist at all. Delete it entirely and try again.

seth wrote:

On top of that

i tried tinkering with nvidia drivers

they're also no longer there

[    80.801] (II) LoadModule: "nvidia"
[    80.801] (WW) Warning, couldn't open module nvidia

so tinker-re-install them, but for a hybrid system you MUST NOT use nvidia-settings to generate a configuration.
https://wiki.archlinux.org/title/NVIDIA_Optimus

I tried deleting /etc/X11/xorg.conf. It didn't help.
Actually as i remember the only parameter i used with nvidia-settings was

nvidia-settings --assign CurrentMetaMode="nvidia-auto-select +0+0 { ForceFullCompositionPipeline = On }"

But that was a long time ago. Since then i deleted it and never used. Before i broke xorg i didn't use it at all.

Offline

#5 2022-01-30 15:13:07

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

Re: [SOVLED]Xorg not starting

I tried deleting /etc/X11/xorg.conf. It didn't help.

It doesn't help because the driver is, for whatever reason, no longer there after your "tinkering".
The file has no business being there either way, you can enforce the FCP w/ a configlet - but that's for later.
First fix the driver installation.

pacman -Qs nvidia

Online

#6 2022-01-30 15:29:21

WeebSpirit
Member
Registered: 2021-10-27
Posts: 91

Re: [SOVLED]Xorg not starting

seth wrote:

I tried deleting /etc/X11/xorg.conf. It didn't help.

It doesn't help because the driver is, for whatever reason, no longer there after your "tinkering".
The file has no business being there either way, you can enforce the FCP w/ a configlet - but that's for later.
First fix the driver installation.

pacman -Qs nvidia

returns:

local/egl-wayland 2:1.1.9+r3+g582b2d3-1
    EGLStream-based Wayland external platform
local/libvdpau 1.4-1
    Nvidia VDPAU library
local/nvidia 495.46-11
    NVIDIA drivers for linux
local/nvidia-utils 495.46-2
    NVIDIA drivers utilities
local/xf86-video-nouveau 1.0.17-2 (xorg-drivers)
    Open Source 3D acceleration driver for nVidia cards

Offline

#7 2022-01-30 15:47:57

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

Re: [SOVLED]Xorg not starting

pacman -Qkk nvidia nvidia-utils

will likely yell some errors and you'll have to re-install them.

Online

#8 2022-01-30 15:57:44

WeebSpirit
Member
Registered: 2021-10-27
Posts: 91

Re: [SOVLED]Xorg not starting

seth wrote:

I tried deleting /etc/X11/xorg.conf. It didn't help.

It doesn't help because the driver is, for whatever reason, no longer there after your "tinkering".
The file has no business being there either way, you can enforce the FCP w/ a configlet - but that's for later.
First fix the driver installation.

pacman -Qs nvidia

returns:

local/egl-wayland 2:1.1.9+r3+g582b2d3-1
    EGLStream-based Wayland external platform
local/libvdpau 1.4-1
    Nvidia VDPAU library
local/nvidia 495.46-11
    NVIDIA drivers for linux
local/nvidia-utils 495.46-2
    NVIDIA drivers utilities
local/xf86-video-nouveau 1.0.17-2 (xorg-drivers)
    Open Source 3D acceleration driver for nVidia cards

Offline

#9 2022-01-30 17:20:10

WeebSpirit
Member
Registered: 2021-10-27
Posts: 91

Re: [SOVLED]Xorg not starting

seth wrote:
pacman -Qkk nvidia nvidia-utils

will likely yell some errors and you'll have to re-install them.

returns:

nvidia: 14 total files, 0 altered files
nvidia-utils: 208 total files, 0 altered files

Offline

#10 2022-01-30 17:26:14

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

Re: [SOVLED]Xorg not starting

That doesn't fit

[    80.801] (WW) Warning, couldn't open module nvidia

Please post an updated Xorg log.

Online

#11 2022-01-30 17:41:27

WeebSpirit
Member
Registered: 2021-10-27
Posts: 91

Re: [SOVLED]Xorg not starting

seth wrote:

That doesn't fit

[    80.801] (WW) Warning, couldn't open module nvidia

Please post an updated Xorg log.

here's the problem. It doesn't update the log. It can't even stop running and after i switch to an another tty i can't get back to the one where i launched x.

Offline

#12 2022-01-30 17:48:39

WeebSpirit
Member
Registered: 2021-10-27
Posts: 91

Re: [SOVLED]Xorg not starting

UPD: I tried killing bspwm which i launch through xorg. Tty works, but the new log file isn't there

Offline

#13 2022-01-30 18:07:12

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

Re: [SOVLED]Xorg not starting

Do you get output when running "Xorg" from the console?

Online

#14 2022-01-30 18:24:03

WeebSpirit
Member
Registered: 2021-10-27
Posts: 91

Re: [SOVLED]Xorg not starting

seth wrote:

Do you get output when running "Xorg" from the console?

I'm really sorry but the only place i can upload to now is imgur. https://imgur.com/a/m0e2ETc

Offline

#15 2022-01-30 19:37:17

WeebSpirit
Member
Registered: 2021-10-27
Posts: 91

Re: [SOVLED]Xorg not starting

Marking this as solved. I deleted the directory /etc/X11 and after rebooting it's all fine now.

Offline

#16 2022-01-30 20:35:37

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

Re: [SOVLED]Xorg not starting

There was probably a stale bad config in /etc/X11/xorg.conf.d (you ended up w/ no output) but you rather did not want to delete /etc/X11/xinit and should restore that directory (there're now files missing from xorg-xinit and systemd)

Online

#17 2022-01-31 08:34:34

WeebSpirit
Member
Registered: 2021-10-27
Posts: 91

Re: [SOVLED]Xorg not starting

seth wrote:

There was probably a stale bad config in /etc/X11/xorg.conf.d (you ended up w/ no output) but you rather did not want to delete /etc/X11/xinit and should restore that directory (there're now files missing from xorg-xinit and systemd)

I deleted it using

sudo rm -r /etc/x11

Is it still possible to recover? Tho everything is fine. Nothing works wrong.

Offline

#18 2022-01-31 08:49:09

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

Re: [SOVLED]Xorg not starting

Re-installing the xorg-xinit and systemd packages should™ sanitize the situation.
Do not conduct partial updates in doing so, either re-install them from the cache or if you have to update them, update the entire system.

Online

Board footer

Powered by FluxBB