You are not logged in.
Hi everyone,
After the update 5.7.* of the linux kernel (and nvidia driver 440.82.21+), at boot I get a black screen with a never-ending list of audit, lightdm does not start. If I switch to a different tty I can easily login, but cannot start Xorg. After googling about the problem I've found out that Xorg failed to initialize the NVIDIA kernel module, but all the post I've found about this problem are quite vague and, in many cases, different from my exact problem. Furthermore I don't know much about the linux kernel in general, and copying pasting commands from a forum does not seems like the right thing to do, at least imo.
This is the output of
lspci | grep -e VGA -e 3D
01:00.0 VGA compatible controller: NVIDIA Corporation GP107 [GeForce GTX 1050 Ti] (rev a1)
07:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Raven Ridge [Radeon Vega Series / Radeon Vega Mobile Series] (rev c8)and this is the Xorg.0.log file
[ 183.345] (WW) Failed to open protocol names file lib/xorg/protocol.txt
[ 183.346]
X.Org X Server 1.20.8
X Protocol Version 11, Revision 0
[ 183.346] Build Operating System: Linux Arch Linux
[ 183.347] Current Operating System: Linux archBook 5.6.15-arch1-1 #1 SMP PREEMPT Wed, 27 May 2020 23:42:26 +0000 x86_64
[ 183.347] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=78aa6f20-aece-46ef-9aab-48dac5f79eb7 rw loglevel=3 quiet
[ 183.349] Build Date: 05 May 2020 05:08:17AM
[ 183.350]
[ 183.352] Current version of pixman: 0.40.0
[ 183.354] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 183.354] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 183.359] (==) Log file: "/var/log/Xorg.0.log", Time: Mon Jul 13 14:30:34 2020
[ 183.360] (==) Using config file: "/etc/X11/xorg.conf"
[ 183.362] (==) Using config directory: "/etc/X11/xorg.conf.d"
[ 183.363] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 183.363] (==) ServerLayout "Layout0"
[ 183.363] (**) |-->Screen "Screen0" (0)
[ 183.363] (**) | |-->Monitor "Monitor0"
[ 183.363] (**) | |-->Device "Device0"
[ 183.363] (**) |-->Input Device "Keyboard0"
[ 183.363] (**) |-->Input Device "Mouse0"
[ 183.363] (**) Option "Xinerama" "0"
[ 183.363] (==) Automatically adding devices
[ 183.363] (==) Automatically enabling devices
[ 183.363] (==) Automatically adding GPU devices
[ 183.363] (==) Automatically binding GPU devices
[ 183.363] (==) Max clients allowed: 256, resource mask: 0x1fffff
[ 183.363] (WW) The directory "/usr/share/fonts/misc" does not exist.
[ 183.363] Entry deleted from font path.
[ 183.363] (WW) The directory "/usr/share/fonts/OTF" does not exist.
[ 183.363] Entry deleted from font path.
[ 183.363] (WW) The directory "/usr/share/fonts/Type1" does not exist.
[ 183.363] Entry deleted from font path.
[ 183.363] (==) FontPath set to:
/usr/share/fonts/TTF,
/usr/share/fonts/100dpi,
/usr/share/fonts/75dpi
[ 183.363] (==) ModulePath set to "/usr/lib/xorg/modules"
[ 183.363] (WW) Hotplugging is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.
[ 183.364] (WW) Disabling Keyboard0
[ 183.364] (WW) Disabling Mouse0
[ 183.364] (II) Module ABI versions:
[ 183.364] X.Org ANSI C Emulation: 0.4
[ 183.364] X.Org Video Driver: 24.1
[ 183.364] X.Org XInput driver : 24.1
[ 183.364] X.Org Server Extension : 10.0
[ 183.364] (--) using VT number 1
[ 183.364] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
[ 183.369] (--) PCI:*(1@0:0:0) 10de:1c82:1043:8627 rev 161, Mem @ 0xf6000000/16777216, 0xc0000000/268435456, 0xd0000000/33554432, I/O @ 0x0000f000/128, BIOS @ 0x????????/131072
[ 183.369] (--) PCI: (7@0:0:0) 1002:15dd:1002:15dd rev 200, Mem @ 0xe0000000/268435456, 0xf0000000/2097152, 0xf7500000/524288, I/O @ 0x0000d000/256
[ 183.369] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[ 183.369] (II) LoadModule: "glx"
[ 183.369] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[ 183.371] (II) Module glx: vendor="X.Org Foundation"
[ 183.371] compiled for 1.20.8, module version = 1.0.0
[ 183.371] ABI class: X.Org Server Extension, version 10.0
[ 183.371] (II) LoadModule: "nvidia"
[ 183.371] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
[ 183.371] (II) Module nvidia: vendor="NVIDIA Corporation"
[ 183.371] compiled for 1.6.99.901, module version = 1.0.0
[ 183.371] Module class: X.Org Video Driver
[ 183.371] (II) NVIDIA dlloader X Driver 450.57 Sun Jul 5 14:40:23 UTC 2020
[ 183.371] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[ 183.374] (II) Loading sub module "fb"
[ 183.374] (II) LoadModule: "fb"
[ 183.375] (II) Loading /usr/lib/xorg/modules/libfb.so
[ 183.375] (II) Module fb: vendor="X.Org Foundation"
[ 183.375] compiled for 1.20.8, module version = 1.0.0
[ 183.375] ABI class: X.Org ANSI C Emulation, version 0.4
[ 183.375] (II) Loading sub module "wfb"
[ 183.375] (II) LoadModule: "wfb"
[ 183.375] (II) Loading /usr/lib/xorg/modules/libwfb.so
[ 183.375] (II) Module wfb: vendor="X.Org Foundation"
[ 183.375] compiled for 1.20.8, module version = 1.0.0
[ 183.375] ABI class: X.Org ANSI C Emulation, version 0.4
[ 183.375] (II) Loading sub module "ramdac"
[ 183.375] (II) LoadModule: "ramdac"
[ 183.375] (II) Module "ramdac" already built-in
[ 183.379] (EE) NVIDIA: Failed to initialize the NVIDIA kernel module. Please see the
[ 183.379] (EE) NVIDIA: system's kernel log for additional error messages and
[ 183.379] (EE) NVIDIA: consult the NVIDIA README for details.
[ 183.379] (EE) No devices detected.
[ 183.379] (EE)
Fatal server error:
[ 183.379] (EE) no screens found(EE)
[ 183.379] (EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
[ 183.379] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[ 183.379] (EE)
[ 183.384] (EE) Server terminated with error (1). Closing log file.I've also noted (following the Xorg wiki https://www.x.org/wiki/NVIDIAProprietaryDriver/) that in /dev there is no nvidia* file.
Hope someone can help me with this.
Thank you all in advance
Last edited by Daiti (2020-07-14 17:28:35)
Offline
You aren't running the 5.7.* kernel. Are you holding back kernel updates?
Online
I'm actually using linux 5.7.7. The output of
$ uname -r
5.7.7-arch1-1Last edited by Daiti (2020-07-13 14:16:56)
Offline
[ 183.347] Current Operating System: Linux archBook 5.6.15-arch1-1 #1 SMP PREEMPT Wed, 27 May 2020 23:42:26 +0000 x86_64
Not in that log you aren't.
Online
What can I do about that? I just updated with
pacman -Syulikes every other time.
Offline
Upload the system journal ("sudo journalctl -b") and your pacman log, first link in my signature on how to do that w/o a graphical interface.
Online
Here's the system journal: http://ix.io/2rxT
What do you mean by "pacman log"?
Last edited by Daiti (2020-07-13 16:57:04)
Offline
Jul 13 15:46:51 archBook kernel: Linux version 5.7.7-arch1-1 (linux@archlinux) (gcc version 10.1.0 (GCC), GNU ld (GNU Binutils) 2.34.0) #1 SMP PREEMPT Wed, 01 Jul 2020 14:53:16 +0000The xorg log is somehow dated => post a newer log.
The nvidia kernel module loads, but the amdgpu module takes a harder-than-expected landing.
How exactly do you start Xorg?
Is the nvidia-settings generated xorg.conf still there? What if you move it away?
Try https://wiki.archlinux.org/index.php/NV … de_setting as well as https://wiki.archlinux.org/index.php/Ke … _KMS_start (incl. for the nvidia modules)
Also ensure to read the 3rd link in my signature to ensure that's not getting in the way.
Online
In the beginning I used to start xorg by xinit, then I started using lightdm to log directly in the graphical environment.
Fast Boot was already disabled.
I forgot to mention that the pc does not reboot or shutdown "normally", it get stuck on a series of audit and no matter how long I wait, the only way to reboot is to force shutdown by pressing the power button.
After a reboot I've logged in tty2 and cat the Xorg.0.log file. The Current Operating System is still 5.16, not 5.7. I tried starting Xorg manually (xinit) and got as output:
xinit: giving up
xinit: unable to connect to X server: Connection refused
waiting for X server to shut down ..........
xinit: X server slow to shut down, sending KILL signal
waiting for server to die ...
xinit: X server refuses to dieXorg.0.log is still the same.
Is the nvidia-settings generated xorg.conf still there? What if you move it away?
Sorry but I don't understand what I'm supposed to do.
Should I still follow the instructions in the links you posted?
Last edited by Daiti (2020-07-13 17:33:05)
Offline
[ 183.360] (==) Using config file: "/etc/X11/xorg.conf"I meant to move away that file.
xinit logs Xorg.0.log into your $HOME, see https://wiki.archlinux.org/index.php/Xorg#General
If there's no updated log either, check the integrity of the installed packages:
LC_ALL=C pacman -Qkk | grep -v ', 0 altered files'Online
I meant to move away that file.
Moving the file changes nothing.
There is no Xorg.n.log file in my $HOME directory.
Integrity check output:
audit: 155 total files, 4 altered files
bash: 241 total files, 1 altered file
backup file: filesystem: /etc/fstab (Modification time mismatch)
backup file: filesystem: /etc/fstab (Size mismatch)
backup file: filesystem: /etc/group (Modification time mismatch)
backup file: filesystem: /etc/group (Size mismatch)
backup file: filesystem: /etc/gshadow (Modification time mismatch)
backup file: filesystem: /etc/gshadow (Size mismatch)
backup file: filesystem: /etc/hosts (Modification time mismatch)
backup file: filesystem: /etc/hosts (Size mismatch)
backup file: filesystem: /etc/passwd (Modification time mismatch)
backup file: filesystem: /etc/passwd (Size mismatch)
backup file: filesystem: /etc/resolv.conf (Modification time mismatch)
backup file: filesystem: /etc/resolv.conf (Size mismatch)
backup file: filesystem: /etc/shadow (Modification time mismatch)
backup file: filesystem: /etc/shadow (Size mismatch)
backup file: filesystem: /etc/shells (Modification time mismatch)
backup file: filesystem: /etc/shells (Size mismatch)
ghc-libs: 1411 total files, 1 altered file
backup file: glibc: /etc/locale.gen (Modification time mismatch)
backup file: glibc: /etc/locale.gen (Size mismatch)
backup file: grub: /etc/default/grub (Modification time mismatch)
backup file: grub: /etc/default/grub (Size mismatch)
gvfs: 324 total files, 1 altered file
java-runtime-common: 21 total files, 2 altered files
backup file: lightdm: /etc/lightdm/lightdm.conf (Modification time mismatch)
backup file: lightdm: /etc/lightdm/lightdm.conf (Size mismatch)
backup file: lightdm: /etc/pam.d/lightdm (Modification time mismatch)
backup file: lightdm: /etc/pam.d/lightdm (Size mismatch)
lightdm: 388 total files, 1 altered file
linux: 6917 total files, 10 altered files
backup file: pacman: /etc/pacman.conf (Modification time mismatch)
backup file: pacman: /etc/pacman.conf (Size mismatch)
backup file: pacman-mirrorlist: /etc/pacman.d/mirrorlist (Modification time mismatch)
backup file: pacman-mirrorlist: /etc/pacman.d/mirrorlist (Size mismatch)
pacman-mirrorlist: 3 total files, 1 altered file
polkit: 198 total files, 1 altered file
shadow: 558 total files, 2 altered files
spotify: 185 total files, 32 altered files
backup file: sudo: /etc/sudoers (Modification time mismatch)
backup file: sudo: /etc/sudoers (Size mismatch)
systemd: 1702 total files, 2 altered files
backup file: texlive-core: /etc/texmf/web2c/fmtutil.cnf (Modification time mismatch)
backup file: texlive-core: /etc/texmf/web2c/fmtutil.cnf (Size mismatch)
backup file: ufw: /etc/ufw/ufw.conf (Modification time mismatch)
backup file: ufw: /etc/ufw/ufw.conf (Size mismatch)
backup file: ufw: /etc/ufw/user.rules (Modification time mismatch)
backup file: ufw: /etc/ufw/user.rules (Size mismatch)
backup file: ufw: /etc/ufw/user6.rules (Modification time mismatch)
backup file: ufw: /etc/ufw/user6.rules (Size mismatch)Offline
Did you read the link and look in ~/.local/share/xorg/ ?
Online
I've read the link and:
1) The log in /var/log is the one posted above
2) I don't have Xorg log file in $HOME
3) I don't have Xorg log file in $HOME/.local/share (matter of fact, there is no xorg forlder either)
Offline
"That's bad"
Try to run "Xorg" directly (no xinit etc.) and see whether you get any output. In doubt strace the call (assuming it will stall or crash right away)
Online
Nothing happens, just the cursor blinking.
Offline
Hence
In doubt strace the call (assuming it will stall or crash right away)
Online
Anything else I can try?
Offline
The strace will hopefully hint us where it hangs?
Online
Last line of strace Xorg is:
openat(AT_FDCWD, "/dev/dri/card0", 0_RDWROffline
I assume this relates to the amdgpu crash - can you disable that chip in your BIOS/UEFI?
Online
I think I can. In the BIOS/UEFI I have the choice to Disable the Integraded Graphics. Is that what I need to do?
Offline
Yup. Then check the journal on whether amdgpu still loads and/or crashes and retry xinit.
Online
Here's the journalctl -b log: http://ix.io/2ryz
It looks like there is still something off:
Jul 13 21:28:36 archBook kernel: [drm:amdgpu_get_bios [amdgpu]] *ERROR* Unable to locate a BIOS ROM
Jul 13 21:28:36 archBook kernel: amdgpu 0000:07:00.0: Fatal error during GPU init
Jul 13 21:28:36 archBook kernel: [drm] amdgpu: finishing device.Unfortunately xinit stops with the same "error" message previously reported.
Offline
Same error, https://bbs.archlinux.org/viewtopic.php … 8#p1905518 ?
Online
xinit stops with
xinit: giving up
xinit: unable to connect to X server: Connection refused
waiting for X server to shut down ..........
xinit: X server slow to shut down, sending KILL signal
waiting for server to die ...
xinit: X server refuses to dieOffline