You are not logged in.

#1 2017-11-10 15:13:57

validifyed
Member
Registered: 2017-11-10
Posts: 5

[Solved] Nvidia default configs crash xserver on startup

Having reinstalled Arch a few days ago, I need to reinstall Nvidia drivers.

Nvidia and Nvidia utils are installed, and im using SDDM and xserver.
Upon using nvidia-xconfig and reloading the xserver, the startup hangs after line "Reached Target Graphical Interface".
(image included) RAW: https://imgur.com/a/Pg2R3

Switching tty does not work, attempting to do so causes the text already on the screen to flash progressivly faster.
Fixing requires booting into ISO usb, mounting FS and removing generated /etx/X11/xorg.conf which isnt so much a "fix" as a way to get xserver to use nautilus again. (From my understanding, anyway)

Also attempted manually writing /etc/X11/xorg.conf.d/20-nvidia.conf with example given on the wiki https://wiki.archlinux.org/index.php/NV … figuration
(Edited line 5 to `BoardName "GeForce GTX 970"`) resulted in the same issue.

Also tried generating configs from nvidia-settings however it doesnt seem to want to run propperly without an initial config and xserver reboot.

Any help would be appreciated.

Last edited by validifyed (2017-11-10 16:44:40)

Offline

#2 2017-11-10 15:55:32

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

Re: [Solved] Nvidia default configs crash xserver on startup

Upon using nvidia-xconfig

And why did you think that would be a good idea?

removing generated /etx/X11/xorg.conf which isnt so much a "fix

No, this *is* the fix.

Static config files are deprecated and nvidia-xconfig is not very good at generating them either (no automated tool is)

Also attempted manually writing /etc/X11/xorg.conf.d/20-nvidia.conf with example given

Your problem is likely that you're not using the nvidia kernel module. Or SDDM is just broken (again...) - try to avoid it and use startx to rule it out as culprit: https://wiki.archlinux.org/index.php/Xinit

For details (and if it's not sddm), please provide the output of "lspci" and an Xorg log of a failed X startup.

Offline

#3 2017-11-10 16:08:42

validifyed
Member
Registered: 2017-11-10
Posts: 5

Re: [Solved] Nvidia default configs crash xserver on startup

seth wrote:

Upon using nvidia-xconfig

And why did you think that would be a good idea?

Because thats what the arch wiki said.

seth wrote:

removing generated /etx/X11/xorg.conf which isnt so much a "fix

No, this *is* the fix.

Only a fix if you dont want to use the nvidia drivers. Games still run slow on nautilus and nvidia-settings still kindly reminds you to use the config generator and restart xserver.

seth wrote:

Static config files are deprecated and nvidia-xconfig is not very good at generating them either (no automated tool is)

Aware they are depreciated, however I would then need some guidance on how to make my own, given that my attempt from the more modern config example on the arch wiki failed.

seth wrote:

Your problem is likely that you're not using the nvidia kernel module. Or SDDM is just broken (again...) - try to avoid it and use startx to rule it out as culprit: https://wiki.archlinux.org/index.php/Xinit

For details (and if it's not sddm), please provide the output of "lspci" and an Xorg log of a failed X startup.

Will have to disable SDDM to try this due to being blocked from switching tty, will report back. 

lspci output:

00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Root Complex
00:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD] Device 1451
00:01.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) PCIe Dummy Host Bridge
00:01.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 1453
00:02.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) PCIe Dummy Host Bridge
00:03.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) PCIe Dummy Host Bridge
00:03.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 1453
00:04.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) PCIe Dummy Host Bridge
00:07.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) PCIe Dummy Host Bridge
00:07.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Internal PCIe GPP Bridge 0 to Bus B
00:08.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) PCIe Dummy Host Bridge
00:08.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Internal PCIe GPP Bridge 0 to Bus B
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 59)
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 51)
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 0
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 1
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 2
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 3
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 4
00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 5
00:18.6 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Data Fabric Device 18h Function 6
00:18.7 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 7
01:00.0 USB controller: Advanced Micro Devices, Inc. [AMD] Device 43b9 (rev 02)
01:00.1 SATA controller: Advanced Micro Devices, Inc. [AMD] Device 43b5 (rev 02)
01:00.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 43b0 (rev 02)
02:00.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 43b4 (rev 02)
02:01.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 43b4 (rev 02)
02:02.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 43b4 (rev 02)
02:03.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 43b4 (rev 02)
02:04.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 43b4 (rev 02)
02:05.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 43b4 (rev 02)
02:06.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 43b4 (rev 02)
02:07.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 43b4 (rev 02)
04:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 16)
0b:00.0 VGA compatible controller: NVIDIA Corporation GM204 [GeForce GTX 970] (rev a1)
0b:00.1 Audio device: NVIDIA Corporation GM204 High Definition Audio Controller (rev a1)
11:00.0 Non-Essential Instrumentation [1300]: Advanced Micro Devices, Inc. [AMD] Device 145a
11:00.2 Encryption controller: Advanced Micro Devices, Inc. [AMD] Device 1456
11:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] USB3 Host Controller
12:00.0 Non-Essential Instrumentation [1300]: Advanced Micro Devices, Inc. [AMD] Device 1455
12:00.2 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] (rev 51)
12:00.3 Audio device: Advanced Micro Devices, Inc. [AMD] Device 1457

