Error on System boot after installing Nvidia drivers

I recently installed Garuda Linux and experienced a lot of frame drops even when watching/streaming videos. Apparently proper driver wasn't installed for my card. I did some research to choose proper driver for my card model following This Arch Wiki and installed related drivers using pacman. On restart I experienced a boot error. The system was simply stuck on boot.
Login through a snapshot and some research later I again installed using Software Center. On restart faced the same issue of being stuck on boot.
Another Snapshot and Having learnt my lesson, I went a bit deeper into the research and saw few common threads in this forum but a bit different issue. I saw in a thread to install via Hardware manager in settings and after successful install the same stuck on boot after restart.
On all my 3 tries the installation process was without any failure.

mhwd --pci -li
> Installed PCI configs:
--------------------------------------------------------------------------------
NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
video-linux            2021.02.19                true            PCI
inxi -Fxxxzay
System:
Kernel: 5.12.6-zen1-1-zen x86_64 bits: 64 compiler: gcc v: 11.1.0  
parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen  
root=UUID=2240ad6c-3107-443f-ac99-dd7a472f110c rw rootflags=subvol=@ quiet
splash rd.udev.log_priority=3 vt.global_cursor_default=0
systemd.unified_cgroup_hierarchy=1 loglevel=3
Desktop: KDE Plasma 5.21.5 tk: Qt 5.15.2 info: latte-dock wm: kwin_x11 vt: 1  
dm: SDDM Distro: Garuda Linux base: Arch Linux  
Machine:
Type: Desktop Mobo: ASUSTeK model: M5A78L-M/USB3 v: Rev X.0x  
serial: <filter> BIOS: American Megatrends v: 2101 date: 12/02/2014  
CPU:
Info: Quad Core model: AMD FX-4300 bits: 64 type: MCP arch: Bulldozer  
family: 15 (21) model-id: 2 stepping: 0 microcode: 6000852 cache: L2: 2 MiB  
flags: avx lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm  
bogomips: 30535  
Speed: 3308 MHz min/max: 1400/3800 MHz boost: enabled Core speeds (MHz):  
1: 3308 2: 1794 3: 3050 4: 2251  
Vulnerabilities: Type: itlb_multihit status: Not affected  
Type: l1tf status: Not affected  
Type: mds status: Not affected  
Type: meltdown status: Not affected  
Type: spec_store_bypass  
mitigation: Speculative Store Bypass disabled via prctl and seccomp  
Type: spectre_v1  
mitigation: usercopy/swapgs barriers and __user pointer sanitization  
Type: spectre_v2 mitigation: Full AMD retpoline, IBPB: conditional, STIBP:  
disabled, RSB filling
Type: srbds status: Not affected  
Type: tsx_async_abort status: Not affected  
Graphics:
Device-1: NVIDIA GK208B [GeForce GT 730] vendor: ZOTAC driver: nouveau  
v: kernel bus-ID: 01:00.0 chip-ID: 10de:1287 class-ID: 0300  
Display: x11 server: X.Org 1.20.11 compositor: kwin_x11 driver:  
loaded: nouveau unloaded: modesetting alternate: fbdev,nv,vesa  
display-ID: :0 screens: 1  
Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.0x11.2")  
s-diag: 582mm (22.9")  
Monitor-1: HDMI-1 res: 1920x1080 hz: 60 dpi: 102  
size: 477x268mm (18.8x10.6") diag: 547mm (21.5")  
OpenGL: renderer: NV106 v: 4.3 Mesa 21.1.1 direct render: Yes  
Audio:
Device-1: AMD SBx00 Azalia vendor: ASUSTeK M4A785TD driver: snd_hda_intel  
v: kernel bus-ID: 00:14.2 chip-ID: 1002:4383 class-ID: 0403  
Device-2: NVIDIA GK208 HDMI/DP Audio vendor: ZOTAC driver: snd_hda_intel  
v: kernel bus-ID: 01:00.1 chip-ID: 10de:0e0f class-ID: 0403  
Sound Server-1: ALSA v: k5.12.6-zen1-1-zen running: yes  
Sound Server-2: JACK v: 0.125.0 running: no  
Sound Server-3: PulseAudio v: 14.2 running: yes  
Sound Server-4: PipeWire v: 0.3.28 running: yes  
Network:
Device-1: Qualcomm Atheros AR9485 Wireless Network Adapter driver: ath9k  
v: kernel port: dc00 bus-ID: 02:00.0 chip-ID: 168c:0032 class-ID: 0280  
IF: wlp2s0 state: down mac: <filter>  
Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet  
vendor: ASUSTeK P8 series driver: r8169 v: kernel port: e800 bus-ID: 04:00.0  
chip-ID: 10ec:8168 class-ID: 0200  
IF: enp4s0 state: up speed: 100 Mbps duplex: full mac: <filter>  
Drives:
Local Storage: total: 223.57 GiB used: 33.72 GiB (15.1%)  
SMART Message: Unable to run smartctl. Root privileges required.  
ID-1: /dev/sda maj-min: 8:0 vendor: Kingston model: SA400S37240G  
size: 223.57 GiB block-size: physical: 512 B logical: 512 B speed: <unknown>  
rotation: SSD serial: <filter> rev: 0102 scheme: MBR  
Partition:
ID-1: / raw-size: 223.57 GiB size: 223.57 GiB (100.00%)  
used: 33.72 GiB (15.1%) fs: btrfs dev: /dev/sda1 maj-min: 8:1  
ID-2: /home raw-size: 223.57 GiB size: 223.57 GiB (100.00%)
used: 33.72 GiB (15.1%) fs: btrfs dev: /dev/sda1 maj-min: 8:1
ID-3: /var/log raw-size: 223.57 GiB size: 223.57 GiB (100.00%)
used: 33.72 GiB (15.1%) fs: btrfs dev: /dev/sda1 maj-min: 8:1
ID-4: /var/tmp raw-size: 223.57 GiB size: 223.57 GiB (100.00%)
used: 33.72 GiB (15.1%) fs: btrfs dev: /dev/sda1 maj-min: 8:1
Swap:
Kernel: swappiness: 10 (default 60) cache-pressure: 75 (default 100)
ID-1: swap-1 type: zram size: 3.9 GiB used: 0 KiB (0.0%) priority: 32767
dev: /dev/zram0
ID-2: swap-2 type: zram size: 3.9 GiB used: 0 KiB (0.0%) priority: 32767
dev: /dev/zram1
ID-3: swap-3 type: zram size: 3.9 GiB used: 0 KiB (0.0%) priority: 32767
dev: /dev/zram2
ID-4: swap-4 type: zram size: 3.9 GiB used: 0 KiB (0.0%) priority: 32767
dev: /dev/zram3
Sensors:
System Temperatures: cpu: 52.0 C mobo: 44.0 C gpu: nouveau temp: 50.0 C
Fan Speeds (RPM): cpu: 3292 case-1: 0
Power: 12v: 12.18 5v: N/A 3.3v: 3.21 vbat: N/A gpu: nouveau mV: 912.00
Info:
Processes: 215 Uptime: 33m wakeups: 0 Memory: 15.61 GiB
used: 3.23 GiB (20.7%) Init: systemd v: 248 tool: systemctl Compilers:
gcc: 11.1.0 clang: 11.1.0 Packages: pacman: 1753 lib: 539 Shell: fish
v: 3.2.2 default: Zsh v: 5.8 running-in: konsole inxi: 3.3.04

Any help will be highly appreciated. Thanks a lot!!

Please provide specific details about what you did and what the output and end result was at each stage.

3 Likes

Thanks a lot for your impromptu reply.
Try 1:

sudo pacman -Syu nvidia
:: Synchronizing package databases...
core is up to date
extra is up to date
community is up to date
multilib is up to date
chaotic-aur                          1070.0 KiB   292 KiB/s 00:04 [------------------------------------] 100%
:: Starting full system upgrade...
warning: rare-git: local (1.5_beta.r5.gbe25abe-1) is newer than chaotic-aur (1.5_beta2.r0.g2e88d86-1)
resolving dependencies...
looking for conflicting packages...
warning: dependency cycle detected:
warning: eglexternalplatform will be installed before its nvidia-utils dependency

Packages (4) egl-wayland-1.1.7-1  eglexternalplatform-1.1-2  nvidia-utils-465.31-1  nvidia-465.31-5

Total Installed Size:  413.69 MiB

:: Proceed with installation? [Y/n] y
(4/4) checking keys in keyring                                     [------------------------------------] 100%
(4/4) checking package integrity                                   [------------------------------------] 100%
(4/4) loading package files                                        [------------------------------------] 100%
(4/4) checking for file conflicts                                  [------------------------------------] 100%
(4/4) checking available disk space                                [------------------------------------] 100%
:: Processing package changes...
(1/4) installing eglexternalplatform                               [------------------------------------] 100%
(2/4) installing egl-wayland                                       [------------------------------------] 100%
(3/4) installing nvidia-utils                                      [------------------------------------] 100%
If you run into trouble with CUDA not being available, run nvidia-modprobe first.
Optional dependencies for nvidia-utils
nvidia-settings: configuration tool
xorg-server-devel: nvidia-xconfig
opencl-nvidia: OpenCL support
(4/4) installing nvidia                                            [------------------------------------] 100%
:: Running post-transaction hooks...
( 1/11) Syncing all file systems...
( 2/11) Creating system user accounts...
( 3/11) Reloading system manager configuration...
( 4/11) Arming ConditionNeedsUpdate...
( 5/11) Updating module dependencies...
( 6/11) Cleaning up...
( 7/11) Foreign/AUR package notification
=> No foreign/AUR packages found.
( 8/11) Orphaned package notification...
=> No orphans found.
( 9/11) Checking for .pacnew and .pacsave files...
.pac* files found:
/etc/pacman.d/mirrorlist.pacnew
/etc/systemd/system.conf.pacnew
/etc/systemd/user.conf.pacnew
Please check and merge
(10/11) Updating pkgfile database...
(11/11) Syncing all file systems...

Try 2:
I installed vis software center. Package name was nvidia 465.31-5
Try 3
I installed via Hardware Configuration in system settings under Display Controller
driver package name was video-nvidia-dkms

Waiting for user input...

Starting

> Installing video-nvidia-dkms...

Sourcing /etc/mhwd-x86_64.conf

Has lib32 support: true

Sourcing /var/lib/mhwd/db/pci/graphic_drivers/nvidia-dkms/MHWDCONFIG

Processing classid: 0300

Sourcing /var/lib/mhwd/scripts/include/0300

Processing classid: 0302

:: Synchronizing package databases...

core is up to date

downloading extra.db...

community is up to date

multilib is up to date

downloading chaotic-aur.db...

warning: nvidia-utils-465.31-1 is up to date -- skipping

warning: egl-wayland-1.1.7-1 is up to date -- skipping

resolving dependencies...

looking for conflicting packages...

Packages (18) dkms-2.8.4-1 gobject-introspection-1.68.0-1 libdazzle-3.40.0-1 libxnvctrl-465.27-1 python-beaker-1.11.0-6 python-injector-0.18.4-1 python-mako-1.1.4-1 python-peewee-3.14.4-1 python-py3nvml-0.2.6-1 python-rx-3.2.0-1 python-typing_extensions-3.10.0.0-1 python-xlib-0.30-1 gwe-0.15.3-1 lib32-nvidia-utils-465.31-1 lib32-opencl-nvidia-465.31-1 nvidia-dkms-465.31-1 nvidia-settings-465.27-1 opencl-nvidia-465.31-1

Total Installed Size: 332.76 MiB

:: Proceed with installation? [Y/n]

checking keyring...

checking package integrity...

loading package files...

checking for file conflicts...

checking available disk space...

:: Processing package changes...

installing libxnvctrl...

installing nvidia-settings...

installing opencl-nvidia...

Optional dependencies for opencl-nvidia

opencl-headers: headers necessary for OpenCL development

installing python-beaker...

installing python-mako...

installing gobject-introspection...

installing libdazzle...

installing python-typing_extensions...

installing python-injector...

installing python-peewee...

Optional dependencies for python-peewee

python-psycopg2: for PostgreSQL database support

mysql-python: for MySQL database support

installing python-py3nvml...

installing python-rx...

installing python-xlib...

installing gwe...

installing lib32-nvidia-utils...

Optional dependencies for lib32-nvidia-utils

lib32-opencl-nvidia [pending]

installing lib32-opencl-nvidia...

Optional dependencies for lib32-opencl-nvidia

opencl-headers: headers necessary for OpenCL development

installing dkms...

Optional dependencies for dkms

linux-headers: build modules against the Arch kernel [installed]

linux-lts-headers: build modules against the LTS kernel [installed]

linux-zen-headers: build modules against the ZEN kernel [installed]

linux-hardened-headers: build modules against the HARDENED kernel

installing nvidia-dkms...

:: Running post-transaction hooks...

( 1/12) Syncing all file systems...

( 2/12) Arming ConditionNeedsUpdate...

( 3/12) Install DKMS modules

==> dkms install --no-depmod -m nvidia -v 465.31 -k 5.12.6-zen1-1-zen

Error! Bad return status for module build on kernel: 5.12.6-zen1-1-zen (x86_64)

Consult /var/lib/dkms/nvidia/465.31/build/make.log for more information.

==> Warning, `dkms install --no-depmod -m nvidia -v 465.31 -k 5.12.6-zen1-1-zen' returned 10

==> dkms install --no-depmod -m nvidia -v 465.31 -k 5.12.7-160-tkg-bmq

Error! Bad return status for module build on kernel: 5.12.7-160-tkg-bmq (x86_64)

Consult /var/lib/dkms/nvidia/465.31/build/make.log for more information.

==> Warning, `dkms install --no-depmod -m nvidia -v 465.31 -k 5.12.7-160-tkg-bmq' returned 10

==> dkms install --no-depmod -m nvidia -v 465.31 -k 5.12.7-zen1-1-zen

Error! Bad return status for mod

ule build on kernel: 5.12.7-zen1-1-zen (x86_64)

Consult /var/lib/dkms/nvidia/465.31/build/make.log for more information.

==> Warning, `dkms install --no-depmod -m nvidia -v 465.31 -k 5.12.7-zen1-1-zen' returned 10

==> dkms install --no-depmod -m nvidia -v 465.31 -k 5.10.40-1-lts

Error! Bad return status for module build on kernel: 5.10.40-1-lts (x86_64)

Consult /var/lib/dkms/nvidia/465.31/build/make.log for more information.

==> Warning, `dkms install --no-depmod -m nvidia -v 465.31 -k 5.10.40-1-lts' returned 10

==> depmod 5.12.7-160-tkg-bmq

==> depmod 5.10.40-1-lts

==> depmod 5.12.6-zen1-1-zen

==> depmod 5.12.7-zen1-1-zen

( 4/12) Foreign/AUR package notification

=> No foreign/AUR packages found.

( 5/12) Compiling GSettings XML schema files...

( 6/12) Updating icon theme caches...

( 7/12) Mkinitcpio and GRUB update after transactions...

==> Building image from preset: /etc/mkinitcpio.d/linux-lts.preset: 'default'

-> -k /boot/vmlinuz-linux-lts -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-lts.img

==> Starting build: 5.10.40-1-lts

-> Running build hook: [base]

-> Running build hook: [udev]

-> Running build hook: [autodetect]

-> Running build hook: [modconf]

-> Running build hook: [block]

==> WARNING: Possibly missing firmware for module: xhci_pci

-> Running build hook: [keyboard]

-> Running build hook: [keymap]

-> Running build hook: [consolefont]

-> Running build hook: [plymouth]

-> Running build hook: [filesystems]

==> Generating module dependencies

==> Creating zstd-compressed initcpio image: /boot/initramfs-linux-lts.img

==> Image generation successful

==> Building image from preset: /etc/mkinitcpio.d/linux-lts.preset: 'fallback'

-> -k /boot/vmlinuz-linux-lts -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-lts-fallback.img -S autodetect

==> Starting build: 5.10.40-1-lts

-> Running build hook: [base]

-> Running build hook: [udev]

-> Running build hook: [modconf]

-> Running build hook: [block]

==> WARNING: Possibly missing firmware for module: aic94xx

==> WARNING: Possibly missing firmware for module: wd719x

==> WARNING: Possibly missing firmware for module: xhci_pci

-> Running build hook: [keyboard]

-> Running build hook: [keymap]

-> Running build hook: [consolefont]

-> Running build hook: [plymouth]

-> Running build hook: [filesystems]

==> Generating module dependencies

==> Creating zstd-compressed initcpio image: /boot/initramfs-linux-lts-fallback.img

==> Image generation successful

==> Building image from preset: /etc/mkinitcpio.d/linux-tkg-bmq.preset: 'default'

-> -k /boot/vmlinuz-linux-tkg-bmq -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-tkg-bmq.img

==> Starting build: 5.12.7-160-tkg-bmq

-> Running build hook: [base]

-> Running build hook: [udev]

-> Running build hook: [autodetect]

-> Running build hook: [modconf]

-> Running build hook: [block]

==> WARNING: Possibly missing firmware for module: xhci_pci

-> Running build hook: [keyboard]

-> Running build hook: [keymap]

-> Running build hook: [consolefont]

-> Running build hook: [plymouth]

-> Running build hook: [filesystems]

==> Generating module dependencies

==> Creating zstd-compressed initcpio image: /boot/initramfs-linux-tkg-bmq.img

==> Image generation successful

==> Building image from preset: /etc/mkinitcpio.d/linux-tkg-bmq.preset: 'fallback'

-> -k /boot/vmlinuz-linux-tkg-bmq -c /etc/mkinitcpio.conf -g /boot/i

nitramfs-linux-tkg-bmq-fallback.img -S autodetect

==> Starting build: 5.12.7-160-tkg-bmq

-> Running build hook: [base]

-> Running build hook: [udev]

-> Running build hook: [modconf]

-> Running build hook: [block]

==> WARNING: Possibly missing firmware for module: aic94xx

==> WARNING: Possibly missing firmware for module: wd719x

==> WARNING: Possibly missing firmware for module: xhci_pci

-> Running build hook: [keyboard]

-> Running build hook: [keymap]

-> Running build hook: [consolefont]

-> Running build hook: [plymouth]

-> Running build hook: [filesystems]

==> Generating module dependencies

==> Creating zstd-compressed initcpio image: /boot/initramfs-linux-tkg-bmq-fallback.img

==> Image generation successful

==> Building image from preset: /etc/mkinitcpio.d/linux-zen.preset: 'default'

-> -k /boot/vmlinuz-linux-zen -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-zen.img

==> Starting build: 5.12.7-zen1-1-zen

-> Running build hook: [base]

-> Running build hook: [udev]

-> Running build hook: [autodetect]

-> Running build hook: [modconf]

-> Running build hook: [block]

==> WARNING: Possibly missing firmware for module: xhci_pci

-> Running build hook: [keyboard]

-> Running build hook: [keymap]

-> Running build hook: [consolefont]

-> Running build hook: [plymouth]

-> Running build hook: [filesystems]

==> Generating module dependencies

==> Creating zstd-compressed initcpio image: /boot/initramfs-linux-zen.img

==> Image generation successful

==> Building image from preset: /etc/mkinitcpio.d/linux-zen.preset: 'fallback'

-> -k /boot/vmlinuz-linux-zen -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-zen-fallback.img -S autodetect

==> Starting build: 5.12.7-zen1-1-zen

-> Running build hook: [base]

-> Running build hook: [udev]

-> Running build hook: [modconf]

-> Running build hook: [block]

==> WARNING: Possibly missing firmware for module: aic94xx

==> WARNING: Possibly missing firmware for module: wd719x

==> WARNING: Possibly missing firmware for module: xhci_pci

-> Running build hook: [keyboard]

-> Running build hook: [keymap]

-> Running build hook: [consolefont]

-> Running build hook: [plymouth]

-> Running build hook: [filesystems]

==> Generating module dependencies

==> Creating zstd-compressed initcpio image: /boot/initramfs-linux-zen-fallback.img

==> Image generation successful

Generating grub configuration file ...

Found theme: /usr/share/grub/themes/garuda-dr460nized/theme.txt

Found linux image: /boot/vmlinuz-linux-zen

Found initrd image: /boot/amd-ucode.img /boot/initramfs-linux-zen.img

Found fallback initrd image(s) in /boot: initramfs-linux-zen-fallback.img

Found linux image: /boot/vmlinuz-linux-tkg-bmq

Found initrd image: /boot/amd-ucode.img /boot/initramfs-linux-tkg-bmq.img

Found fallback initrd image(s) in /boot: initramfs-linux-tkg-bmq-fallback.img

Found linux image: /boot/vmlinuz-linux-lts

Found initrd image: /boot/amd-ucode.img /boot/initramfs-linux-lts.img

Found fallback initrd image(s) in /boot: initramfs-linux-lts-fallback.img

which: no umount in ((null))

Detecting snapshots ...

Info: Separate boot partition not detected

Found snapshot: 2021-05-29 00:59:10 | timeshift-btrfs/snapshots/2021-05-29_00-59-10/@

Found snapshot: 2021-05-28 23:00:01 | timeshift-btrfs/snapshots/2021-05-28_23-00-01/@

Found snapshot: 2021-05-28 07:35:55 | timeshift-btrfs/snapshots/2021-05-28_23-40-11/@

Foun

d snapshot: 2021-05-28 07:34:59 | timeshift-btrfs/snapshots/2021-05-28_07-34-59/@

Found snapshot: 2021-05-28 07:31:59 | timeshift-btrfs/snapshots/2021-05-28_07-34-38/@

Found snapshot: 2021-05-28 07:09:50 | timeshift-btrfs/snapshots/2021-05-28_07-09-50/@

Found snapshot: 2021-05-28 03:27:05 | timeshift-btrfs/snapshots/2021-05-28_07-31-45/@

Found snapshot: 2021-05-28 03:24:26 | timeshift-btrfs/snapshots/2021-05-28_03-26-36/@

Found snapshot: 2021-05-28 03:21:24 | timeshift-btrfs/snapshots/2021-05-28_03-24-26/@

Found snapshot: 2021-05-28 02:53:50 | timeshift-btrfs/snapshots/2021-05-28_02-53-50/@

Found snapshot: 2021-05-27 23:24:52 | timeshift-btrfs/snapshots/2021-05-27_23-24-51/@

Found snapshot: 2021-05-27 23:00:02 | timeshift-btrfs/snapshots/2021-05-27_23-00-02/@

Found snapshot: 2021-05-26 20:59:23 | timeshift-btrfs/snapshots/2021-05-26_20-59-23/@

Found snapshot: 2021-05-26 20:28:38 | timeshift-btrfs/snapshots/2021-05-28_03-21-24/@

Found snapshot: 2021-05-26 20:04:04 | timeshift-btrfs/snapshots/2021-05-26_20-28-38/@

Found 15 snapshot(s)

Found memtest86+ image: /boot/memtest86+/memtest.bin

done

( 8/12) Orphaned package notification...

=> No orphans found.

( 9/12) Checking for .pacnew and .pacsave files...

.pac* files found:

/etc/pacman.d/mirrorlist.pacnew

/etc/systemd/system.conf.pacnew

/etc/systemd/user.conf.pacnew

Please check and merge

(10/12) Updating pkgfile database...

(11/12) Updating the desktop file MIME type cache...

(12/12) Syncing all file systems...

nvidia-utils: install reason has been set to 'explicitly installed'

nvidia-settings: install reason has been set to 'explicitly installed'

opencl-nvidia: install reason has been set to 'explicitly installed'

egl-wayland: install reason has been set to 'explicitly installed'

gwe: install reason has been set to 'explicitly installed'

lib32-nvidia-utils: install reason has been set to 'explicitly installed'

lib32-opencl-nvidia: install reason has been set to 'explicitly installed'

nvidia-dkms: install reason has been set to 'explicitly installed'

nvidia-dkms: install reason has been set to 'explicitly installed'

nvidia-dkms: install reason has been set to 'explicitly installed'

nvidia-dkms: install reason has been set to 'explicitly installed'

xorg configuration file: '/etc/X11/mhwd.d/nvidia.conf'

==> Building image from preset: /etc/mkinitcpio.d/linux-lts.preset: 'default'

-> -k /boot/vmlinuz-linux-lts -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-lts.img

==> Starting build: 5.10.40-1-lts

-> Running build hook: [base]

-> Running build hook: [udev]

-> Running build hook: [autodetect]

-> Running build hook: [modconf]

-> Running build hook: [block]

==> WARNING: Possibly missing firmware for module: xhci_pci

-> Running build hook: [keyboard]

-> Running build hook: [keymap]

-> Running build hook: [consolefont]

-> Running build hook: [plymouth]

-> Running build hook: [filesystems]

==> ERROR: module not found: `nvidia'

==> ERROR: module not found: `nvidia_modeset'

==> ERROR: module not found: `nvidia_uvm'

==> ERROR: module not found: `nvidia_drm'

==> Generating module dependencies

==> Creating zstd-compressed initcpio image: /boot/initramfs-linux-lts.img

==> WARNING: errors were encountered during the build. The image may not be complete.

==> Building image from preset: /etc/mkinitcpio.d/linux-lts.preset: 'fallback'

-> -k /boot/vmlinuz-linux-lts -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-lts-fallback.img -S autodetect

==> Starting

build: 5.10.40-1-lts

-> Running build hook: [base]

-> Running build hook: [udev]

-> Running build hook: [modconf]

-> Running build hook: [block]

==> WARNING: Possibly missing firmware for module: aic94xx

==> WARNING: Possibly missing firmware for module: wd719x

==> WARNING: Possibly missing firmware for module: xhci_pci

-> Running build hook: [keyboard]

-> Running build hook: [keymap]

-> Running build hook: [consolefont]

-> Running build hook: [plymouth]

-> Running build hook: [filesystems]

==> ERROR: module not found: `nvidia'

==> ERROR: module not found: `nvidia_modeset'

==> ERROR: module not found: `nvidia_uvm'

==> ERROR: module not found: `nvidia_drm'

==> Generating module dependencies

==> Creating zstd-compressed initcpio image: /boot/initramfs-linux-lts-fallback.img

==> WARNING: errors were encountered during the build. The image may not be complete.

==> Building image from preset: /etc/mkinitcpio.d/linux-tkg-bmq.preset: 'default'

-> -k /boot/vmlinuz-linux-tkg-bmq -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-tkg-bmq.img

==> Starting build: 5.12.7-160-tkg-bmq

-> Running build hook: [base]

-> Running build hook: [udev]

-> Running build hook: [autodetect]

-> Running build hook: [modconf]

-> Running build hook: [block]

==> WARNING: Possibly missing firmware for module: xhci_pci

-> Running build hook: [keyboard]

-> Running build hook: [keymap]

-> Running build hook: [consolefont]

-> Running build hook: [plymouth]

-> Running build hook: [filesystems]

==> ERROR: module not found: `nvidia'

==> ERROR: module not found: `nvidia_modeset'

==> ERROR: module not found: `nvidia_uvm'

==> ERROR: module not found: `nvidia_drm'

==> Generating module dependencies

==> Creating zstd-compressed initcpio image: /boot/initramfs-linux-tkg-bmq.img

==> WARNING: errors were encountered during the build. The image may not be complete.

==> Building image from preset: /etc/mkinitcpio.d/linux-tkg-bmq.preset: 'fallback'

-> -k /boot/vmlinuz-linux-tkg-bmq -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-tkg-bmq-fallback.img -S autodetect

==> Starting build: 5.12.7-160-tkg-bmq

-> Running build hook: [base]

-> Running build hook: [udev]

-> Running build hook: [modconf]

-> Running build hook: [block]

==> WARNING: Possibly missing firmware for module: aic94xx

==> WARNING: Possibly missing firmware for module: wd719x

==> WARNING: Possibly missing firmware for module: xhci_pci

-> Running build hook: [keyboard]

-> Running build hook: [keymap]

-> Running build hook: [consolefont]

-> Running build hook: [plymouth]

-> Running build hook: [filesystems]

==> ERROR: module not found: `nvidia'

==> ERROR: module not found: `nvidia_modeset'

==> ERROR: module not found: `nvidia_uvm'

==> ERROR: module not found: `nvidia_drm'

==> Generating module dependencies

==> Creating zstd-compressed initcpio image: /boot/initramfs-linux-tkg-bmq-fallback.img

==> WARNING: errors were encountered during the build. The image may not be complete.

==> Building image from preset: /etc/mkinitcpio.d/linux-zen.preset: 'default'

-> -k /boot/vmlinuz-linux-zen -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-zen.img

==> Starting build: 5.12.7-zen1-1-zen

-> Running build hook: [base]

-> Running build hook: [udev]

-> Running build hook: [autodetect]

-> Running build hook: [modconf]

-> Running build hook: [block]

==> WARNING

: Possibly missing firmware for module: xhci_pci

-> Running build hook: [keyboard]

-> Running build hook: [keymap]

-> Running build hook: [consolefont]

-> Running build hook: [plymouth]

-> Running build hook: [filesystems]

==> ERROR: module not found: `nvidia'

==> ERROR: module not found: `nvidia_modeset'

==> ERROR: module not found: `nvidia_uvm'

==> ERROR: module not found: `nvidia_drm'

==> Generating module dependencies

==> Creating zstd-compressed initcpio image: /boot/initramfs-linux-zen.img

==> WARNING: errors were encountered during the build. The image may not be complete.

==> Building image from preset: /etc/mkinitcpio.d/linux-zen.preset: 'fallback'

-> -k /boot/vmlinuz-linux-zen -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-zen-fallback.img -S autodetect

==> Starting build: 5.12.7-zen1-1-zen

-> Running build hook: [base]

-> Running build hook: [udev]

-> Running build hook: [modconf]

-> Running build hook: [block]

==> WARNING: Possibly missing firmware for module: aic94xx

==> WARNING: Possibly missing firmware for module: wd719x

==> WARNING: Possibly missing firmware for module: xhci_pci

-> Running build hook: [keyboard]

-> Running build hook: [keymap]

-> Running build hook: [consolefont]

-> Running build hook: [plymouth]

-> Running build hook: [filesystems]

==> ERROR: module not found: `nvidia'

==> ERROR: module not found: `nvidia_modeset'

==> ERROR: module not found: `nvidia_uvm'

==> ERROR: module not found: `nvidia_drm'

==> Generating module dependencies

==> Creating zstd-compressed initcpio image: /boot/initramfs-linux-zen-fallback.img

==> WARNING: errors were encountered during the build. The image may not be complete.

> Successfully installed video-nvidia-dkms

Done ...

On installing via settings there were some errors but it showed that driver was installed. I am not sure if i am doing anything wrong

This is the driver package for the linux kernel. It won’t do anything on other kernels.

Compare that to the mhwd output:

This is the DKMS driver that is built for each installed kernel. Now, looking further:

Something is causing the compilation process to fail. Therefore, either look at the contents of

to determine why, or pastebin and link so someone here can see.

2 Likes
DKMS make.log for nvidia-465.31 for kernel 5.10.40-1-lts (x86_64)
Sat May 29 01:10:19 +0545 2021
make[1]: Entering directory '/usr/lib/modules/5.10.40-1-lts/build'
make[1]: cc: No such file or directory
make[1]: make: No such file or directory
make[1]: *** [Makefile:1821: /var/lib/dkms/nvidia/465.31/build] Error 127
make[1]: Leaving directory '/usr/lib/modules/5.10.40-1-lts/build'
make: *** [Makefile:80: modules] Error 2

This is the content of ~~~ /var/lib/dkms/nvidia/465.31/build/make.log~~~ It says no File error. I dont remember deleting any files anytime.

I thought base-devel was installed by default…

Ah, well, run:

sudo pacman -Syu base-devel

and then try installing the drivers again.

2 Likes

Drive with open source,Default during installation

Reading your posted terminal outputs, I think your system is in an unknown condition right now.
Maybe it is possible to boot safely to the linux kernel, but IIUC you don't have it installed.

Anyway, I think it is safer for now to reboot and select a previous snapshot, before all these changes (from yesterday?).

Then

  • Run Timeshift GUI and restore the snapshot you have just booted.
  • Reboot and select a normal kernel (linux-lts is a good choice)
  • Apply a system packages update (pacman -Syu)
  • Reboot again to linux-lts
  • Open Garuda Hardware Manager and click "Auto-install proprietary drivers")

