[SOLVED] Can't install Nvidia-dkms drivers for Linux-Zen and Linux-znvers3

I was getting the following errors at the end of system update and after restart, Nvidia GPU was not working (nvidia_drm not found) (had linux-zenvers 6.9 kernel active).

--> A problem with the NVIDIA drivers has been detected

---> Building NVIDIA DKMS module for kernel 6.9.1-AMD-znver3
Module nvidia 550.78 is not installed for kernel 6.9.1-AMD-znver3 (x86_64). Skipping...
Module nvidia 550.78 is not built for kernel 6.9.1-AMD-znver3 (x86_64). Skipping...
The kernel is built without module signing facility, modules won't be signed

Building module:
Cleaning build area...
'make' -j16 IGNORE_PREEMPT_RT_PRESENCE=1 NV_EXCLUDE_BUILD_MODULES='__EXCLUDE_MODULES' KERNEL_UNAME=6.9.1-AMD-znver3 modules........(bad exit status: 2)
Error! Bad return status for module build on kernel: 6.9.1-AMD-znver3 (x86_64)
Consult /var/lib/dkms/nvidia/550.78/build/make.log for more information.
---> Failed to build NVIDIA DKMS module for kernel 6.9.1-AMD-znver3

---> Building NVIDIA DKMS module for kernel 6.9.1-arch1-1
Module nvidia 550.78 is not installed for kernel 6.9.1-arch1-1 (x86_64). Skipping...
Module nvidia 550.78 is not built for kernel 6.9.1-arch1-1 (x86_64). Skipping...
Sign command: /usr/lib/modules/6.9.1-arch1-1/build/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub

Building module:
Cleaning build area...
'make' -j16 IGNORE_PREEMPT_RT_PRESENCE=1 NV_EXCLUDE_BUILD_MODULES='__EXCLUDE_MODULES' KERNEL_UNAME=6.9.1-arch1-1 modules........(bad exit status: 2)
Error! Bad return status for module build on kernel: 6.9.1-arch1-1 (x86_64)
Consult /var/lib/dkms/nvidia/550.78/build/make.log for more information.
---> Failed to build NVIDIA DKMS module for kernel 6.9.1-arch1-1

---> Building NVIDIA DKMS module for kernel 6.9.1-zen1-1-zen
Module nvidia 550.78 is not installed for kernel 6.9.1-zen1-1-zen (x86_64). Skipping...
Module nvidia 550.78 is not built for kernel 6.9.1-zen1-1-zen (x86_64). Skipping...
Sign command: /usr/lib/modules/6.9.1-zen1-1-zen/build/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub

Building module:
Cleaning build area...
'make' -j16 IGNORE_PREEMPT_RT_PRESENCE=1 NV_EXCLUDE_BUILD_MODULES='__EXCLUDE_MODULES' KERNEL_UNAME=6.9.1-zen1-1-zen modules........(bad exit status: 2)
Error! Bad return status for module build on kernel: 6.9.1-zen1-1-zen (x86_64)
Consult /var/lib/dkms/nvidia/550.78/build/make.log for more information.
---> Failed to build NVIDIA DKMS module for kernel 6.9.1-zen1-1-zen

System updated! 🐧

After restoring to an older snapshot, and updating the system, the Nvidia driver for LTS kernel compiled, but didn’t for the other two, and got the following error (also switched to LTS kernel).

--> A problem with the NVIDIA drivers has been detected

---> Building NVIDIA DKMS module for kernel 6.9.1-AMD-znver3
Module nvidia 550.78 is not installed for kernel 6.9.1-AMD-znver3 (x86_64). Skipping...
Module nvidia 550.78 is not built for kernel 6.9.1-AMD-znver3 (x86_64). Skipping...
The kernel is built without module signing facility, modules won't be signed

Building module:
Cleaning build area...
'make' -j16 IGNORE_PREEMPT_RT_PRESENCE=1 NV_EXCLUDE_BUILD_MODULES='__EXCLUDE_MODULES' KERNEL_UNAME=6.9.1-AMD-znver3 modules.......(bad exit status: 2)
Error! Bad return status for module build on kernel: 6.9.1-AMD-znver3 (x86_64)
Consult /var/lib/dkms/nvidia/550.78/build/make.log for more information.
---> Failed to build NVIDIA DKMS module for kernel 6.9.1-AMD-znver3

