Long Black screen on xorg login

Everytime I turn on my computer, I login. then I get a black screen and an ‘X’ cursor for about 5 straight minutes and I have to wait. What is this waiting period for? Im using gnome version of fedora. I must use xorg if I want to use freecad so why does the screen have to be unusable for 5 minutes everytime??

5 minutes wait is not normal even with a very old, slow system.

Use journalctl in a terminal to determine what taking excessive time. Long delays at boot have been experienced by users who were in the habit of just switching off the power bar, resulting in an improper shutdown and requiring filesystem repair (which can fail and leave the system in an unusable state, so should be avoided) with fsck at boot. In the distant past, you could hear the disk activity, but because disks were small, it still didn’t take 5 minutes.

Using journalctlcan take some effort – it captures enormous detail and generates very long lines. man journalctl may set a new record for the the number of lines, but is a reliable reference. There are many "How to Use Journalctl) (some AI generated?) web sites – if you use one be sure to you understand the examples by consulting the man page.

1 Like

Admittedly I do unsafe power offs when I wake the system and the Gnome Lock Screen glitches and shows a black screen for infinity. Then I have to turn it off. In general gnome has alot of quirks. Fsck happens as the ext4 partitions are mounted automatically. Since then I have disabled the gnome built in lock screen and in place use xset dpms force off.

Here is journalctl; appears I have some errors:

