You are not logged in.

#1 2024-09-26 18:10:34

imartemy1524
Member
Registered: 2024-09-26
Posts: 1

Failed to initialize NVIDIA drivers from ZEN kernel in rEFInd

I recently tried migrating to zen kernel (BTW waydroid was the only reason), and everything was great except for nvidia drivers: they didn't run. For some reason nouveau was loaded instead, however for default arch kernel this didn't happen.

My configuration:

When I'm booting to zen kernel and run

 lspci -k | grep -A 2 -E "(VGA|3D)"

it gives me next output:

00:02.0 VGA compatible controller: Intel Corporation TigerLake-H GT1 [UHD Graphics] (rev 01)
        DeviceName: Onboard - Video
        Subsystem: Micro-Star International Co., Ltd. [MSI] Device 132e
--
01:00.0 3D controller: NVIDIA Corporation GA107M [GeForce RTX 3050 Ti Mobile] (rev a1)
        Subsystem: Micro-Star International Co., Ltd. [MSI] Device 132e
        Kernel modules: nouveau

While in normal kernel I get next message:

00:02.0 VGA compatible controller: Intel Corporation TigerLake-H GT1 [UHD Graphics] (rev 01)
        DeviceName: Onboard - Video
        Subsystem: Micro-Star International Co., Ltd. [MSI] Device 132e
--
01:00.0 3D controller: NVIDIA Corporation GA107M [GeForce RTX 3050 Ti Mobile] (rev a1)
        Subsystem: Micro-Star International Co., Ltd. [MSI] Device 132e
        Kernel driver in use: nvidia

pacman -Qs nvidia output:

local/egl-gbm 1.1.2-1
    The GBM EGL external platform library
local/egl-wayland 4:1.1.16-1
    EGLStream-based Wayland external platform
local/libnvidia-container 1.16.1-1
    NVIDIA container runtime library
local/libvdpau 1.5-3
    Nvidia VDPAU library
local/libxnvctrl 560.35.03-1
    NVIDIA NV-CONTROL X extension
local/nvidia 560.35.03-6
    NVIDIA drivers for linux
local/nvidia-container-toolkit 1.16.1-3
    NVIDIA container toolkit
local/nvidia-settings 560.35.03-1
    Tool for configuring the NVIDIA graphics driver
local/nvidia-utils 560.35.03-3
    NVIDIA drivers utilities
local/opencl-nvidia 560.35.03-3
    OpenCL implemention for NVIDIA

pacman -Qs linux-{zen,}:

local/linux-zen 6.10.10.zen1-1
    The Linux ZEN kernel and modules
local/linux-zen-headers 6.10.10.zen1-1
    Headers and scripts for building modules for the Linux ZEN kernel

refind.conf (comments removed):

timeout 20

use_nvram false

fold_linux_kernels false

# Added linux-zen here
extra_kernel_version_strings linux-zen,linux

include themes/refind-ambience/theme.conf

menuentry Linux {
    icon EFI/refind/icons/os_linux.png
    volume 904404F8-B481-440C-A1E3-11A5A954E601
    loader bzImage-3.3.0-rc7
    initrd initrd-3.3.0.img
    options "ro root=UUID=5f96cafa-e0a7-4057-b18f-fa709db5b837"
    disabled
}

menuentry "Arch Linux" {
    icon     /EFI/refind/icons/os_arch.png
    volume   "Arch Linux"
    loader   /boot/vmlinuz-linux
    initrd   /boot/initramfs-linux.img
    options  "root=PARTUUID=/dev/sda2 rw add_efi_memmap nouveau.modeset=0 nvidia_drm.modeset=1"
    submenuentry "Boot using fallback initramfs" {
        initrd /boot/initramfs-linux-fallback.img
    }
    submenuentry "Boot to terminal" {
        add_options "systemd.unit=multi-user.target"
    }
    disabled
}

menuentry Ubuntu {
    loader /EFI/ubuntu/grubx64.efi
    icon /EFI/refind/icons/os_linux.png
    disabled
}

menuentry "ELILO" {
    loader \EFI\elilo\elilo.efi
    disabled
}

menuentry "Windows 7" {
    loader \EFI\Microsoft\Boot\bootmgfw.efi
    disabled
}

menuentry "Windows via shell script" {
    icon \EFI\refind\icons\os_win.png
    loader \EFI\tools\shell.efi
    options "fs0:\EFI\tools\launch_windows.nsh"
    disabled
}

menuentry "My macOS" {
    icon \EFI\refind\icons\os_mac.png
    volume "macOS boot"
    loader \System\Library\CoreServices\boot.efi
    disabled
}

menuentry "macOS via BootNext" {
    icon /EFI/refind/icons/os_mac.png
    firmware_bootnum 80
    disabled
}

I also removed `kms` from /etc/mkinitcpio.conf (

HOOKS=(base udev autodetect microcode modconf keyboard keymap consolefont block filesystems fsck)

) and regenerated initramfs.

Do I need to do smthng else?

Any help would be appreciated.

Offline

#2 2024-09-27 01:20:35

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,724

Re: Failed to initialize NVIDIA drivers from ZEN kernel in rEFInd

Well you only installed the drivers for the regular kernel, so that all makes sense. See the nvidia wiki page.

Offline

Board footer

Powered by FluxBB