Nvidia driver problems install (lightdm won’t start)

I tried to fix the Flickering issue in

Now lightdm won’t start

mhwd -i pci video-nvidia-570xx
sudo mhwd -i pci video-nvidia-570xx
> Installing video-nvidia-570xx...
Sourcing /etc/mhwd-x86_64.conf
Has lib32 support: true
Sourcing /var/lib/mhwd/db/pci/graphic_drivers/nvidia-570xx/MHWDCONFIG
Processing classid: 0300
Sourcing /var/lib/mhwd/scripts/include/0300
Processing classid: 0302
:: Synchronizing package databases...
 core downloading...
 extra downloading...
 multilib downloading...
resolving dependencies...
looking for conflicting packages...
warning: dependency cycle detected:
warning: eglexternalplatform will be installed before its nvidia-570xx-utils dependency

Packages (9) egl-gbm-1.1.2.1-1  egl-wayland-4:1.1.21-1  egl-x11-1.0.4-1  eglexternalplatform-1.2.1-1  lib32-nvidia-570xx-utils-570.207-1  linux617-nvidia-570xx-open-570.207-6  linux618-nvidia-570xx-open-570.207-4  nvidia-570xx-settings-570.207-2  nvidia-570xx-utils-570.207-2

Total Installed Size:  1055.87 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 egl-gbm...
installing egl-x11...
installing nvidia-570xx-utils...
Created symlink '/etc/systemd/system/systemd-suspend.service.wants/nvidia-resume.service' → '/usr/lib/systemd/system/nvidia-resume.service'.
Created symlink '/etc/systemd/system/systemd-hibernate.service.wants/nvidia-resume.service' → '/usr/lib/systemd/system/nvidia-resume.service'.
Created symlink '/etc/systemd/system/systemd-suspend-then-hibernate.service.wants/nvidia-resume.service' → '/usr/lib/systemd/system/nvidia-resume.service'.
Created symlink '/etc/systemd/system/systemd-hibernate.service.wants/nvidia-hibernate.service' → '/usr/lib/systemd/system/nvidia-hibernate.service'.
Created symlink '/etc/systemd/system/systemd-suspend.service.wants/nvidia-suspend.service' → '/usr/lib/systemd/system/nvidia-suspend.service'.
Created symlink '/etc/systemd/system/systemd-suspend-then-hibernate.service.wants/nvidia-suspend-then-hibernate.service' → '/usr/lib/systemd/system/nvidia-suspend-then-hibernate.service'.
Optional dependencies for nvidia-570xx-utils
    nvidia-570xx-settings: configuration tool [pending]
    xorg-server: Xorg support [installed]
    xorg-server-devel: nvidia-xconfig
    opencl-nvidia-570xx=570.207: OpenCL support
installing nvidia-570xx-settings...
installing lib32-nvidia-570xx-utils...
Optional dependencies for lib32-nvidia-570xx-utils
    lib32-opencl-nvidia-570xx
installing linux617-nvidia-570xx-open...
installing linux618-nvidia-570xx-open...
:: Running post-transaction hooks...
(1/8) Creating system user accounts...
(2/8) Reloading system manager configuration...
(3/8) Reloading device manager configuration...
(4/8) Arming ConditionNeedsUpdate...
(5/8) Updating module dependencies...
(6/8) Updating linux initcpios...
==> Building image from preset: /etc/mkinitcpio.d/linux617.preset: 'default'
==> Using default configuration file: '/etc/mkinitcpio.conf'
  -> -k /boot/vmlinuz-6.17-x86_64 -g /boot/initramfs-6.17-x86_64.img
==> Starting build: '6.17.12-1-MANJARO'
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
  -> Running build hook: [kms]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
  -> Running build hook: [consolefont]
  -> Running build hook: [plymouth]
  -> Running build hook: [filesystems]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: '/boot/initramfs-6.17-x86_64.img'
  -> Early uncompressed CPIO image generation successful
==> Initcpio image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux618.preset: 'default'
==> Using default configuration file: '/etc/mkinitcpio.conf'
  -> -k /boot/vmlinuz-6.18-x86_64 -g /boot/initramfs-6.18-x86_64.img
==> Starting build: '6.18.1-1-MANJARO'
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
  -> Running build hook: [kms]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
  -> Running build hook: [consolefont]
  -> Running build hook: [plymouth]
  -> Running build hook: [filesystems]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: '/boot/initramfs-6.18-x86_64.img'
  -> Early uncompressed CPIO image generation successful