Mar 05 13:47:30 voidsurfer systemd[1962]: Queued start job for default target default.target.
Mar 05 13:47:30 voidsurfer systemd[1962]: Created slice app.slice - User Application Slice.
Mar 05 13:47:30 voidsurfer systemd[1962]: Started grub-boot-success.timer - Mark boot as successful after the user session has run 2 minutes.
Mar 05 13:47:30 voidsurfer systemd[1962]: Started systemd-tmpfiles-clean.timer - Daily Cleanup of User's Temporary Directories.
Mar 05 13:47:30 voidsurfer systemd[1962]: Reached target paths.target - Paths.
Mar 05 13:47:30 voidsurfer systemd[1962]: Reached target timers.target - Timers.
Mar 05 13:47:30 voidsurfer systemd[1962]: Starting dbus.socket - D-Bus User Message Bus Socket...
Mar 05 13:47:30 voidsurfer systemd[1962]: Listening on pipewire-pulse.socket - PipeWire PulseAudio.
Mar 05 13:47:30 voidsurfer systemd[1962]: Listening on pipewire.socket - PipeWire Multimedia System Sockets.
Mar 05 13:47:30 voidsurfer systemd[1962]: Starting systemd-tmpfiles-setup.service - Create User's Volatile Files and Directories...
Mar 05 13:47:30 voidsurfer systemd[1962]: Listening on dbus.socket - D-Bus User Message Bus Socket.
Mar 05 13:47:30 voidsurfer systemd[1962]: Reached target sockets.target - Sockets.
Mar 05 13:47:30 voidsurfer systemd[1962]: Finished systemd-tmpfiles-setup.service - Create User's Volatile Files and Directories.
Mar 05 13:47:30 voidsurfer systemd[1962]: Reached target basic.target - Basic System.
Mar 05 13:47:30 voidsurfer systemd[1962]: Reached target default.target - Main User Target.
Mar 05 13:47:30 voidsurfer systemd[1962]: Startup finished in 152ms.
Mar 05 13:47:31 voidsurfer /usr/libexec/gdm-x-session[2032]: _XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed
Mar 05 13:47:31 voidsurfer /usr/libexec/gdm-x-session[2032]: _XSERVTransMakeAllCOTSServerListeners: server already running
Mar 05 13:47:31 voidsurfer /usr/libexec/gdm-x-session[2032]: (--) Log file renamed from "/home/will/.local/share/xorg/Xorg.pid-2032.log" to "/home/will/.local/share/xorg/Xorg.1.log"
Mar 05 13:47:31 voidsurfer /usr/libexec/gdm-x-session[2032]: X.Org X Server 1.20.14
Mar 05 13:47:31 voidsurfer /usr/libexec/gdm-x-session[2032]: X Protocol Version 11, Revision 0
Mar 05 13:47:31 voidsurfer /usr/libexec/gdm-x-session[2032]: Build Operating System:  6.6.9-100.fc38.x86_64
Mar 05 13:47:31 voidsurfer /usr/libexec/gdm-x-session[2032]: Current Operating System: Linux voidsurfer 6.7.7-200.fc39.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Mar  1 16:53:59 UTC 2024 x86_64
Mar 05 13:47:31 voidsurfer /usr/libexec/gdm-x-session[2032]: Kernel command line: BOOT_IMAGE=(hd2,gpt2)/boot/vmlinuz-6.7.7-200.fc39.x86_64 root=UUID=7e217191-f35f-45b5-8849-268c22c03b72 ro rd.driver.blacklist=nouveau modprobe.blacklist=nouveau rhgb quiet rd.driver.blackli>
Mar 05 13:47:31 voidsurfer /usr/libexec/gdm-x-session[2032]: Build Date: 19 January 2024  12:00:00AM
Mar 05 13:47:31 voidsurfer /usr/libexec/gdm-x-session[2032]: Build ID: xorg-x11-server 1.20.14-30.fc39
Mar 05 13:47:31 voidsurfer /usr/libexec/gdm-x-session[2032]: Current version of pixman: 0.42.2
Mar 05 13:47:31 voidsurfer /usr/libexec/gdm-x-session[2032]:         Before reporting problems, check http://wiki.x.org
Mar 05 13:47:31 voidsurfer /usr/libexec/gdm-x-session[2032]:         to make sure that you have the latest version.
Mar 05 13:47:31 voidsurfer /usr/libexec/gdm-x-session[2032]: Markers: (--) probed, (**) from config file, (==) default setting,
Mar 05 13:47:31 voidsurfer /usr/libexec/gdm-x-session[2032]:         (++) from command line, (!!) notice, (II) informational,
Mar 05 13:47:31 voidsurfer /usr/libexec/gdm-x-session[2032]:         (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
Mar 05 13:47:31 voidsurfer /usr/libexec/gdm-x-session[2032]: (==) Log file: "/home/will/.local/share/xorg/Xorg.1.log", Time: Tue Mar  5 13:47:31 2024
Mar 05 13:47:31 voidsurfer /usr/libexec/gdm-x-session[2032]: (==) Using config directory: "/etc/X11/xorg.conf.d"
Mar 05 13:47:31 voidsurfer /usr/libexec/gdm-x-session[2032]: (==) Using system config directory "/usr/share/X11/xorg.conf.d"
Mar 05 13:47:31 voidsurfer /usr/libexec/gdm-x-session[2032]: (==) ServerLayout "layout"
Mar 05 13:47:31 voidsurfer /usr/libexec/gdm-x-session[2032]: (==) No screen section available. Using defaults.
Mar 05 13:47:31 voidsurfer /usr/libexec/gdm-x-session[2032]: (**) |-->Screen "Default Screen Section" (0)
Mar 05 13:47:31 voidsurfer /usr/libexec/gdm-x-session[2032]: (**) |   |-->Monitor "<default monitor>"
Mar 05 13:47:31 voidsurfer /usr/libexec/gdm-x-session[2032]: (==) No monitor specified for screen "Default Screen Section".
Mar 05 13:47:31 voidsurfer /usr/libexec/gdm-x-session[2032]:         Using a default monitor configuration.
Mar 05 13:47:31 voidsurfer /usr/libexec/gdm-x-session[2032]: (==) Automatically adding devices
Mar 05 13:47:31 voidsurfer /usr/libexec/gdm-x-session[2032]: (==) Automatically enabling devices
Mar 05 13:47:31 voidsurfer /usr/libexec/gdm-x-session[2032]: (==) Automatically adding GPU devices
Mar 05 13:47:31 voidsurfer /usr/libexec/gdm-x-session[2032]: (==) Automatically binding GPU devices
Mar 05 13:47:31 voidsurfer /usr/libexec/gdm-x-session[2032]: (==) Max clients allowed: 256, resource mask: 0x1fffff
Mar 05 13:47:31 voidsurfer /usr/libexec/gdm-x-session[2032]: (==) FontPath set to:
Mar 05 13:47:31 voidsurfer /usr/libexec/gdm-x-session[2032]:         catalogue:/etc/X11/fontpath.d,
Mar 05 13:47:31 voidsurfer /usr/libexec/gdm-x-session[2032]:         built-ins
Mar 05 13:47:31 voidsurfer /usr/libexec/gdm-x-session[2032]: (==) ModulePath set to "/usr/lib64/xorg/modules"
Mar 05 13:47:31 voidsurfer /usr/libexec/gdm-x-session[2032]: (II) The server relies on udev to provide the list of input devices.
Mar 05 13:47:31 voidsurfer /usr/libexec/gdm-x-session[2032]:         If no devices become available, reconfigure udev or disable AutoAddDevices.
Mar 05 13:47:31 voidsurfer /usr/libexec/gdm-x-session[2032]: (II) Loader magic: 0x55557b103a80
Mar 05 13:47:31 voidsurfer /usr/libexec/gdm-x-session[2032]: (II) Module ABI versions:
Mar 05 13:47:31 voidsurfer /usr/libexec/gdm-x-session[2032]:         X.Org ANSI C Emulation: 0.4
Mar 05 13:47:31 voidsurfer /usr/libexec/gdm-x-session[2032]:         X.Org Video Driver: 24.1
Mar 05 13:47:31 voidsurfer /usr/libexec/gdm-x-session[2032]:         X.Org XInput driver : 24.1
Mar 05 13:47:31 voidsurfer /usr/libexec/gdm-x-session[2032]:         X.Org Server Extension : 10.0
Mar 05 13:47:31 voidsurfer /usr/libexec/gdm-x-session[2032]: (++) using VT number 2
Mar 05 13:47:31 voidsurfer /usr/libexec/gdm-x-session[2032]: (II) systemd-logind: took control of session /org/freedesktop/login1/session/_32
Mar 05 13:47:31 voidsurfer /usr/libexec/gdm-x-session[2032]: (II) xfree86: Adding drm device (/dev/dri/card1)
Mar 05 13:47:31 voidsurfer /usr/libexec/gdm-x-session[2032]: (II) systemd-logind: got fd for /dev/dri/card1 226:1 fd 15 paused 0
Mar 05 13:47:31 voidsurfer /usr/libexec/gdm-x-session[2032]: (--) PCI:*(1@0:0:0) 10de:2504:3842:3656 rev 161, Mem @ 0xf6000000/16777216, 0x3fe0000000/268435456, 0x3ff0000000/33554432, I/O @ 0x0000e000/128, BIOS @ 0x????????/65536
Mar 05 13:47:31 voidsurfer /usr/libexec/gdm-x-session[2032]: (II) LoadModule: "glx"
Mar 05 13:47:31 voidsurfer /usr/libexec/gdm-x-session[2032]: (II) Loading /usr/lib64/xorg/modules/extensions/libglx.so
Mar 05 13:47:31 voidsurfer /usr/libexec/gdm-x-session[2032]: (II) Module glx: vendor="X.Org Foundation"

~/.local/share/xorg/Xorg.0.log
https://dpaste.org/ahZFK/raw
cant post it here, its way too long

I think it must be nvidia related. for some reason xorg shows its trying to load nvidia module, then nouveau which makes no sense since its blacklisted… and also every other module that could possibly work for my 3060 xc.

If nvidia fails to load there usually is an easily identified reason.

Please post the results of uname -r, dnf list installed \*nvidia\*, and mokutil --sb-state.
Supplement that with sudo dmesg | grep -iE "nvidia|secure" and lsmod | grep -iE "nvidia|nouveau"

Just updated and rebooted, was a near instantaneous login to desktop this time. Im almost certain it will eventually do it again after I say it works, however.

Results

$ uname -r
6.7.11-200.fc39.x86_64

$ dnf list installed *nvidia*
Installed Packages
akmod-nvidia.x86_64 3:550.67-1.fc39 @rpmfusion-nonfree-nvidia-driver
kmod-nvidia-6.7.10-200.fc39.x86_64.x86_64 3:550.67-1.fc39 @@commandline
kmod-nvidia-6.7.11-200.fc39.x86_64.x86_64 3:550.67-1.fc39 @@commandline
kmod-nvidia-6.7.9-200.fc39.x86_64.x86_64 3:550.54.14-2.fc39 @@commandline
libva-nvidia-driver.x86_64 0.0.11-1.fc39 @updates
nvidia-gpu-firmware.noarch 20240312-1.fc39 @updates
nvidia-modprobe.x86_64 3:550.67-1.fc39 @rpmfusion-nonfree-nvidia-driver
nvidia-persistenced.x86_64 3:550.67-1.fc39 @rpmfusion-nonfree-nvidia-driver
nvidia-settings.x86_64 3:550.67-1.fc39 @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia.x86_64 3:550.67-1.fc39 @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-cuda.x86_64 3:550.67-1.fc39 @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-cuda-libs.i686 3:550.67-1.fc39 @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-cuda-libs.x86_64 3:550.67-1.fc39 @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-kmodsrc.x86_64 3:550.67-1.fc39 @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-libs.i686 3:550.67-1.fc39 @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-libs.x86_64 3:550.67-1.fc39 @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-power.x86_64 3:550.67-1.fc39 @rpmfusion-nonfree-nvidia-driver

$ mokutil --sb-state
SecureBoot disabled

sudo dmesg | grep -iE “nvidia|secure”
[ 0.000000] secureboot: Secure boot disabled
[ 0.005595] secureboot: Secure boot disabled
[ 7.637155] input: HDA NVidia HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input19
[ 7.637191] input: HDA NVidia HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input20
[ 7.637228] input: HDA NVidia HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input21
[ 7.637262] input: HDA NVidia HDMI/DP,pcm=9 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input22
[ 8.720579] nvidia: loading out-of-tree module taints kernel.
[ 8.720586] nvidia: module license ‘NVIDIA’ taints kernel.
[ 8.720589] nvidia: module verification failed: signature and/or required key missing - tainting kernel
[ 8.720590] nvidia: module license taints kernel.
[ 9.065124] nvidia-nvlink: Nvlink Core is being initialized, major device number 234
[ 9.066054] nvidia 0000:01:00.0: vgaarb: VGA decodes changed: olddecodes=io+mem,decodes=none:owns=io+mem
[ 9.107469] NVRM: loading NVIDIA UNIX x86_64 Kernel Module 550.67 Tue Mar 12 23:54:15 UTC 2024
[ 9.179817] nvidia_uvm: module uses symbols nvUvmInterfaceDisableAccessCntr from proprietary module nvidia, inheriting taint.
[ 9.304894] nvidia-uvm: Loaded the UVM driver, major device number 510.
[ 9.356963] nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms 550.67 Tue Mar 12 23:29:25 UTC 2024
[ 9.362294] [drm] [nvidia-drm] [GPU ID 0x00000100] Loading driver
[ 10.172917] [drm] Initialized nvidia-drm 0.0.0 20160202 for 0000:01:00.0 on minor 1
[ 10.186188] nvidia 0000:01:00.0: vgaarb: deactivate vga console
[ 10.250876] fbcon: nvidia-drmdrmfb (fb0) is primary device
[ 10.250881] nvidia 0000:01:00.0: [drm] fb0: nvidia-drmdrmfb frame buffer device

$ lsmod | grep -iE “nvidia|nouveau”
nvidia_drm 126976 12
nvidia_modeset 1605632 10 nvidia_drm
nvidia_uvm 6651904 0
nvidia 60370944 157 nvidia_uvm,nvidia_modeset
video 77824 1 nvidia_modeset

You should avoid turning the system off. You can try getting a text console with <Ctrl-Alt F3> or use ssh from another system to investigate the problem and do a clean shutdown. If those don’t work the kernel may have crashed and any damage to filesystems has already occurred.

1 Like

I’m also seeing this issue, but I have an AMD GPU.

It seems to happen roughly 50% of the time when I login with X11, including when I log in after manually locking the screen (not only after boot).

Wayland seems to be unaffected. I just had this happen with Wayland as well.

I only noticed this issue recently, so it could be caused by a recent update.

I will say that I did have my system hang recently and I did force power off as well.

1 Like