Will need to know exactly where I can find the xorg log before I can provide it.

Offline

#4 2017-11-10 16:13:50

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

Re: [Solved] Nvidia default configs crash xserver on startup

Where does the arch wiki tell you to run nvidia-xconfig? That'd be a clear mistake in the wiki and this is *not* necessary to use the nvidia driver, ab-so-lute-ly not.
This rather means your installation is broken and you're not using the nvidia kernel module: output of "lsmod"?

Log is written at /var/log/Xorg.*.log

Offline

#5 2017-11-10 16:18:16

validifyed
Member
Registered: 2017-11-10
Posts: 5

Re: [Solved] Nvidia default configs crash xserver on startup

seth wrote:

Where does the arch wiki tell you to run nvidia-xconfig? That'd be a clear mistake in the wiki and this is *not* necessary to use the nvidia driver, ab-so-lute-ly not.
This rather means your installation is broken and you're not using the nvidia kernel module: output of "lsmod"?

Log is written at /var/log/Xorg.*.log

https://wiki.archlinux.org/index.php/NV … figuration - under "Automatic Configuration"

lsmod output:

Module                  Size  Used by
snd_hda_codec_hdmi     49152  1
cfg80211              532480  0
rfkill                 20480  2 cfg80211
nouveau              1564672  11
edac_mce_amd           28672  0
mxm_wmi                16384  1 nouveau
nls_iso8859_1          16384  1
video                  36864  1 nouveau
i2c_algo_bit           16384  1 nouveau
kvm_amd              2174976  0
nls_cp437              20480  1
kvm                   516096  1 kvm_amd
snd_hda_codec_realtek    77824  1
vfat                   20480  1
fat                    65536  1 vfat
snd_hda_codec_generic    69632  1 snd_hda_codec_realtek
irqbypass              16384  1 kvm
ttm                    81920  1 nouveau
crct10dif_pclmul       16384  0
snd_usb_audio         163840  3
crc32_pclmul           16384  0
snd_hda_intel          36864  5
drm_kms_helper        131072  1 nouveau
ghash_clmulni_intel    16384  0
snd_hda_codec         106496  4 snd_hda_intel,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_codec_realtek
pcbc                   16384  0
snd_usbmidi_lib        28672  1 snd_usb_audio
drm                   303104  8 nouveau,ttm,drm_kms_helper
snd_rawmidi            28672  1 snd_usbmidi_lib
snd_hda_core           65536  5 snd_hda_intel,snd_hda_codec,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_codec_realtek
snd_seq_device         16384  1 snd_rawmidi
snd_hwdep              20480  2 snd_hda_codec,snd_usb_audio
aesni_intel           184320  0
snd_pcm                86016  6 snd_hda_intel,snd_hda_codec,snd_usb_audio,snd_hda_core,snd_hda_codec_hdmi
sp5100_tco             16384  0
ccp                    65536  0
r8169                  77824  0
aes_x86_64             20480  1 aesni_intel
agpgart                36864  3 nouveau,ttm,drm
input_leds             16384  0
snd_timer              28672  1 snd_pcm
led_class              16384  2 input_leds,nouveau
syscopyarea            16384  1 drm_kms_helper
joydev                 20480  0
crypto_simd            16384  1 aesni_intel
sysfillrect            16384  1 drm_kms_helper
evdev                  24576  12
snd                    73728  27 snd_hda_intel,snd_hwdep,snd_hda_codec,snd_usb_audio,snd_timer,snd_rawmidi,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_usbmidi_lib,snd_seq_device,snd_hda_codec_realtek,snd_pcm
glue_helper            16384  1 aesni_intel
mousedev               20480  0
sysimgblt              16384  1 drm_kms_helper
fb_sys_fops            16384  1 drm_kms_helper
cryptd                 20480  3 crypto_simd,ghash_clmulni_intel,aesni_intel
soundcore              16384  1 snd
i2c_piix4              24576  0
pcspkr                 16384  0
wmi_bmof               16384  0
mac_hid                16384  0
rng_core               16384  1 ccp
mii                    16384  1 r8169
tpm_crb                16384  0
tpm_tis                16384  0
tpm_tis_core           20480  1 tpm_tis
tpm                    49152  3 tpm_tis,tpm_crb,tpm_tis_core
8250_dw                16384  0
shpchp                 32768  0
thermal                20480  0
wmi                    20480  3 wmi_bmof,mxm_wmi,nouveau
button                 16384  1 nouveau
acpi_cpufreq           20480  0
sch_fq_codel           20480  2
ip_tables              24576  0
x_tables               32768  1 ip_tables
ext4                  557056  1
crc16                  16384  1 ext4
mbcache                16384  1 ext4
jbd2                   90112  1 ext4
fscrypto               24576  1 ext4
sd_mod                 49152  4
uas                    24576  0
usb_storage            65536  1 uas
hid_generic            16384  0
usbhid                 45056  0
hid                   114688  2 hid_generic,usbhid
serio_raw              16384  0
atkbd                  24576  0
libps2                 16384  1 atkbd
crc32c_intel           24576  0
ahci                   36864  3
libahci                28672  1 ahci
xhci_pci               16384  0
libata                208896  2 ahci,libahci
xhci_hcd              188416  1 xhci_pci
usbcore               208896  7 usbhid,snd_usb_audio,usb_storage,xhci_pci,snd_usbmidi_lib,uas,xhci_hcd
scsi_mod              155648  4 sd_mod,usb_storage,libata,uas
usb_common             16384  1 usbcore
i8042                  24576  0
serio                  20480  4 serio_raw,atkbd,i8042