==> Initcpio image generation successful
(7/8) Reloading system bus configuration...
(8/8) Updating the desktop file MIME type cache...
nvidia-570xx-utils: install reason has been set to 'explicitly installed'
nvidia-570xx-settings: install reason has been set to 'explicitly installed'
lib32-nvidia-570xx-utils: install reason has been set to 'explicitly installed'
linux617-nvidia-570xx-open: install reason has been set to 'explicitly installed'
linux618-nvidia-570xx-open: install reason has been set to 'explicitly installed'
rmmod: ERROR: could not remove 'nouveau': No such file or directory
rmmod: ERROR: could not remove module nouveau: No such file or directory
rmmod: ERROR: could not remove 'ttm': No such file or directory
rmmod: ERROR: could not remove module ttm: No such file or directory
rmmod: ERROR: could not remove 'drm_kms_helper': No such file or directory
rmmod: ERROR: could not remove module drm_kms_helper: No such file or directory
rmmod: ERROR: could not remove 'drm': No such file or directory
rmmod: ERROR: could not remove module drm: No such file or directory
modprobe: FATAL: Module nvidia not found in directory /lib/modules/6.17.12-1-MANJARO
xorg configuration file: '/etc/X11/mhwd.d/nvidia.conf'
modprobe: FATAL: Module nvidia_drm not found in directory /lib/modules/6.17.12-1-MANJARO
> Successfully installed video-nvidia-570xx
Xorg.0.log
cat /var/log/Xorg.0.log
[     6.721]
X.Org X Server 1.21.1.21
X Protocol Version 11, Revision 0
[     6.721] Current Operating System: Linux joel-man 6.17.12-1-MANJARO #1 SMP PREEMPT_DYNAMIC Fri, 12 Dec 2025 19:42:49 +0000 x86_64
[     6.721] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-6.17-x86_64 root=UUID=b32fec85-6680-4f13-90d2-4704491d2a55 rw quiet splash udev.log_priority=3
[     6.721]
[     6.721] Current version of pixman: 0.46.4
[     6.721]    Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
[     6.721] Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[     6.721] (==) Log file: "/var/log/Xorg.0.log", Time: Sat Dec 20 14:02:13 2025
[     6.721] (==) Using config directory: "/etc/X11/xorg.conf.d"
[     6.721] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[     6.721] (==) ServerLayout "Layout0"
[     6.721] (**) |-->Screen "Screen0" (0)
[     6.721] (**) |   |-->Monitor "Monitor0"
[     6.721] (**) |   |-->Device "Device0"
[     6.721] (**) |-->Input Device "Keyboard0"
[     6.721] (**) |-->Input Device "Mouse0"
[     6.721] (**) Allowing byte-swapped clients
[     6.721] (==) Automatically adding devices
[     6.721] (==) Automatically enabling devices
[     6.721] (==) Automatically adding GPU devices
[     6.721] (==) Automatically binding GPU devices
[     6.721] (==) Max clients allowed: 256, resource mask: 0x1fffff
[     6.721] (WW) The directory "/usr/share/fonts/Type1" does not exist.
[     6.721]    Entry deleted from font path.
[     6.721] (WW) The directory "/usr/share/fonts/100dpi" does not exist.
[     6.721]    Entry deleted from font path.
[     6.721] (WW) The directory "/usr/share/fonts/75dpi" does not exist.
[     6.721]    Entry deleted from font path.
[     6.721] (==) FontPath set to:
        /usr/share/fonts/misc,
        /usr/share/fonts/TTF,
        /usr/share/fonts/OTF
[     6.721] (==) ModulePath set to "/usr/lib/xorg/modules"
[     6.721] (**) Extension "COMPOSITE" is enabled
[     6.721] (WW) Hotplugging is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.
[     6.721] (WW) Disabling Keyboard0
[     6.721] (WW) Disabling Mouse0
[     6.721] (II) Module ABI versions:
[     6.721]    X.Org ANSI C Emulation: 0.4
[     6.721]    X.Org Video Driver: 25.2
[     6.721]    X.Org XInput driver : 24.4
[     6.721]    X.Org Server Extension : 10.0
[     6.721] (++) using VT number 7

