Some time ago I updated packages and after that my PC doesn’t boot. After GRUB menu there was a black screen. No cursor, no messages and no possibility to switch to another TTY with Ctrl+Alt+Fn. I could only press Ctrl+Alt+Del to reboot. Adding “3” to the line with “linux” in the GRUB menu didn’t help either - still black screen. But I have a USB live flash and I can boot with proprietary drivers and use chroot
.
I guess the problem is caused by Nvidia driver issues based on the error log:
[manjaro /]# journalctl --boot=-1 --priority=3 --catalog --no-pager
Oct 25 13:01:12 pc systemd-modules-load[328]: Failed to find module 'nvidia'
Oct 25 13:01:12 pc systemd-modules-load[328]: Failed to find module 'nvidia-drm'
Oct 25 13:01:12 pc systemd-modules-load[328]: Failed to find module 'nvidia-uvm'
Oct 25 13:01:15 pc sddm[866]: Failed to read display number from pipe
Oct 25 13:01:17 pc sddm[866]: Failed to read display number from pipe
Oct 25 13:01:19 pc sddm[866]: Failed to read display number from pipe
Oct 25 13:01:19 pc sddm[866]: Could not start Display server on vt 2
Oct 25 13:15:19 pc dbus-broker-launch[743]: Activation request for 'org.freedesktop.nm_dispatcher' failed.
What I have already tried:
- Update packages/system
pacman-mirrors -c all
pacman-mirrors -f 5
pacman -Syyuu && yay -Syyuu
pacman -S linux linux-firmware
pacman -S $(pacman -Qnq)
pamac upgrade
pamac upgrade --aur --devel
- Reconfigure GRUB
grub-install /dev/sda
grub-mkconfig -o /boot/grub/grub.cfg
mkinitcpio -P -k 5.15.167-1-MANJARO
update-grub
- Reinstall Nvidia drivers and remove free drivers
mhwd -r pci video-nvidia-390xx
mhwd -a pci nonfree 0300
mhwd -f -i pci video-nvidia-390xx
mhwd -r pci video-linux
- Find module ‘nvidia’ / Change nvidia drivers
If I install the drivers that are suitable for the system (i.e. video-nvidia-390xx
), then after reboot I get the error mentioned above Failed to find module 'nvidia'
.
Here’s what else:
[manjaro /]$ nvidia-modprobe # nothing happens
[manjaro /]$ modprobe -S 5.15.167-1-MANJARO nvidia
modprobe: FATAL: Module nvidia not found in directory /lib/modules/5.15.167-1-MANJARO
[manjaro /]$ ls -lhA /lib/modules/5.15.167-1-MANJARO/extramodules/
total 264K
-rw-r--r-- 1 root root 196K Sep 28 03:02 vboxdrv.ko.xz
-rw-r--r-- 1 root root 23K Sep 28 03:02 vboxnetadp.ko.xz
-rw-r--r-- 1 root root 43K Sep 28 03:02 vboxnetflt.ko.xz
It turns out that the error Failed to find module 'nvidia'
occurs because the required module really does not exist.
Here’s what’s interesting. If I remove suitable drivers and install any/latest? nvidia, the module will be found:
[manjaro /]$ mhwd -r pci video-nvidia-390xx && mhwd -i pci video-nvidia
[manjaro /]$ nvidia-modprobe
[manjaro /]$ modprobe -S 5.15.167-1-MANJARO nvidia
[manjaro /]$ ls -lhA /lib/modules/5.15.167-1-MANJARO/extramodules/
total 51M
-rw-r--r-- 1 root root 891K Sep 20 04:13 nvidia-drm.ko.xz
-rw-r--r-- 1 root root 695K Sep 20 04:13 nvidia-modeset.ko.xz
-rw-r--r-- 1 root root 59K Sep 20 04:13 nvidia-peermem.ko.xz
-rw-r--r-- 1 root root 8.6M Sep 20 04:13 nvidia-uvm.ko.xz
-rw-r--r-- 1 root root 40M Sep 20 04:13 nvidia.ko.xz
-rw-r--r-- 1 root root 196K Sep 28 03:02 vboxdrv.ko.xz
-rw-r--r-- 1 root root 23K Sep 28 03:02 vboxnetadp.ko.xz
-rw-r--r-- 1 root root 43K Sep 28 03:02 vboxnetflt.ko.xz
But on next boot I get the following error:
Oct 27 15:20:00 pc kernel: NVRM: The NVIDIA GeForce GTX 550 Ti GPU installed in this system is
NVRM: supported through the NVIDIA 390.xx Legacy drivers. Please
NVRM: visit http://www.nvidia.com/object/unix.html for more
NVRM: information. The 550.120 NVIDIA driver will ignore
NVRM: this GPU. Continuing probe...
Oct 27 15:20:03 pc sddm[867]: Failed to read display number from pipe
Oct 27 15:20:06 pc sddm[867]: Failed to read display number from pipe
Oct 27 15:20:08 pc sddm[867]: Failed to read display number from pipe
Oct 27 15:20:08 pc sddm[867]: Could not start Display server on vt 2
Oct 27 15:38:12 pc dbus-broker-launch[746]: Activation request for 'org.freedesktop.nm_dispatcher' failed.
- Copy modules from USB
$ cp /lib/modules/5.15.49-1-MANJARO/extramodules/nvidia* /mnt/lib/modules/5.15.167-1-MANJARO/extramodules/
No difference from the original error.
- Switch to free drivers
mhwd -r pci video-nvidia-390xx
mhwd -r pci video-nvidia
mhwd -a pci free 0300
Also doesn’t help:
[manjaro /]# journalctl --boot=-1 --priority=3 --catalog --no-pager
Oct 28 12:44:24 pc sddm[866]: Failed to read display number from pipe
Oct 28 12:44:26 pc sddm[866]: Failed to read display number from pipe
Oct 28 12:44:28 pc sddm[866]: Failed to read display number from pipe
Oct 28 12:44:28 pc sddm[866]: Could not start Display server on vt 2
Oct 28 13:33:20 pc kernel: sd 7:0:0:0: [sdg] No Caching mode page found
Oct 28 13:33:20 pc kernel: sd 7:0:0:0: [sdg] Assuming drive cache: write through
Oct 28 13:33:25 pc dbus-broker-launch[741]: Activation request for 'org.freedesktop.nm_dispatcher' failed.
Maybe this doesn’t help me because the linux kernel version on the USB and the main system are slightly different:
From live USB:
[manjaro /]$ mhwd-kernel --listinstalled
Currently running: 5.15.49-1-MANJARO (linux515)
The following kernels are installed in your system:
* linux515
From TTY:
$ mhwd-kernel --listinstalled
Currently running: 5.15.167-1-MANJARO (linux515)
The following kernels are installed in your system:
* linux515
By the way, I managed to get the TTY after boot several times, but now it’s gone again. I don’t know what it depends on. Maybe it happened between driver reinstallations (¯_(ツ)_/¯).
Additional info:
[manjaro /]$ mhwd-kernel --list
available kernels:
* linux419
* linux510
* linux515
* linux54
* linux61
* linux610
* linux611
* linux612
* linux66
* linux61-rt
* linux610-rt
* linux611-rt
* linux66-rt
[manjaro /]$ mhwd --list
> 0000:03:00.0 (0200:10ec:8168) Network controller Realtek Semiconductor Co., Ltd.:
--------------------------------------------------------------------------------
NAME VERSION FREEDRIVER TYPE
--------------------------------------------------------------------------------
network-r8168 2023.09.12 true PCI
> 0000:01:00.0 (0300:10de:1244) Display controller nVidia Corporation:
--------------------------------------------------------------------------------
NAME VERSION FREEDRIVER TYPE
--------------------------------------------------------------------------------
video-nvidia-390xx 2023.03.23 false PCI
video-linux 2024.05.06 true PCI
video-modesetting 2020.01.13 true PCI
video-vesa 2017.03.12 true PCI
> 0000:00:02.0 (0380:8086:0102) Display controller Intel Corporation:
--------------------------------------------------------------------------------
NAME VERSION FREEDRIVER TYPE
--------------------------------------------------------------------------------
video-linux 2024.05.06 true PCI
[manjaro /]$ mhwd --listinstalled
> Installed PCI configs:
--------------------------------------------------------------------------------
NAME VERSION FREEDRIVER TYPE
--------------------------------------------------------------------------------
video-nvidia-390xx 2023.03.23 false PCI
[manjaro /]$ mhwd-gpu --check
xorg configuration symlink valid...
[manjaro /]$ mhwd-gpu --status
:: status
xorg configuration file: '/etc/X11/mhwd.d/nvidia.conf'
[manjaro /]$ inxi -G --tty
Graphics:
Device-1: Intel 2nd Generation Core Processor Family Integrated Graphics driver: i915 v: kernel
Device-2: NVIDIA GF116 [GeForce GTX 550 Ti] driver: nvidia v: 390.151
Display: server: X.org v: 1.21.1.13 with: Xwayland v: 24.1.2 driver: X: loaded: N/A
failed: nvidia gpu: i915
API: EGL v: 1.5 drivers: crocus,kms_swrast,swrast platforms: gbm,surfaceless,device
API: OpenGL v: 4.5 compat-v: 3.3 vendor: mesa v: 24.2.4-arch1.0.1 note: incomplete (EGL
sourced) renderer: llvmpipe (LLVM 18.1.8 256 bits), Mesa Intel HD Graphics 2000 (SNB GT1)
API: Vulkan Message: No Vulkan data available.
[manjaro /]$ pacman-mirrors -G
stable
[manjaro /]$ cat /etc/mkinitcpio.conf | grep -v "#"
MODULES=()
BINARIES=()
FILES=()
HOOKS=(base udev autodetect modconf kms block keyboard keymap consolefont filesystems fsck)
[manjaro /]$ cat /etc/modprobe.d/mhwd-gpu.conf
blacklist nouveau
blacklist ttm
blacklist drm_kms_helper
blacklist drm
[manjaro /]$ cat /etc/modules-load.d/mhwd-gpu.conf
nvidia
nvidia-drm
[manjaro /]$ cat /lib/modprobe.d/nvidia-390xx-utils.conf
blacklist nouveau
[manjaro /]$ cat /lib/modules-load.d/nvidia-390xx-utils.conf
nvidia-uvm
[manjaro /]$ ls -lhA /boot/*
-rw------- 1 root root 52M Oct 29 12:28 /boot/initramfs-5.15-x86_64-fallback.img
-rw------- 1 root root 12M Oct 29 12:27 /boot/initramfs-5.15-x86_64.img
-rw-r--r-- 1 root root 7.8M Sep 10 21:18 /boot/intel-ucode.img
-rw-r--r-- 1 root root 23 Sep 12 14:36 /boot/linux515-x86_64.kver
-rw-r--r-- 1 root root 11M Oct 22 14:22 /boot/vmlinuz-5.15-x86_64
/boot/grub:
total 48K
drwxr-xr-x 2 root root 4.0K Jun 25 2022 fonts
-rw------- 1 root root 8.2K Oct 29 12:32 grub.cfg
-rw-r--r-- 1 root root 1.0K Jun 25 2022 grubenv
drwxr-xr-x 2 root root 20K Oct 24 10:24 i386-pc
drwxr-xr-x 2 root root 4.0K Oct 24 10:24 locale
drwxr-xr-x 3 root root 4.0K Jun 25 2022 themes
/boot/memtest86+:
total 148K
-rw-r--r-- 1 root root 145K Jan 9 2024 memtest.bin
[manjaro /]$ ls -lhA /etc/mkinitcpio.d/*
-rw-r--r-- 1 root root 396 Jun 24 2022 /etc/mkinitcpio.d/linux515.preset
Edit:
The issue was solved by changing the kernel version from 5.15 to 6.1