You are not logged in.

#1 2022-09-06 10:23:12

ineedhelpplease
Member
Registered: 2022-09-06
Posts: 6

X fatal server error

I installed nvidia drivers and now X doesn't start via startx
this is log

[   234.517] 
X.Org X Server 1.21.1.4
X Protocol Version 11, Revision 0
[   234.518] Current Operating System: Linux archivan 5.19.7-arch1-1 #1 SMP PREEMPT_DYNAMIC Mon, 05 Sep 2022 18:09:09 +0000 x86_64
[   234.518] Kernel command line: BOOT_IMAGE=/vmlinuz-linux root=UUID=ab56df77-3428-49ca-89fe-82a921edba83 rw loglevel=3 quiet
[   234.519]  
[   234.519] Current version of pixman: 0.40.0
[   234.520] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[   234.520] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   234.521] (==) Log file: "/var/log/Xorg.0.log", Time: Tue Sep  6 13:14:08 2022
[   234.522] (==) Using config directory: "/etc/X11/xorg.conf.d"
[   234.522] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[   234.522] (==) No Layout section.  Using the first Screen section.
[   234.522] (==) No screen section available. Using defaults.
[   234.522] (**) |-->Screen "Default Screen Section" (0)
[   234.522] (**) |   |-->Monitor "<default monitor>"
[   234.522] (==) No monitor specified for screen "Default Screen Section".
	Using a default monitor configuration.
[   234.522] (==) Automatically adding devices
[   234.522] (==) Automatically enabling devices
[   234.522] (==) Automatically adding GPU devices
[   234.522] (==) Automatically binding GPU devices
[   234.522] (==) Max clients allowed: 256, resource mask: 0x1fffff
[   234.522] (WW) The directory "/usr/share/fonts/OTF" does not exist.
[   234.522] 	Entry deleted from font path.
[   234.522] (WW) The directory "/usr/share/fonts/Type1" does not exist.
[   234.522] 	Entry deleted from font path.
[   234.522] (==) FontPath set to:
	/usr/share/fonts/misc,
	/usr/share/fonts/TTF,
	/usr/share/fonts/100dpi,
	/usr/share/fonts/75dpi
[   234.522] (==) ModulePath set to "/usr/lib/xorg/modules"
[   234.522] (II) The server relies on udev to provide the list of input devices.
	If no devices become available, reconfigure udev or disable AutoAddDevices.
[   234.522] (II) Module ABI versions:
[   234.522] 	X.Org ANSI C Emulation: 0.4
[   234.522] 	X.Org Video Driver: 25.2
[   234.522] 	X.Org XInput driver : 24.4
[   234.522] 	X.Org Server Extension : 10.0
[   234.523] (++) using VT number 1