[     6.721] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
[     6.722] (II) xfree86: Adding drm device (/dev/dri/card0)
[     6.722] (II) Platform probe for /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/simple-framebuffer.0/drm/card0
[     6.727] (--) PCI:*(1@0:0:0) 10de:1b81:1028:3301 rev 161, Mem @ 0xde000000/16777216, 0xc0000000/268435456, 0xd0000000/33554432, I/O @ 0x0000e000/128, BIOS @ 0x????????/131072
[     6.727] (II) LoadModule: "glx"
[     6.727] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[     6.728] (II) Module glx: vendor="X.Org Foundation"
[     6.728]    compiled for 1.21.1.21, module version = 1.0.0
[     6.728]    ABI class: X.Org Server Extension, version 10.0
[     6.728] (II) LoadModule: "nvidia"
[     6.728] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
[     6.728] (II) Module nvidia: vendor="NVIDIA Corporation"
[     6.728]    compiled for 1.6.99.901, module version = 1.0.0
[     6.728]    Module class: X.Org Video Driver
[     6.728] (II) NVIDIA dlloader X Driver  570.207  Fri Nov 14 21:30:43 UTC 2025
[     6.728] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[     6.728] (II) Loading sub module "fb"
[     6.728] (II) LoadModule: "fb"
[     6.728] (II) Module "fb" already built-in
[     6.728] (II) Loading sub module "wfb"
[     6.728] (II) LoadModule: "wfb"
[     6.728] (II) Loading /usr/lib/xorg/modules/libwfb.so
[     6.728] (II) Module wfb: vendor="X.Org Foundation"
[     6.728]    compiled for 1.21.1.21, module version = 1.0.0
[     6.728]    ABI class: X.Org ANSI C Emulation, version 0.4
[     6.730] (EE) NVIDIA: Failed to initialize the NVIDIA kernel module. Please see the
[     6.730] (EE) NVIDIA:     system's kernel log for additional error messages and
[     6.730] (EE) NVIDIA:     consult the NVIDIA README for details.
[     6.732] (EE) NVIDIA: Failed to initialize the NVIDIA kernel module. Please see the
[     6.732] (EE) NVIDIA:     system's kernel log for additional error messages and
[     6.732] (EE) NVIDIA:     consult the NVIDIA README for details.
[     6.734] (EE) NVIDIA: Failed to initialize the NVIDIA kernel module. Please see the
[     6.734] (EE) NVIDIA:     system's kernel log for additional error messages and
[     6.734] (EE) NVIDIA:     consult the NVIDIA README for details.
[     6.736] (EE) NVIDIA: Failed to initialize the NVIDIA kernel module. Please see the
[     6.736] (EE) NVIDIA:     system's kernel log for additional error messages and
[     6.736] (EE) NVIDIA:     consult the NVIDIA README for details.
[     6.736] (EE) No devices detected.
[     6.736] (EE)
Fatal server error:
[     6.736] (EE) no screens found(EE)
[     6.736] (EE)
Please consult the The X.Org Foundation support
         at http://wiki.x.org
 for help.
[     6.736] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[     6.736] (EE)
[     6.736] (EE) Server terminated with error (1). Closing log file.
inxi -Fazy
inxi -Fazy
System:
Kernel: 6.17.12-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 15.2.1
 clocksource: tsc avail: hpet,acpi_pm
 parameters: BOOT_IMAGE=/boot/vmlinuz-6.17-x86_64
 root=UUID=b32fec85-6680-4f13-90d2-4704491d2a55 rw quiet splash
 udev.log_priority=3
Console: pty pts/0 DM: LightDM v: 1.32.0 Distro: Manjaro base: Arch Linux
Machine:
Type: Desktop System: Dell product: Inspiron 5680 v: 2.2.0
 serial: <superuser required> Chassis: type: 3 serial: <superuser required>
Mobo: Dell model: 0PXWHK v: A00 serial: <superuser required> part-nu: 0874
 uuid: <superuser required> Firmware: UEFI vendor: Dell v: 2.2.0
 date: 12/05/2019
CPU:
Info: model: Intel Core i7-8700 bits: 64 type: MT MCP arch: Coffee Lake
 gen: core 8 level: v3 note: check built: 2018 process: Intel 14nm family: 6
 model-id: 0x9E (158) stepping: 0xA (10) microcode: 0xFA
Topology: cpus: 1x dies: 1 clusters: 6 cores: 6 threads: 12 tpc: 2
 smt: enabled cache: L1: 384 KiB desc: d-6x32 KiB; i-6x32 KiB L2: 1.5 MiB
 desc: 6x256 KiB L3: 12 MiB desc: 1x12 MiB
Speed (MHz): avg: 900 min/max: 800/4600 scaling: driver: intel_pstate
 governor: powersave cores: 1: 900 2: 900 3: 900 4: 900 5: 900 6: 900 7: 900
 8: 900 9: 900 10: 900 11: 900 12: 900 bogomips: 76799
Flags-basic: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Vulnerabilities:
Type: gather_data_sampling mitigation: Microcode
Type: ghostwrite status: Not affected
Type: indirect_target_selection status: Not affected
Type: itlb_multihit status: KVM: VMX disabled
Type: l1tf mitigation: PTE Inversion; VMX: conditional cache flushes, SMT
 vulnerable
Type: mds mitigation: Clear CPU buffers; SMT vulnerable
Type: meltdown mitigation: PTI
Type: mmio_stale_data mitigation: Clear CPU buffers; SMT vulnerable
Type: old_microcode status: Not affected
Type: reg_file_data_sampling status: Not affected
Type: retbleed mitigation: IBRS
Type: spec_rstack_overflow status: Not affected
Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via
 prctl
Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
 sanitization