---> Building NVIDIA DKMS module for kernel 6.9.1-zen1-1-zen
Module nvidia 550.78 is not installed for kernel 6.9.1-zen1-1-zen (x86_64). Skipping...
Module nvidia 550.78 is not built for kernel 6.9.1-zen1-1-zen (x86_64). Skipping...
Sign command: /usr/lib/modules/6.9.1-zen1-1-zen/build/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub

Building module:
Cleaning build area...
'make' -j16 IGNORE_PREEMPT_RT_PRESENCE=1 NV_EXCLUDE_BUILD_MODULES='__EXCLUDE_MODULES' KERNEL_UNAME=6.9.1-zen1-1-zen modules.......(bad exit status: 2)
Error! Bad return status for module build on kernel: 6.9.1-zen1-1-zen (x86_64)
Consult /var/lib/dkms/nvidia/550.78/build/make.log for more information.
---> Failed to build NVIDIA DKMS module for kernel 6.9.1-zen1-1-zen

System updated! 🐧

I have tried to re-install the nvidia-DKMS but it didn’t work.

System info:

System:
Kernel: 6.6.31-1-lts arch: x86_64 bits: 64 compiler: gcc v: 14.1.1
clocksource: hpet avail: acpi_pm
parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-lts
root=UUID=a3ed4574-408f-4802-8fc7-dded1b46b1ac rw rootflags=subvol=@
resume=UUID=21ea485a-d6f1-4646-b304-bca6967a48e0 loglevel=3
mitigations=off ibt=off
Desktop: KDE Plasma v: 6.0.4 tk: Qt v: N/A info: frameworks v: 6.2.0
wm: kwin_wayland with: krunner vt: 1 dm: SDDM Distro: Garuda
base: Arch Linux
Machine:
Type: Laptop System: ASUSTeK product: ROG Strix G713QM_G713QM v: 1.0
serial: <superuser required>
Mobo: ASUSTeK model: G713QM v: 1.0 serial: <superuser required>
uuid: <superuser required> UEFI: American Megatrends LLC. v: G713QM.331
date: 02/24/2023
Battery:
ID-1: BAT0 charge: 54.4 Wh (64.0%) condition: 85.0/90.0 Wh (94.5%)
volts: 15.9 min: 15.9 model: AS3GWAF3KC GA50358 type: Li-ion
serial: <filter> status: not charging
Device-1: hidpp_battery_0 model: Logitech Wireless Mouse MX Master 2S
serial: <filter> charge: 100% (should be ignored) rechargeable: yes
status: discharging
CPU:
Info: model: AMD Ryzen 7 5800H with Radeon Graphics bits: 64 type: MT MCP
arch: Zen 3 gen: 4 level: v3 note: check built: 2021-22
process: TSMC n7 (7nm) family: 0x19 (25) model-id: 0x50 (80) stepping: 0
microcode: 0xA50000B
Topology: cpus: 1x cores: 8 tpc: 2 threads: 16 smt: enabled cache:
L1: 512 KiB desc: d-8x32 KiB; i-8x32 KiB L2: 4 MiB desc: 8x512 KiB
L3: 16 MiB desc: 1x16 MiB
Speed (MHz): avg: 524 high: 1397 min/max: 400/4463 scaling:
driver: amd-pstate-epp governor: powersave cores: 1: 400 2: 400 3: 400
4: 400 5: 400 6: 400 7: 400 8: 400 9: 400 10: 400 11: 400 12: 1397 13: 400
14: 400 15: 1397 16: 400 bogomips: 102248
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Vulnerabilities: <filter>
Graphics:
Device-1: NVIDIA GA106M [GeForce RTX 3060 Mobile / Max-Q] vendor: ASUSTeK
driver: nvidia v: 550.78 alternate: nouveau,nvidia_drm non-free: 550.xx+
status: current (as of 2024-04; EOL~2026-12-xx) arch: Ampere code: GAxxx
process: TSMC n7 (7nm) built: 2020-2023 pcie: gen: 1 speed: 2.5 GT/s
lanes: 8 link-max: gen: 4 speed: 16 GT/s lanes: 16 ports: active: none
off: DP-1 empty: none bus-ID: 01:00.0 chip-ID: 10de:2520 class-ID: 0300
Device-2: AMD Cezanne [Radeon Vega Series / Radeon Mobile Series]
vendor: ASUSTeK driver: amdgpu v: kernel arch: GCN-5 code: Vega
process: GF 14nm built: 2017-20 pcie: gen: 3 speed: 8 GT/s lanes: 16
link-max: gen: 4 speed: 16 GT/s ports: active: none off: eDP-1
empty: HDMI-A-1 bus-ID: 06:00.0 chip-ID: 1002:1638 class-ID: 0300
temp: 61.0 C
Display: wayland server: X.org v: 1.21.1.13 with: Xwayland v: 24.1.0
compositor: kwin_wayland driver: X: loaded: modesetting,nvidia dri: radeonsi
gpu: nvidia,amdgpu display-ID: 0
Monitor-1: DP-1 res: 1920x1200 size: N/A modes: N/A
API: EGL v: 1.5 hw: drv: nvidia drv: amd radeonsi platforms: device: 0
drv: nvidia device: 1 drv: radeonsi device: 3 drv: swrast surfaceless:
drv: nvidia wayland: drv: radeonsi x11: drv: radeonsi
inactive: gbm,device-2
API: OpenGL v: 4.6.0 compat-v: 4.5 vendor: amd mesa v: 24.0.7-arch1.3
glx-v: 1.4 direct-render: yes renderer: AMD Radeon Graphics (radeonsi
renoir LLVM 17.0.6 DRM 3.54 6.6.31-1-lts) device-ID: 1002:1638
memory: 500 MiB unified: no display-ID: :1.0
API: Vulkan v: 1.3.279 layers: 14 device: 0 type: integrated-gpu name: AMD
Radeon Graphics (RADV RENOIR) driver: mesa radv v: 24.0.7-arch1.3
device-ID: 1002:1638 surfaces: xcb,xlib,wayland device: 1
type: discrete-gpu name: NVIDIA GeForce RTX 3060 Laptop GPU driver: nvidia
v: 550.78 device-ID: 10de:2520 surfaces: xcb,xlib,wayland device: 2
type: cpu name: llvmpipe (LLVM 17.0.6 256 bits) driver: mesa llvmpipe
v: 24.0.7-arch1.3 (LLVM 17.0.6) device-ID: 10005:0000
surfaces: xcb,xlib,wayland
Audio:
Device-1: NVIDIA GA106 High Definition Audio vendor: ASUSTeK
driver: snd_hda_intel v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 8
link-max: gen: 4 speed: 16 GT/s lanes: 16 bus-ID: 01:00.1
chip-ID: 10de:228e class-ID: 0403
Device-2: AMD Renoir Radeon High Definition Audio vendor: ASUSTeK
driver: snd_hda_intel v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16
link-max: gen: 4 speed: 16 GT/s bus-ID: 06:00.1 chip-ID: 1002:1637
class-ID: 0403
Device-3: AMD ACP/ACP3X/ACP6x Audio Coprocessor vendor: ASUSTeK
driver: N/A alternate: snd_pci_acp3x, snd_rn_pci_acp3x, snd_pci_acp5x,
snd_pci_acp6x, snd_acp_pci, snd_rpl_pci_acp6x, snd_pci_ps,
snd_sof_amd_renoir, snd_sof_amd_rembrandt, snd_sof_amd_vangogh pcie:
gen: 3 speed: 8 GT/s lanes: 16 link-max: gen: 4 speed: 16 GT/s
bus-ID: 06:00.5 chip-ID: 1022:15e2 class-ID: 0480
Device-4: AMD Family 17h/19h HD Audio vendor: ASUSTeK
driver: snd_hda_intel v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16
link-max: gen: 4 speed: 16 GT/s bus-ID: 06:00.6 chip-ID: 1022:15e3
class-ID: 0403
API: ALSA v: k6.6.31-1-lts status: kernel-api with: aoss
type: oss-emulator tools: N/A
Server-1: PipeWire v: 1.0.6 status: active with: 1: pipewire-pulse
status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
4: pw-jack type: plugin tools: pactl,pw-cat,pw-cli,wpctl
Network:
Device-1: Realtek RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet
vendor: ASUSTeK driver: r8169 v: kernel pcie: gen: 1 speed: 2.5 GT/s
lanes: 1 port: e000 bus-ID: 02:00.0 chip-ID: 10ec:8168 class-ID: 0200
IF: enp2s0 state: up speed: 100 Mbps duplex: full mac: <filter>
Device-2: Intel Wi-Fi 6 AX200 driver: iwlwifi v: kernel pcie: gen: 2
speed: 5 GT/s lanes: 1 bus-ID: 03:00.0 chip-ID: 8086:2723 class-ID: 0280
IF: wlp3s0 state: up mac: <filter>
Info: services: NetworkManager, smbd, systemd-timesyncd, wpa_supplicant
Bluetooth:
Device-1: Intel AX200 Bluetooth driver: btusb v: 0.8 type: USB rev: 2.0
speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 3-4:3 chip-ID: 8087:0029
class-ID: e001
Report: btmgmt ID: hci0 rfk-id: 1 state: down bt-service: enabled,running
rfk-block: hardware: no software: no address: <filter> bt-v: 5.2 lmp-v: 11
status: discoverable: no pairing: no
Drives:
Local Storage: total: 6.41 TiB used: 3.68 TiB (57.3%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/nvme0n1 maj-min: 259:3 vendor: Samsung model: SSD 980 1TB
size: 931.51 GiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s
lanes: 4 tech: SSD serial: <filter> fw-rev: 3B4QFXO7 temp: 46.9 C
scheme: GPT
ID-2: /dev/nvme1n1 maj-min: 259:0 vendor: Seagate
model: XPG GAMMIX S70 BLADE size: 1.86 TiB block-size: physical: 512 B
logical: 512 B speed: 63.2 Gb/s lanes: 4 tech: SSD serial: <filter>
fw-rev: 3.2.F.83 temp: 51.9 C scheme: GPT
ID-3: /dev/sdb maj-min: 8:16 vendor: Western Digital
model: WD40NDZW-11A8JS1 size: 3.64 TiB block-size: physical: 4096 B
logical: 512 B type: USB rev: 3.1 spd: 5 Gb/s lanes: 1 mode: 3.2 gen-1x1
tech: HDD rpm: 5400 serial: <filter> fw-rev: 4008 scheme: GPT
Partition:
ID-1: / raw-size: 500 GiB size: 500 GiB (100.00%) used: 246.97 GiB (49.4%)
fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:5
ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
used: 588 KiB (0.2%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:4
ID-3: /home raw-size: 500 GiB size: 500 GiB (100.00%)
used: 246.97 GiB (49.4%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:5
ID-4: /var/log raw-size: 500 GiB size: 500 GiB (100.00%)
used: 246.97 GiB (49.4%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:5
ID-5: /var/tmp raw-size: 500 GiB size: 500 GiB (100.00%)
used: 246.97 GiB (49.4%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:5
Swap:
Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default) zswap: no
ID-1: swap-1 type: partition size: 33.85 GiB used: 0 KiB (0.0%)
priority: -2 dev: /dev/nvme0n1p4 maj-min: 259:7
ID-2: swap-2 type: zram size: 30.77 GiB used: 64.5 MiB (0.2%)
priority: 100 comp: zstd avail: lzo,lzo-rle,lz4,lz4hc,842 max-streams: 16
dev: /dev/zram0
Sensors:
System Temperatures: cpu: 72.4 C mobo: N/A gpu: amdgpu temp: 61.0 C
Fan Speeds (rpm): N/A
Info:
Memory: total: 32 GiB note: est. available: 30.77 GiB used: 6.11 GiB (19.9%)
Processes: 579 Power: uptime: 3h 6m states: freeze,mem,disk
suspend: s2idle wakeups: 0 hibernate: platform avail: shutdown, reboot,
suspend, test_resume image: 12.27 GiB services: org_kde_powerdevil,
power-profiles-daemon, upowerd Init: systemd v: 255 default: graphical
tool: systemctl
Packages: 2335 pm: pacman pkgs: 2320 libs: 597 tools: octopi,paru
pm: flatpak pkgs: 15 Compilers: clang: 17.0.6 gcc: 14.1.1 alt: 13
Shell: garuda-inxi default: fish v: 3.7.1 running-in: konsole inxi: 3.3.34
Garuda (2.6.26-1):
System install date:     2024-03-16
Last full system update: 2024-05-22
Is partially upgraded:   No
Relevant software:       snapper NetworkManager dracut nvidia-dkms
Windows dual boot:       Probably (Run as root to verify)
Failed units:

Your laptop should have an nvidia RTX3060, but it doesn’t show up in your garuda-inxi.

You are already the second person to miss the dGPU. Boot a live.iso and check whether your dGPU is displayed.

Both Asus laptops :thinking:

1 Like

I was running on integrated graphics. I turned on the Nvidia GPU and and ran the garuda-inxi again. It now shows up. I updated it in the OP

Have you tried a garuda-update again after activating the nvidia GPU?

1 Like

I just did, and it’s the same. Compiles for LTS, but doesn’t for zen and znvers3

-> A problem with the NVIDIA drivers has been detected

---> Building NVIDIA DKMS module for kernel 6.9.1-AMD-znver3
Module nvidia 550.78 is not installed for kernel 6.9.1-AMD-znver3 (x86_64). Skipping...
Module nvidia 550.78 is not built for kernel 6.9.1-AMD-znver3 (x86_64). Skipping...
The kernel is built without module signing facility, modules won't be signed

Building module:
Cleaning build area...
'make' -j16 IGNORE_PREEMPT_RT_PRESENCE=1 NV_EXCLUDE_BUILD_MODULES='__EXCLUDE_MODULES' KERNEL_UNAME=6.9.1-AMD-znver3 modules.......(bad exit status: 2)
Error! Bad return status for module build on kernel: 6.9.1-AMD-znver3 (x86_64)
Consult /var/lib/dkms/nvidia/550.78/build/make.log for more information.
---> Failed to build NVIDIA DKMS module for kernel 6.9.1-AMD-znver3

---> Building NVIDIA DKMS module for kernel 6.9.1-zen1-1-zen
Module nvidia 550.78 is not installed for kernel 6.9.1-zen1-1-zen (x86_64). Skipping...
Module nvidia 550.78 is not built for kernel 6.9.1-zen1-1-zen (x86_64). Skipping...
Sign command: /usr/lib/modules/6.9.1-zen1-1-zen/build/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub

Building module:
Cleaning build area...
'make' -j16 IGNORE_PREEMPT_RT_PRESENCE=1 NV_EXCLUDE_BUILD_MODULES='__EXCLUDE_MODULES' KERNEL_UNAME=6.9.1-zen1-1-zen modules.......(bad exit status: 2)
Error! Bad return status for module build on kernel: 6.9.1-zen1-1-zen (x86_64)
Consult /var/lib/dkms/nvidia/550.78/build/make.log for more information.
---> Failed to build NVIDIA DKMS module for kernel 6.9.1-zen1-1-zen

System updated! 🐧

Do you have the appropriate headers installed - linux-zen-headers and linux-amd-znver3-headers?

1 Like

Yes
sudo pacman -S linux-zen-headers linux-amd-znver3-headers linux-zen linux-amd-znver3

warning: linux-zen-headers-6.9.1.zen1-1 is up to date -- reinstalling
warning: linux-amd-znver3-headers-6.9.v.1-1 is up to date -- reinstalling
warning: linux-zen-6.9.1.zen1-1 is up to date -- reinstalling
warning: linux-amd-znver3-6.9.v.1-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Package (4)                           Old Version   New Version   Net Change

chaotic-aur/linux-amd-znver3          6.9.v.1-1     6.9.v.1-1       0.00 MiB
chaotic-aur/linux-amd-znver3-headers  6.9.v.1-1     6.9.v.1-1       0.00 MiB
extra/linux-zen                       6.9.1.zen1-1  6.9.1.zen1-1    0.00 MiB
extra/linux-zen-headers               6.9.1.zen1-1  6.9.1.zen1-1    0.00 MiB

Total Installed Size:  471.99 MiB
Net Upgrade Size:        0.00 MiB

:: Proceed with installation? [Y/n]

I checked the /var/lib/dkms/nvidia/550.78/6.9.1-AMD-znver3/x86_64/log/make.log and found out that it was using gcc from my anaconda.

I ran garuda-update through bash (I did not initialize anaconda for bash, only for fish) and it compiled; It’s working now.

2 Likes

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.