If there are errors again. post relevant info.
If not reboot to check status.

4 Likes

Auto Installing proprietary drivers gave:

Starting

> Using config 'video-nvidia-dkms' for device: 0000:01:00.0 (0300:10de:1287) Display controller nVidia Corporation GK208B [GeForce GT 730]

> Installing video-nvidia-dkms...

Sourcing /etc/mhwd-x86_64.conf

Has lib32 support: true

Sourcing /var/lib/mhwd/db/pci/graphic_drivers/nvidia-dkms/MHWDCONFIG

Processing classid: 0300

Sourcing /var/lib/mhwd/scripts/include/0300

Processing classid: 0302

:: Synchronizing package databases...

core is up to date

extra is up to date

community is up to date

multilib is up to date

chaotic-aur is up to date

resolving dependencies...

looking for conflicting packages...

warning: dependency cycle detected:

warning: eglexternalplatform will be installed before its nvidia-utils dependency

Packages (21) dkms-2.8.4-1 eglexternalplatform-1.1-2 gobject-introspection-1.68.0-1 libdazzle-3.40.0-1 libxnvctrl-465.27-1 python-beaker-1.11.0-6 python-injector-0.18.4-1 python-mako-1.1.4-1 python-peewee-3.14.4-1 python-py3nvml-0.2.6-1 python-rx-3.2.0-1 python-typing_extensions-3.10.0.0-1 python-xlib-0.30-1 egl-wayland-1.1.7-1 gwe-0.15.3-1 lib32-nvidia-utils-465.31-1 lib32-opencl-nvidia-465.31-1 nvidia-dkms-465.31-1 nvidia-settings-465.27-1 nvidia-utils-465.31-1 opencl-nvidia-465.31-1