Just configured xinitrc, will post back once ive  tried launching i3 without SDDM as the DM

Offline

#6 2017-11-10 16:30:02

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

Re: [Solved] Nvidia default configs crash xserver on startup

nouveau              1564672  11

There you go, the nvidia kernel module isn't installed or the installation is broken (because otherwise the nouveau module would be blacklisted)

Edit:

It is possible that after installing the driver it may not be needed to create an Xorg server configuration file. You can run a test to see if the Xorg server will function correctly without a configuration file. However, it may be required to create a configuration file (prefer /etc/X11/xorg.conf.d/20-nvidia.conf over /etc/X11/xorg.conf) in order to adjust various settings. This configuration can be generated by the NVIDIA Xorg configuration tool, or it can be created manually. If created manually, it can be a minimal configuration (in the sense that it will only pass the basic options to the Xorg server), or it can include a number of settings that can bypass Xorg's auto-discovered or pre-configured options.

This does no way say you should be using nvidia-xconfig. It says you can and also mention caveats.
So if still in doubt, please take my word: don't.

Last edited by seth (2017-11-10 16:33:54)

Offline

#7 2017-11-10 16:35:11

validifyed
Member
Registered: 2017-11-10
Posts: 5

Re: [Solved] Nvidia default configs crash xserver on startup

Seems superfluous posting this now, as whole "[    52.125] (EE) NVIDIA: Failed to initialize the NVIDIA kernel module. Please see the" seems to be obviouse enough.
Will have a look into this and post back if I hit a wall or manage to solve it. Not sure where the kernel log is for starters.

xorg.0.log:

[    51.957] 
X.Org X Server 1.19.5
Release Date: 2017-10-12
[    51.957] X Protocol Version 11, Revision 0
[    51.957] Build Operating System: Linux 4.9.54-1-lts x86_64 
[    51.957] Current Operating System: Linux archDesk 4.13.11-1-ARCH #1 SMP PREEMPT Thu Nov 2 10:25:56 CET 2017 x86_64
[    51.957] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=99b2bcb0-3cac-4bc4-b33d-c87a91118e44 rw quiet
[    51.957] Build Date: 12 October 2017  09:59:53PM
[    51.957]  
[    51.957] Current version of pixman: 0.34.0
[    51.957] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[    51.957] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    51.957] (==) Log file: "/var/log/Xorg.0.log", Time: Fri Nov 10 16:22:18 2017
[    51.957] (==) Using config file: "/etc/X11/xorg.conf"
[    51.957] (==) Using config directory: "/etc/X11/xorg.conf.d"
[    51.957] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[    51.958] (==) ServerLayout "Layout0"
[    51.958] (**) |-->Screen "Screen0" (0)
[    51.958] (**) |   |-->Monitor "Monitor0"
[    51.958] (**) |   |-->Device "Device0"
[    51.958] (**) |-->Input Device "Keyboard0"
[    51.958] (**) |-->Input Device "Mouse0"
[    51.958] (==) Automatically adding devices
[    51.958] (==) Automatically enabling devices
[    51.958] (==) Automatically adding GPU devices
[    51.958] (==) Automatically binding GPU devices
[    51.958] (==) Max clients allowed: 256, resource mask: 0x1fffff
[    51.958] (WW) The directory "/usr/share/fonts/Type1/" does not exist.
[    51.958] 	Entry deleted from font path.
[    51.958] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/100dpi/".
[    51.958] 	Entry deleted from font path.
[    51.958] 	(Run 'mkfontdir' on "/usr/share/fonts/100dpi/").
[    51.958] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/75dpi/".
[    51.958] 	Entry deleted from font path.
[    51.958] 	(Run 'mkfontdir' on "/usr/share/fonts/75dpi/").
[    51.958] (==) FontPath set to:
	/usr/share/fonts/misc/,
	/usr/share/fonts/TTF/,
	/usr/share/fonts/OTF/