Type: spectre_v2 mitigation: IBRS; IBPB: conditional; STIBP: conditional;
 RSB filling; PBRSB-eIBRS: Not affected; BHI: Not affected
Type: srbds mitigation: Microcode
Type: tsa status: Not affected
Type: tsx_async_abort mitigation: TSX disabled
Type: vmscape mitigation: IBPB before exit to userspace
Graphics:
Device-1: NVIDIA GP104 [GeForce GTX 1070] vendor: Dell driver: N/A
 alternate: nouveau, nova_core non-free: 550-580.xx+ status: current (as of
 2025-11; EOL~2026-12-xx) arch: Pascal code: GP10x process: TSMC 16nm
 built: 2016-2021 pcie: gen: 1 speed: 2.5 GT/s lanes: 16 link-max: gen: 3
 speed: 8 GT/s bus-ID: 01:00.0 chip-ID: 10de:1b81 class-ID: 0300
Display: unspecified server: X.org v: 1.21.1.21 with: Xwayland v: 24.1.9
 driver: X: loaded: N/A failed: nvidia gpu: N/A tty: 102x51
Monitor-1: Unknown-1 size-res: N/A in console modes: 1920x1080
API: EGL v: 1.5 platforms: device: 0 drv: swrast surfaceless: drv: swrast
 inactive: gbm,wayland,x11
API: OpenGL v: 4.5 vendor: mesa v: 25.3.1-arch1.2
 note: console (EGL sourced) renderer: llvmpipe (LLVM 21.1.6 256 bits)
API: Vulkan Message: No Vulkan data available.
Info: Tools: api: eglinfo, glxinfo, vulkaninfo de: xfce4-display-settings
 gpu: lact, nvidia-settings, nvidia-smi wl: wayland-info x11: xprop,xrandr
Audio:
Device-1: Intel 200 Series PCH HD Audio vendor: Dell driver: snd_hda_intel
 v: kernel alternate: snd_soc_avs bus-ID: 00:1f.3 chip-ID: 8086:a2f0
 class-ID: 0403
Device-2: NVIDIA GP104 High Definition Audio vendor: Dell
 driver: snd_hda_intel v: kernel alternate: nova_core pcie: gen: 1
 speed: 2.5 GT/s lanes: 16 link-max: gen: 3 speed: 8 GT/s bus-ID: 01:00.1
 chip-ID: 10de:10f0 class-ID: 0403
API: ALSA v: k6.17.12-1-MANJARO status: kernel-api with: aoss
 type: oss-emulator tools: alsactl,alsamixer,amixer
Server-1: sndiod v: N/A status: off tools: aucat,midicat,sndioctl
Server-2: JACK v: 1.9.22 status: off tools: N/A
Server-3: PipeWire v: 1.4.9 status: off with: 1: pipewire-pulse status: off
 2: wireplumber status: off 3: pipewire-alsa type: plugin
 tools: pactl,pw-cat,pw-cli,wpctl
Network:
Device-1: Realtek RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet
 vendor: Dell driver: r8169 v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 1
 port: d000 bus-ID: 02:00.0 chip-ID: 10ec:8168 class-ID: 0200
IF: enp2s0 state: down mac: <filter>
Device-2: Qualcomm Atheros QCA9377 802.11ac Wireless Network Adapter
 vendor: Dell driver: ath10k_pci v: kernel pcie: gen: 1 speed: 2.5 GT/s
 lanes: 1 bus-ID: 03:00.0 chip-ID: 168c:0042 class-ID: 0280
IF: wlp3s0 state: up mac: <filter>
IF-ID-1: virbr0 state: down mac: <filter>
IF-ID-2: virbr1 state: down mac: <filter>
Info: services: NetworkManager, sshd, systemd-timesyncd, wpa_supplicant
Bluetooth:
Device-1: Qualcomm Atheros driver: btusb v: 0.8 type: USB rev: 2.0
 speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 1-12:4 chip-ID: 0cf3:e009
 class-ID: e001
Report: btmgmt ID: hci0 rfk-id: 0 state: up address: <filter> bt-v: 4.2
 lmp-v: 8 status: discoverable: no pairing: no class-ID: 104
RAID:
Hardware-1: Intel SATA Controller [RAID mode] driver: ahci v: 3.0 port: f020
 bus-ID: 00:17.0 chip-ID: 8086:2822 rev: class-ID: 0104