Total Installed Size: 723.02 MiB

:: Proceed with installation? [Y/n]

checking keyring...

checking package integrity...

loading package files...

checking for file conflicts...

checking available disk space...

:: Processing package changes...

installing eglexternalplatform...

installing egl-wayland...

installing nvidia-utils...

If you run into trouble with CUDA not being available, run nvidia-modprobe first.

Optional dependencies for nvidia-utils

nvidia-settings: configuration tool [pending]

xorg-server-devel: nvidia-xconfig

opencl-nvidia: OpenCL support [pending]

installing libxnvctrl...

installing nvidia-settings...

installing opencl-nvidia...

Optional dependencies for opencl-nvidia

opencl-headers: headers necessary for OpenCL development

installing python-beaker...

installing python-mako...

installing gobject-introspection...

installing libdazzle...

installing python-typing_extensions...

installing python-injector...

installing python-peewee...

Optional dependencies for python-peewee

python-psycopg2: for PostgreSQL database support

mysql-python: for MySQL database support

installing python-py3nvml...

installing python-rx...

installing python-xlib...

installing gwe...

installing lib32-nvidia-utils...

Optional dependencies for lib32-nvidia-utils

lib32-opencl-nvidia [pending]

installing lib32-opencl-nvidia...

Optional dependencies for lib32-opencl-nvidia