[    51.958] (==) ModulePath set to "/usr/lib/xorg/modules"
[    51.958] (WW) Hotplugging is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.
[    51.958] (WW) Disabling Keyboard0
[    51.958] (WW) Disabling Mouse0
[    51.958] (II) Loader magic: 0x55b18bb02d60
[    51.958] (II) Module ABI versions:
[    51.958] 	X.Org ANSI C Emulation: 0.4
[    51.958] 	X.Org Video Driver: 23.0
[    51.958] 	X.Org XInput driver : 24.1
[    51.958] 	X.Org Server Extension : 10.0
[    51.958] (++) using VT number 1

[    51.958] (--) controlling tty is VT number 1, auto-enabling KeepTty
[    51.960] (II) systemd-logind: took control of session /org/freedesktop/login1/session/c1
[    51.960] (II) xfree86: Adding drm device (/dev/dri/card0)
[    51.961] (II) systemd-logind: got fd for /dev/dri/card0 226:0 fd 11 paused 0
[    51.964] (--) PCI:*(0:11:0:0) 10de:13c2:3842:2974 rev 161, Mem @ 0xfc000000/16777216, 0xe0000000/268435456, 0xf0000000/33554432, I/O @ 0x0000e000/128, BIOS @ 0x????????/131072
[    51.964] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[    51.964] (II) LoadModule: "glx"
[    51.964] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[    51.965] (II) Module glx: vendor="X.Org Foundation"
[    51.965] 	compiled for 1.19.5, module version = 1.0.0
[    51.965] 	ABI class: X.Org Server Extension, version 10.0
[    51.965] (II) LoadModule: "nvidia"
[    51.965] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
[    51.965] (II) Module nvidia: vendor="NVIDIA Corporation"
[    51.965] 	compiled for 4.0.2, module version = 1.0.0
[    51.965] 	Module class: X.Org Video Driver
[    51.965] (II) NVIDIA dlloader X Driver  387.22  Wed Oct 25 22:14:47 PDT 2017
[    51.965] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[    51.965] (II) systemd-logind: releasing fd for 226:0
[    51.966] (II) Loading sub module "fb"
[    51.966] (II) LoadModule: "fb"
[    51.966] (II) Loading /usr/lib/xorg/modules/libfb.so
[    51.966] (II) Module fb: vendor="X.Org Foundation"
[    51.966] 	compiled for 1.19.5, module version = 1.0.0
[    51.966] 	ABI class: X.Org ANSI C Emulation, version 0.4
[    51.966] (II) Loading sub module "wfb"
[    51.966] (II) LoadModule: "wfb"
[    51.966] (II) Loading /usr/lib/xorg/modules/libwfb.so
[    51.966] (II) Module wfb: vendor="X.Org Foundation"
[    51.966] 	compiled for 1.19.5, module version = 1.0.0
[    51.966] 	ABI class: X.Org ANSI C Emulation, version 0.4
[    51.966] (II) Loading sub module "ramdac"
[    51.966] (II) LoadModule: "ramdac"
[    51.966] (II) Module "ramdac" already built-in
[    52.125] (EE) NVIDIA: Failed to initialize the NVIDIA kernel module. Please see the
[    52.125] (EE) NVIDIA:     system's kernel log for additional error messages and
[    52.125] (EE) NVIDIA:     consult the NVIDIA README for details.
[    52.125] (EE) No devices detected.
[    52.125] (EE) 
Fatal server error:
[    52.125] (EE) no screens found(EE) 
[    52.125] (EE) 
Please consult the The X.Org Foundation support 
	 at http://wiki.x.org
 for help. 
[    52.125] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[    52.125] (EE) 
[    52.177] (EE) Server terminated with error (1). Closing log file.

Offline

#8 2017-11-10 16:44:20

validifyed
Member
Registered: 2017-11-10
Posts: 5

Re: [Solved] Nvidia default configs crash xserver on startup

Just removed an old modprobe dotfile that I had carried over from my old install and nvidia-settings now seems to be working fine. Ill just go ahead and forgo further validation and simply mark the topic as solved.

Thanks for the help. Appreciate it.

Offline

Board footer

Powered by FluxBB