[   234.524] (II) systemd-logind: took control of session /org/freedesktop/login1/session/_31
[   234.526] (--) PCI:*(1@0:0:0) 10de:11c6:1458:3554 rev 161, Mem @ 0xf6000000/16777216, 0xe0000000/268435456, 0xf0000000/33554432, I/O @ 0x0000e000/128, BIOS @ 0x????????/131072
[   234.526] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[   234.526] (II) LoadModule: "glx"
[   234.526] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[   234.527] (II) Module glx: vendor="X.Org Foundation"
[   234.527] 	compiled for 1.21.1.4, module version = 1.0.0
[   234.527] 	ABI class: X.Org Server Extension, version 10.0
[   234.527] (==) Matched nouveau as autoconfigured driver 0
[   234.527] (==) Matched nv as autoconfigured driver 1
[   234.527] (==) Matched modesetting as autoconfigured driver 2
[   234.527] (==) Matched fbdev as autoconfigured driver 3
[   234.527] (==) Matched vesa as autoconfigured driver 4
[   234.527] (==) Assigned the driver to the xf86ConfigLayout
[   234.527] (II) LoadModule: "nouveau"
[   234.527] (II) Loading /usr/lib/xorg/modules/drivers/nouveau_drv.so
[   234.527] (II) Module nouveau: vendor="X.Org Foundation"
[   234.527] 	compiled for 1.21.1.1, module version = 1.0.17
[   234.527] 	Module class: X.Org Video Driver
[   234.527] 	ABI class: X.Org Video Driver, version 25.2
[   234.527] (II) LoadModule: "nv"
[   234.527] (WW) Warning, couldn't open module nv
[   234.527] (EE) Failed to load module "nv" (module does not exist, 0)
[   234.527] (II) LoadModule: "modesetting"
[   234.527] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[   234.528] (II) Module modesetting: vendor="X.Org Foundation"
[   234.528] 	compiled for 1.21.1.4, module version = 1.21.1
[   234.528] 	Module class: X.Org Video Driver
[   234.528] 	ABI class: X.Org Video Driver, version 25.2
[   234.528] (II) LoadModule: "fbdev"
[   234.528] (WW) Warning, couldn't open module fbdev
[   234.528] (EE) Failed to load module "fbdev" (module does not exist, 0)
[   234.528] (II) LoadModule: "vesa"
[   234.528] (WW) Warning, couldn't open module vesa
[   234.528] (EE) Failed to load module "vesa" (module does not exist, 0)
[   234.528] (II) NOUVEAU driver 
[   234.528] (II) NOUVEAU driver for NVIDIA chipset families :
[   234.528] 	RIVA TNT            (NV04)
[   234.528] 	RIVA TNT2           (NV05)
[   234.528] 	GeForce 256         (NV10)
[   234.528] 	GeForce 2           (NV11, NV15)
[   234.528] 	GeForce 4MX         (NV17, NV18)
[   234.528] 	GeForce 3           (NV20)
[   234.528] 	GeForce 4Ti         (NV25, NV28)
[   234.528] 	GeForce FX          (NV3x)
[   234.528] 	GeForce 6           (NV4x)
[   234.528] 	GeForce 7           (G7x)
[   234.528] 	GeForce 8           (G8x)
[   234.528] 	GeForce 9           (G9x)
[   234.528] 	GeForce GTX 2xx/3xx (GT2xx)
[   234.528] 	GeForce GTX 4xx/5xx (GFxxx)
[   234.528] 	GeForce GTX 6xx/7xx (GKxxx)
[   234.528] 	GeForce GTX 9xx     (GMxxx)
[   234.528] 	GeForce GTX 10xx    (GPxxx)
[   234.528] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[   234.529] (EE) [drm] Failed to open DRM device for pci:0000:01:00.0: -19
[   234.529] (EE) open /dev/dri/card0: No such file or directory
[   234.529] (WW) Falling back to old probe method for modesetting
[   234.529] (EE) open /dev/dri/card0: No such file or directory
[   234.529] (EE) Screen 0 deleted because of no matching config section.
[   234.529] (II) UnloadModule: "modesetting"
[   234.529] (EE) Device(s) detected, but none match those in the config file.
[   234.529] (EE) 
Fatal server error:
[   234.529] (EE) no screens found(EE) 
[   234.529] (EE) 
Please consult the The X.Org Foundation support 
	 at http://wiki.x.org
 for help. 
[   234.529] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[   234.529] (EE) 
[   234.530] (EE) Server terminated with error (1). Closing log file.

I tried deleting nvidia drivers and start without it, but it doesn't start anyway. The log is an attempt to start with nvidia drives.

Offline

#2 2022-09-06 10:36:59

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 12,939

Re: X fatal server error

[   234.529] (EE) [drm] Failed to open DRM device for pci:0000:01:00.0: -19
[   234.529] (EE) open /dev/dri/card0: No such file or directory

Did you configure https://wiki.archlinux.org/title/Kernel … _KMS_start ?

Welcome to archlinux forums.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#3 2022-09-06 10:48:48

ineedhelpplease
Member
Registered: 2022-09-06
Posts: 6

Re: X fatal server error

Hello, no I didn't.
I remember running something like this "mkinitcpio -p linux" after installation but doing it now doesn't change anything. On my other pc nvidia drivers worked right away. I'm reading through wiki, but I don't understand what I should look for/what file to edit.

Offline

#4 2022-09-06 11:12:45

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 12,939

Re: X fatal server error

The likely cause for the issue is a wellknown race condition .

Videocards require time to fully initialise and modern systems (especially with ssds) often start so fast that when X tries to use the card it isn't ready .
https://wiki.archlinux.org/title/NVIDIA … de_setting has more detail, but you basically need to do 2 things :