opencl-headers: headers necessary for OpenCL development

installing dkms...

Optional dependencies for dkms

linux-headers: build modules against the Arch kernel [installed]

linux-lts-headers: build modules against the LTS kernel [installed]

linux-zen-headers: build modules against the ZEN kernel [installed]

linux-hardened-headers: build modules against the HARDENED kernel

installing nvidia-dkms...

:: Running post-transaction hooks...

( 1/14) Syncing all file systems...

( 2/14) Creating system user accounts...

Creating group nvidia-persistenced with gid 143.

Creating user nvidia-persistenced (NVIDIA Persistence Daemon) with uid 143 and gid 143.

( 3/14) Reloading system manager configuration...

( 4/14) Arming ConditionNeedsUpdate...

( 5/14) Install DKMS modules

==> dkms install --no-depmod -m nvidia -v 465.31 -k 5.10.40-1-lts

e[

mError! Bad return status for module build on kernel: 5.10.40-1-lts (x86_64)

Consult /var/lib/dkms/nvidia/465.31/build/make.log for more information.

==> Warning, `dkms install --no-depmod -m nvidia -v 465.31 -k 5.10.40-1-lts' returned 10

==> depmod 5.10.40-1-lts

==> Unable to install module nvidia/465.31 for kernel 5.12.7-160-tkg-bmq: Missing kernel modules tree.

==> Unable to install module nvidia/465.31 for kernel 5.12.7-zen1-1-zen: Missing kernel modules tree.

( 6/14) Foreign/AUR package notification

=> No foreign/AUR packages found.

( 7/14) Compiling GSettings XML schema files...

( 8/14) Updating icon theme caches...

( 9/14) Mkinitcpio and GRUB update after transactions...

==> Building image from preset: /etc/mkinitcpio.d/linux-lts.preset: 'default'

-> -k /boot/vmlinuz-linux-lts -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-lts.img

==> Starting build: 5.10.40-1-lts

-> Running build hook: [base]

-> Running build hook: [udev]

-> Running build hook: [autodetect]

-> Running build hook: [modconf]

-> Running build hook: [block]

==> WARNING: Possibly missing firmware for module: xhci_pci

-> Running build hook: [keyboard]

-> Running build hook: [keymap]

-> Running build hook: [consolefont]

-> Running build hook: [plymouth]

-> Running build hook: [filesystems]

==> Generating module dependencies

==> Creating zstd-compressed initcpio image: /boot/initramfs-linux-lts.img

==> Image generation successful

==> Building image from preset: /etc/mkinitcpio.d/linux-lts.preset: 'fallback'

-> -k /boot/vmlinuz-linux-lts -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-lts-fallback.img -S autodetect

==> Starting build: 5.10.40-1-lts

-> Running build hook: [base]

-> Running build hook: [udev]

-> Running build hook: [modconf]

-> Running build hook: [block]

==> WARNING: Possibly missing firmware for module: aic94xx

==> WARNING: Possibly missing firmware for module: wd719x

==> WARNING: Possibly missing firmware for module: xhci_pci

-> Running build hook: [keyboard]

-> Running build hook: [keymap]

-> Running build hook: [consolefont]

-> Running build hook: [plymouth]

-> Running build hook: [filesystems]

==> Generating module dependencies

==> Creating zstd-compressed initcpio image: /boot/initramfs-linux-lts-fallback.img

==> Image generation successful

Generating grub configuration file ...

Found theme: /usr/share/grub/themes/garuda-dr460nized/theme.txt

Found linux image: /boot/vmlinuz-linux-lts

Found initrd image: /boot/amd-ucode.img /boot/initramfs-linux-lts.img

Found fallback initrd image(s) in /boot: initramfs-linux-lts-fallback.img

which: no umount in ((null))

Detecting snapshots ...

Info: Separate boot partition not detected

Found snapshot: 2021-05-29 06:28:07 | timeshift-btrfs/snapshots/2021-05-29_06-28-07/@

Found snapshot: 2021-05-29 06:25:03 | timeshift-btrfs/snapshots/2021-05-29_06-25-03/@

Found snapshot: 2021-05-29 06:22:02 | timeshift-btrfs/snapshots/2021-05-29_06-22-02/@

Found snapshot: 2021-05-29 06:09:01 | timeshift-btrfs/snapshots/2021-05-29_06-09-01/@

Found snapshot: 2021-05-29 05:40:41 | timeshift-btrfs/snapshots/2021-05-29_05-40-41/@

Found snapshot: 2021-05-29 02:28:28 | timeshift-btrfs/snapshots/2021-05-29_05-34-33/@

Found snapshot: 2021-05-28 23:40:11 | timeshift-btrfs/snapshots/2021-05-29_02-28-28/@

Found snapshot: 2021-05-28 23:00:01 | timeshift-btrfs/snapshots/2021-05-28_23-00-01/@

Found snapshot: 2021-05-28 07:35:55 | timeshift-btrfs/snapshots/2021-05-28_23-40-

11/@

Found snapshot: 2021-05-28 07:34:59 | timeshift-btrfs/snapshots/2021-05-28_07-34-59/@

Found snapshot: 2021-05-28 07:31:59 | timeshift-btrfs/snapshots/2021-05-28_07-34-38/@

Found snapshot: 2021-05-28 03:27:05 | timeshift-btrfs/snapshots/2021-05-28_07-31-45/@

Found snapshot: 2021-05-28 03:24:26 | timeshift-btrfs/snapshots/2021-05-28_03-26-36/@

Found snapshot: 2021-05-28 03:21:24 | timeshift-btrfs/snapshots/2021-05-28_03-24-26/@

Found snapshot: 2021-05-27 23:00:02 | timeshift-btrfs/snapshots/2021-05-27_23-00-02/@

Found snapshot: 2021-05-26 20:28:38 | timeshift-btrfs/snapshots/2021-05-28_03-21-24/@

Found snapshot: 2021-05-26 20:04:04 | timeshift-btrfs/snapshots/2021-05-26_20-28-38/@

Found 17 snapshot(s)

Found memtest86+ image: /boot/memtest86+/memtest.bin

done

(10/14) Orphaned package notification...

=> No orphans found.

(11/14) Checking for .pacnew and .pacsave files...

.pac* files found:

/etc/pacman.d/mirrorlist.pacnew

/etc/systemd/system.conf.pacnew

/etc/systemd/user.conf.pacnew

Please check and merge

(12/14) Updating pkgfile database...

(13/14) Updating the desktop file MIME type cache...

(14/14) Syncing all file systems...

nvidia-utils: install reason has been set to 'explicitly installed'

nvidia-settings: install reason has been set to 'explicitly installed'

opencl-nvidia: install reason has been set to 'explicitly installed'

egl-wayland: install reason has been set to 'explicitly installed'

gwe: install reason has been set to 'explicitly installed'

lib32-nvidia-utils: install reason has been set to 'explicitly installed'

lib32-opencl-nvidia: install reason has been set to 'explicitly installed'

nvidia-dkms: install reason has been set to 'explicitly installed'

nvidia-dkms: install reason has been set to 'explicitly installed'

xorg configuration file: '/etc/X11/mhwd.d/nvidia.conf'

==> Building image from preset: /etc/mkinitcpio.d/linux-lts.preset: 'default'

-> -k /boot/vmlinuz-linux-lts -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-lts.img

==> Starting build: 5.10.40-1-lts

-> Running build hook: [base]

-> Running build hook: [udev]

-> Running build hook: [autodetect]

-> Running build hook: [modconf]

-> Running build hook: [block]

==> WARNING: Possibly missing firmware for module: xhci_pci

-> Running build hook: [keyboard]

-> Running build hook: [keymap]

-> Running build hook: [consolefont]

-> Running build hook: [plymouth]

-> Running build hook: [filesystems]

==> ERROR: module not found: `nvidia'

==> ERROR: module not found: `nvidia_modeset'

==> ERROR: module not found: `nvidia_uvm'

==> ERROR: module not found: `nvidia_drm'

==> Generating module dependencies

==> Creating zstd-compressed initcpio image: /boot/initramfs-linux-lts.img

==> WARNING: errors were encountered during the build. The image may not be complete.

==> Building image from preset: /etc/mkinitcpio.d/linux-lts.preset: 'fallback'

-> -k /boot/vmlinuz-linux-lts -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-lts-fallback.img -S autodetect

==> Starting build: 5.10.40-1-lts

-> Running build hook: [base]

-> Running build hook: [udev]

-> Running build hook: [modconf]

-> Running build hook: [block]

==> WARNING: Possibly missing firmware for module: aic94xx

==> WARNING: Possibly missing firmware for module: wd719x

==> WARNING: Possibly missing firmware for module: xhci_pci

-> Running build hook: [keyboard]

-> Running build hook: [keymap]

-> Running build

hook: [consolefont]

-> Running build hook: [plymouth]

-> Running build hook: [filesystems]

==> ERROR: module not found: `nvidia'

==> ERROR: module not found: `nvidia_modeset'

==> ERROR: module not found: `nvidia_uvm'

==> ERROR: module not found: `nvidia_drm'

==> Generating module dependencies

==> Creating zstd-compressed initcpio image: /boot/initramfs-linux-lts-fallback.img

==> WARNING: errors were encountered during the build. The image may not be complete.

> Successfully installed video-nvidia-dkms

Done ...

on reboot I faced the same issue of being stuck in boot. Here are the images of 2 tries if it helps. In both cases I waited about 5 Mins before deciding to reboot.

cat /proc/version
Linux version 5.10.40-1-lts (linux-lts@archlinux) (gcc (GCC) 11.1.0, GNU ld (GNU Binutils) 2.36.1) #1 SMP Wed,
26 May 2021 11:47:57 +0000

Thanks a lot for your time and effort. It is fixed now which certainly wouldn’t be possible without the admins help. Proud to install Garuda.
Appperantly the problem was with dependency modules not being installed.

I saw in a thread about suggestion to install nvidia-lts package for the kernel and the issue got fixed after that. Thanks a lot!!

I doubt this was the real issue. This is supposed to be installed automatically by mhwd anyway.
If you have (un)installed packages with pacman (and think this fixed your issue), it may mean there may be a bug in mhwd/MSM

What installation ISO have you used to install?