Drives:
Local Storage: total: 2.05 TiB used: 279.17 GiB (13.3%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/sda maj-min: 8:0 vendor: Seagate model: ST1000DM010-2EP102
 size: 931.51 GiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
 tech: HDD rpm: 7200 serial: <filter> fw-rev: CC43 scheme: GPT
ID-2: /dev/sdb maj-min: 8:16 vendor: SK Hynix model: SC311 SATA 256GB
 size: 238.47 GiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
 tech: SSD serial: <filter> fw-rev: 0P10 scheme: GPT
ID-3: /dev/sdc maj-min: 8:32 vendor: Samsung model: SSD 870 EVO 1TB
 size: 931.51 GiB block-size: physical: 512 B logical: 512 B type: USB
 rev: 3.1 spd: 5 Gb/s lanes: 1 mode: 3.2 gen-1x1 tech: SSD serial: <filter>
 scheme: GPT
Partition:
ID-1: / raw-size: 931.22 GiB size: 915.53 GiB (98.32%)
 used: 279.17 GiB (30.5%) fs: ext4 dev: /dev/sdc2 maj-min: 8:34
ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
 used: 364 KiB (0.1%) fs: vfat dev: /dev/sdc1 maj-min: 8:33
Swap:
Alert: No swap data was found.
Sensors:
System Temperatures: cpu: 38.0 C mobo: N/A
Fan Speeds (rpm): cpu: 1186 fan-2: 748
Info:
Memory: total: 32 GiB note: est. available: 31.14 GiB used: 792.8 MiB (2.5%)
Processes: 209 Power: uptime: 16m states: freeze,mem,disk suspend: deep
 avail: s2idle wakeups: 0 hibernate: platform avail: shutdown, reboot,
 suspend, test_resume image: 12.4 GiB Init: systemd v: 258
 default: graphical tool: systemctl
Packages: 1499 pm: pacman pkgs: 1479 libs: 384 tools: pamac pm: flatpak
 pkgs: 20 Compilers: clang: 21.1.6 gcc: 15.2.1 Shell: Bash v: 5.3.8
 running-in: pty pts/0 inxi: 3.3.40

See: dmesg for additional information.

Anyway, it seems that the current driver is not compiled against the current kernel version, therefore it cannot load. Did you try the current LTS kernel 6.12?

1 Like

Is EOL, pls switch to LTS 6.12 or 6.18…

no Devices .. bad driver ?!

my tip:
470xx driver for your

sudo mhwd -r pci video-nvidia && sudo mhwd -i pci video-nvidia-470xx

Try running nvidia-recommended-driver.

mhwd prioritises the open driver - this may or may not be desirable.

To work around that you can reset the changes made by mhwd

mhwd -r pci video-nvidia-570xx

Then

pacman -Syu linuxXY-nvidia-570xx

mhwd is also attempting to configure your GPU according to this configuration script

cat /var/lib/mhwd/db/pci/graphic_drivers/nvidia-570xx/MHWDCONFIG
cat /var/lib/mhwd/db/pci/graphic_drivers/nvidia-570xx/MHWDCONFIG
# mhwd Driver Config

NAME="video-nvidia-570xx"
INFO="Closed source NVIDIA 570xx drivers for linux."
VERSION="2025.09.29"
FREEDRIVER="false"
PRIORITY="5"

CLASSIDS="0300 0302"
VENDORIDS="10de"
DEVICEIDS=">/var/lib/mhwd/ids/pci/nvidia-570xx.ids"

# Conflicts
CONFLICTS="nvidia-390xx-utils nvidia-390xx-settings libxnvctrl-390xx nvidia-470xx-utils nvidia-470xx-settings libxnvctrl-470xx nvidia-575xx-utils nvidia-575xx-settings nvidia-utils nvidia-settings"
CONFLICTS_64="lib32-nvidia-390xx-utils lib32-nvidia-575xx-utils lib32-nvidia-utils"
CONKMOD="nvidia-390xx nvidia-470xx nvidia-575xx nvidia"
[[ "$(nvidia-recommended-driver)" == "open" ]] && CONKMOD+=" nvidia-570xx"

# Conflicts with other mhwd configs
MHWDCONFLICTS="video*nvidia*"

# Dependencies
DEPENDS="nvidia-570xx-utils nvidia-570xx-settings"
DEPENDS_64="lib32-nvidia-570xx-utils"
DEPKMOD="nvidia-570xx"
[[ "$(nvidia-recommended-driver)" == "open" ]] && DEPKMOD="nvidia-570xx-open"

XORGFILE="/etc/X11/mhwd.d/nvidia.conf"
MHWDGPU_MODOPTNVIDIA="/etc/modprobe.d/mhwd-gpu.conf"
MHWDGPU_MODLDNVIDIA="/etc/modules-load.d/mhwd-gpu.conf"

fix_screen_flickering()
{
        sed -i /'Section "Device"'/,/'EndSection'/s/'EndSection'/"\tOption \"RegistryDwords\" \"PowerMizerEnable=0x1; PerfLevelSrc=0x2222; PowerMizerDefault=0x2; PowerMizerDefaultAC=0x1\"\nEndSection"/g "${XORGFILE}"
}

post_install()
{
        nvidia-xconfig -o "${XORGFILE}" --composite &>/dev/null
        MHWD_ADD_BACKSPACE "${XORGFILE}"

        # Remove logo
        sed -i /'Section "Device"'/,/'EndSection'/s/'EndSection'/"\tOption \"NoLogo\" \"1\"\nEndSection"/g "${XORGFILE}"

        # Fix screen flickering for some nvidia devices
        MHWD_FUNC_ON_MATCH 0300 10de "0400 0401 0402 0403 0407 0409 0425" fix_screen_flickering

        mhwd-gpu --setmod nvidia --setxorg "${XORGFILE}"

        # Without this 'glxgears' don't work in live-session
        MODULES_LOAD="/etc/modules-load.d"
        echo "nvidia_drm" >> "${MODULES_LOAD}/mhwd-gpu.conf"
        if [ ! "$(pgrep X)" ];  then
                modprobe nvidia_drm
        fi

        # Enable Modeset for Nvidia driver
        echo "options nvidia_drm modeset=1" >> "${MHWDGPU_MODOPTNVIDIA}"
}

post_remove()
{
        if [ -e "${XORGFILE}" ]; then
                rm "${XORGFILE}"
        fi

        if [ -f "${MHWDGPU_MODOPTNVIDIA}" ]; then
                rm "${MHWDGPU_MODOPTNVIDIA}"
        fi

        if [ -f "${MHWDGPU_MODLDNVIDIA}" ]; then
                sed -i '/^nvidia/d' "${MHWDGPU_MODLDNVIDIA}"
        fi

        mhwd-gpu --check
}

At the end of the install

rmmod: ERROR: could not remove 'nouveau': No such file or directory
rmmod: ERROR: could not remove module nouveau: No such file or directory
rmmod: ERROR: could not remove 'ttm': No such file or directory
rmmod: ERROR: could not remove module ttm: No such file or directory
rmmod: ERROR: could not remove 'drm_kms_helper': No such file or directory
rmmod: ERROR: could not remove module drm_kms_helper: No such file or directory
rmmod: ERROR: could not remove 'drm': No such file or directory
rmmod: ERROR: could not remove module drm: No such file or directory
modprobe: FATAL: Module nvidia not found in directory /lib/modules/6.18.1-1-MANJARO
xorg configuration file: '/etc/X11/mhwd.d/nvidia.conf'
modprobe: FATAL: Module nvidia_drm not found in directory /lib/modules/6.18.1-1-MANJARO
 Successfully installed video-nvidia-570xx

The file I referenced is not an executable script - it is sourced by mhwd - so if you tried to run it - it will be failing.

What command provided that output ?

Is the package linux618-nvidia-570xx synced to your system ?

It looks rather strange - and points to other issues - is this an xy-problem situation now ?

it’s at the end of a
sudo mhwd -i pci video-nvidia-470xx

sudo mhwd -i pci video-nvidia-470xx
> Installing video-nvidia-470xx...
Sourcing /etc/mhwd-x86_64.conf
Has lib32 support: true
Sourcing /var/lib/mhwd/db/pci/graphic_drivers/nvidia-470xx/MHWDCONFIG
Processing classid: 0300
Sourcing /var/lib/mhwd/scripts/include/0300
Processing classid: 0302
:: Synchronizing package databases...
 core downloading...
 extra downloading...
 multilib downloading...
resolving dependencies...
looking for conflicting packages...
warning: dependency cycle detected:
warning: eglexternalplatform will be installed before its nvidia-470xx-utils dependency

Packages (9) egl-wayland-4:1.1.21-1  eglexternalplatform-1.2.1-1  lib32-nvidia-470xx-utils-470.256.02-1  libxnvctrl-470xx-470.256.02-2  linux612-nvidia-470xx-470.256.02-90  linux617-nvidia-470xx-470.256.02-17  linux618-nvidia-470xx-470.256.02-4  nvidia-470xx-settings-470.256.02-2  nvidia-470xx-utils-470.256.02-15

Total Download Size:    27.83 MiB
Total Installed Size:  620.62 MiB

:: Proceed with installation? [Y/n]
:: Retrieving packages...
 linux612-nvidia-470xx-470.256.02-90-x86_64 downloading...
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-470xx-utils...
==> If you run into trouble with CUDA not being available, run nvidia-modprobe first.
Optional dependencies for nvidia-470xx-utils
    nvidia-settings=470.256.02: configuration tool [pending]
    xorg-server-devel: nvidia-xconfig
    opencl-nvidia=470.256.02: OpenCL support
installing libxnvctrl-470xx...
installing nvidia-470xx-settings...
installing lib32-nvidia-470xx-utils...
Optional dependencies for lib32-nvidia-470xx-utils
    lib32-opencl-nvidia-470xx
installing linux612-nvidia-470xx...
installing linux617-nvidia-470xx...
installing linux618-nvidia-470xx...
:: Running post-transaction hooks...
(1/8) Creating system user accounts...
(2/8) Reloading system manager configuration...
(3/8) Reloading device manager configuration...
(4/8) Arming ConditionNeedsUpdate...
(5/8) Updating module dependencies...
(6/8) Updating linux initcpios...
==> Building image from preset: /etc/mkinitcpio.d/linux612.preset: 'default'
==> Using default configuration file: '/etc/mkinitcpio.conf'
  -> -k /boot/vmlinuz-6.12-x86_64 -g /boot/initramfs-6.12-x86_64.img
==> Starting build: '6.12.63-1-MANJARO'
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
  -> Running build hook: [kms]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
  -> Running build hook: [consolefont]
  -> Running build hook: [plymouth]
  -> Running build hook: [filesystems]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: '/boot/initramfs-6.12-x86_64.img'
  -> Early uncompressed CPIO image generation successful
==> Initcpio image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux612.preset: 'fallback'
==> Using default configuration file: '/etc/mkinitcpio.conf'
  -> -k /boot/vmlinuz-6.12-x86_64 -g /boot/initramfs-6.12-x86_64-fallback.img -S autodetect
==> Starting build: '6.12.63-1-MANJARO'
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [kms]
==> WARNING: Possibly missing firmware for module: 'ast'
  -> Running build hook: [modconf]
  -> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: 'qla2xxx'
==> WARNING: Possibly missing firmware for module: 'wd719x'
==> WARNING: Possibly missing firmware for module: 'qla1280'
==> WARNING: Possibly missing firmware for module: 'aic94xx'
==> WARNING: Possibly missing firmware for module: 'qed'
==> WARNING: Possibly missing firmware for module: 'bfa'
==> WARNING: Possibly missing firmware for module: 'xhci_pci_renesas'
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
  -> Running build hook: [consolefont]
  -> Running build hook: [plymouth]
  -> Running build hook: [filesystems]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: '/boot/initramfs-6.12-x86_64-fallback.img'
  -> Early uncompressed CPIO image generation successful
==> Initcpio image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux617.preset: 'default'
==> Using default configuration file: '/etc/mkinitcpio.conf'
  -> -k /boot/vmlinuz-6.17-x86_64 -g /boot/initramfs-6.17-x86_64.img
==> Starting build: '6.17.12-1-MANJARO'
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
  -> Running build hook: [kms]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
  -> Running build hook: [consolefont]
  -> Running build hook: [plymouth]
  -> Running build hook: [filesystems]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: '/boot/initramfs-6.17-x86_64.img'
  -> Early uncompressed CPIO image generation successful
==> Initcpio image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux618.preset: 'default'
==> Using default configuration file: '/etc/mkinitcpio.conf'
  -> -k /boot/vmlinuz-6.18-x86_64 -g /boot/initramfs-6.18-x86_64.img
==> Starting build: '6.18.1-1-MANJARO'
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
  -> Running build hook: [kms]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
  -> Running build hook: [consolefont]
  -> Running build hook: [plymouth]
  -> Running build hook: [filesystems]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: '/boot/initramfs-6.18-x86_64.img'
  -> Early uncompressed CPIO image generation successful
==> Initcpio image generation successful
(7/8) Updating Kernel initcpios for Nvidia-DRM...
==> Building image from preset: /etc/mkinitcpio.d/linux612.preset: 'default'
==> Using default configuration file: '/etc/mkinitcpio.conf'
  -> -k /boot/vmlinuz-6.12-x86_64 -g /boot/initramfs-6.12-x86_64.img
==> Starting build: '6.12.63-1-MANJARO'
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
  -> Running build hook: [kms]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
  -> Running build hook: [consolefont]
  -> Running build hook: [plymouth]
  -> Running build hook: [filesystems]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: '/boot/initramfs-6.12-x86_64.img'
  -> Early uncompressed CPIO image generation successful
==> Initcpio image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux612.preset: 'fallback'
==> Using default configuration file: '/etc/mkinitcpio.conf'
  -> -k /boot/vmlinuz-6.12-x86_64 -g /boot/initramfs-6.12-x86_64-fallback.img -S autodetect
==> Starting build: '6.12.63-1-MANJARO'
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [kms]
==> WARNING: Possibly missing firmware for module: 'ast'
  -> Running build hook: [modconf]
  -> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: 'qla2xxx'
==> WARNING: Possibly missing firmware for module: 'wd719x'
==> WARNING: Possibly missing firmware for module: 'qla1280'
==> WARNING: Possibly missing firmware for module: 'aic94xx'
==> WARNING: Possibly missing firmware for module: 'qed'
==> WARNING: Possibly missing firmware for module: 'bfa'
==> WARNING: Possibly missing firmware for module: 'xhci_pci_renesas'
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
  -> Running build hook: [consolefont]
  -> Running build hook: [plymouth]
  -> Running build hook: [filesystems]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: '/boot/initramfs-6.12-x86_64-fallback.img'
  -> Early uncompressed CPIO image generation successful
==> Initcpio image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux617.preset: 'default'
==> Using default configuration file: '/etc/mkinitcpio.conf'
  -> -k /boot/vmlinuz-6.17-x86_64 -g /boot/initramfs-6.17-x86_64.img
==> Starting build: '6.17.12-1-MANJARO'
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
  -> Running build hook: [kms]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
  -> Running build hook: [consolefont]
  -> Running build hook: [plymouth]
  -> Running build hook: [filesystems]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: '/boot/initramfs-6.17-x86_64.img'
  -> Early uncompressed CPIO image generation successful
==> Initcpio image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux618.preset: 'default'
==> Using default configuration file: '/etc/mkinitcpio.conf'
  -> -k /boot/vmlinuz-6.18-x86_64 -g /boot/initramfs-6.18-x86_64.img
==> Starting build: '6.18.1-1-MANJARO'
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
  -> Running build hook: [kms]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
  -> Running build hook: [consolefont]
  -> Running build hook: [plymouth]
  -> Running build hook: [filesystems]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: '/boot/initramfs-6.18-x86_64.img'
  -> Early uncompressed CPIO image generation successful
==> Initcpio image generation successful
(8/8) Updating the desktop file MIME type cache...
nvidia-470xx-utils: install reason has been set to 'explicitly installed'
nvidia-470xx-settings: install reason has been set to 'explicitly installed'
libxnvctrl-470xx: install reason has been set to 'explicitly installed'
lib32-nvidia-470xx-utils: install reason has been set to 'explicitly installed'
linux612-nvidia-470xx: install reason has been set to 'explicitly installed'
linux617-nvidia-470xx: install reason has been set to 'explicitly installed'
linux618-nvidia-470xx: install reason has been set to 'explicitly installed'
rmmod: ERROR: could not remove 'nouveau': No such file or directory
rmmod: ERROR: could not remove module nouveau: No such file or directory
rmmod: ERROR: could not remove 'ttm': No such file or directory
rmmod: ERROR: could not remove module ttm: No such file or directory
rmmod: ERROR: could not remove 'drm_kms_helper': No such file or directory
rmmod: ERROR: could not remove module drm_kms_helper: No such file or directory
rmmod: ERROR: could not remove 'drm': No such file or directory
rmmod: ERROR: could not remove module drm: No such file or directory
modprobe: FATAL: Module nvidia not found in directory /lib/modules/6.18.1-1-MANJARO
xorg configuration file: '/etc/X11/mhwd.d/nvidia.conf'
modprobe: FATAL: Module nvidia-drm not found in directory /lib/modules/6.18.1-1-MANJARO
> Successfully installed video-nvidia-470xx

Doing a update now.

I think the update fixed it.. editing the post form the computer it self.

Evicted my Nvida GTX 1070 Graphics card.

Graphics:
  Device-1: Advanced Micro Devices [AMD/ATI] Ellesmere [Radeon RX
    470/480/570/570X/580/580X/590] driver: amdgpu v: kernel
  Display: x11 server: X.org v: 1.21.1.21 with: Xwayland v: 24.1.9 driver:
    X: loaded: amdgpu unloaded: modesetting dri: radeonsi gpu: amdgpu
    resolution: 1920x1080~60Hz
  API: EGL v: 1.5 drivers: kms_swrast,radeonsi,swrast
    platforms: gbm,x11,surfaceless,device
  API: OpenGL v: 4.6 compat-v: 4.5 vendor: amd mesa v: 25.3.3-arch1.2
    renderer: AMD Radeon RX 580 Series (radeonsi polaris10 ACO DRM 3.64
    6.18.6-1-MANJARO)
  API: Vulkan v: 1.4.335 drivers: radv surfaces: N/A
  Info: Tools: api: eglinfo, glxinfo, vulkaninfo de: xfce4-display-settings
    gpu: lact wl: wayland-info x11: xprop,xrandr
2 Likes

OP has replaced their Nvidia GPU with an AMD GPU