- add nvidia_drm.modeset=1 to your boot commandline .
How to do this depeends on what bootloader you use.

- add nvidia nvidia_modeset nvidia_uvm nvidia_drm to the initramfs .
for mkinitcpio this can be achieved by editing /etc/mkinitcpio.conf and adding those to the modules= line between the ( ) brackets.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#5 2022-09-06 11:28:51

ineedhelpplease
Member
Registered: 2022-09-06
Posts: 6

Re: X fatal server error

More info: this is my .xinitrc

#!/bin/sh

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap

# merge in defaults and keymaps

if [ -f $sysresources ]; then







    xrdb -merge $sysresources

fi

if [ -f $sysmodmap ]; then
    xmodmap $sysmodmap
fi

if [ -f "$userresources" ]; then







    xrdb -merge "$userresources"

fi

if [ -f "$usermodmap" ]; then
    xmodmap "$usermodmap"
fi

# start some nice programs

if [ -d /etc/X11/xinit/xinitrc.d ] ; then
 for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
  [ -x "$f" ] && . "$f"
 done
 unset f
fi

xcompmgr &
./.dwmbar &
~/.fehbg &
exec dwm

conf.d files:

ls /{etc,usr/share}/X11/xorg.conf*
/etc/X11/xorg.conf.d:
total 12K
drwxr-xr-x 4 root root 4.0K Jul 21 16:05 ..
-rw-r--r-- 1 root root  399 Jul 25 14:16 00-keyboard.conf
drwxr-xr-x 2 root root 4.0K Jul 25 14:16 .

/usr/share/X11/xorg.conf.d:
total 24K
-rw-r--r-- 1 root root 1.4K Jan 24  2022 40-libinput.conf
-rw-r--r-- 1 root root 1.4K Jul 12 17:12 10-quirks.conf
-rw-r--r-- 1 root root 3.4K Jul 15 08:56 70-wacom.conf
drwxr-xr-x 6 root root 4.0K Jul 21 16:05 ..
-rw-r--r-- 1 root root  227 Aug  7 18:04 10-nvidia-drm-outputclass.conf
drwxr-xr-x 2 root root 4.0K Sep  5 13:49 .

Also I don't know where xorg.conf is, "https://man.archlinux.org/man/xorg.conf.5" suggested directories do not have it.


I'm using grub. I did like you said:

GRUB_CMDLINE_LINUX="nvidia-drm.modeset=1

and regenerated grub.cfg
in /etc/mkinitcpio.conf now

MODULES=(nvidia nvidia_modeset nvidia_uvm nvidia_drm)

Nothing changed, same errors in x and it doesn't start.

Offline

#6 2022-09-06 11:34:23

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,092

Re: X fatal server error

How did you install the nvidia drivers?

Offline

#7 2022-09-06 11:37:31

ineedhelpplease
Member
Registered: 2022-09-06
Posts: 6

Re: X fatal server error

sudo pacman -S nvidia

Offline

#8 2022-09-06 11:42:06

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,092

Re: X fatal server error

What video card?

Offline

#9 2022-09-06 11:43:42

ineedhelpplease
Member
Registered: 2022-09-06
Posts: 6

Re: X fatal server error

Scimmia wrote:

What video card?

GTX 650 ti

Offline

#10 2022-09-06 11:44:56

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,092

Re: X fatal server error

That card is too old to use the current nvidia driver. See the nvidia page in the Arch wiki.

Offline

#11 2022-09-06 11:51:45

ineedhelpplease
Member
Registered: 2022-09-06
Posts: 6

Re: X fatal server error

Scimmia wrote:

That card is too old to use the current nvidia driver. See the nvidia page in the Arch wiki.

Ok, but how do I get back to nouveau? Simply

 sudo pacman -Rn nvidia 

doesn't help, X still can't start. How do I undo nouveau blacklisting?

 /etc/modprobe.d/ 

has nothing in it.

Last edited by ineedhelpplease (2022-09-06 13:05:41)

Offline

#12 2022-09-06 14:53:40

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,249

Re: X fatal server error

You need to remove nvidia-utils as well otherwise the nouveau module is blacklisted.

Alternatively opt for the actively updated and current https://aur.archlinux.org/packages/nvidia-470xx-dkms

Offline

Board footer

Powered by FluxBB