Nvidia driver is not working

Please check that:

Set the Paths:

export configs=(  "/etc/X11/xorg.conf" "/etc/X11/xorg.conf.d/*.conf" "/etc/modprobe.d/*.conf" "/etc/modules-load.d/*.conf" )

Read all configs and print them on the terminal:

for x in ${configs[@]}; do echo -e "\n---$x---\n$(cat $x)"; done

and

Check if the nvidia modle is loaded:

lsmod | grep -i "nvidia"

As said… the default way nowadays is offloading only programs which you explicitly want to offload. However… there is a tool called: optimus-manager which can switch the gpu. But you need to relog on every switch.

what does it do?

It reads all config files related to the gpu and print them on the terminal.

$ export configs=(  "/etc/X11/xorg.conf" "/etc/X11/xorg.conf.d/*.conf" "/etc/modprobe.d/*.conf" "/etc/modules-load.d/*.conf" )
for x in ${configs[@]}; do echo -e "\n---$x---\n$(cat $x)"; done
cat: /etc/X11/xorg.conf: No such file or directory

---/etc/X11/xorg.conf---

cat: '/etc/X11/xorg.conf.d/*.conf': No such file or directory

---/etc/X11/xorg.conf.d/*.conf---

cat: '/etc/modprobe.d/*.conf': No such file or directory

---/etc/modprobe.d/*.conf---

cat: '/etc/modules-load.d/*.conf': No such file or directory

---/etc/modules-load.d/*.conf---

and the grep couldn’t find nvidia in lsmod command

ah well… zshell again :man_facepalming:

run: bash and then re-run the commands pls.

I think this also worth mentioning that in nvidia-linux forum they handed this link to install graphic driver: How to install & configure nvidia driver on arch linux - Lintel Technologies Blog
wich directly uses pacman to install the driver

$ export configs=(  "/etc/X11/xorg.conf" "/etc/X11/xorg.conf.d/*.conf" "/etc/modprobe.d/*.conf" "/etc/modules-load.d/*.conf" )
for x in ${configs[@]}; do echo -e "\n---$x---\n$(cat $x)"; done
cat: /etc/X11/xorg.conf: No such file or directory

---/etc/X11/xorg.conf---


---/etc/X11/xorg.conf.d/00-keyboard.conf---
# Read and parsed by systemd-localed. It's probably wise not to edit this file
# manually too freely.
Section "InputClass"
        Identifier "system-keyboard"
        MatchIsKeyboard "on"
        Option "XkbLayout" "us"
EndSection

---/etc/X11/xorg.conf.d/90-mhwd.conf---
##
## Generated by mhwd - Manjaro Hardware Detection
##



---/etc/modprobe.d/mhwd-gpu.conf---
##
## Generated by mhwd - Manjaro Hardware Detection
##

blacklist nouveau
blacklist ttm
blacklist drm_kms_helper
blacklist drm
options nvidia "NVreg_DynamicPowerManagement=0x02"

---/etc/modules-load.d/mhwd-gpu.conf---
##
## Generated by mhwd - Manjaro Hardware Detection
##

nvidia
nvidia-drm

---/etc/modules-load.d/modules.conf---
# List of modules to load at boot

lsmod still doesn’t throw anything

Just a little tiny question: Did you restart the laptop after installing the driver?

Yes. of course

With what command can I know that the driver is working fine?

As you see here. The nvidia should get loaded on boot time.

Check the kernel messages:

sudo dmesg | grep -i nvidia

@megavolt @omano @Mirdarthos
I think I found the head of the problem. while booting, in a little moment under the
/dev/nvme0n1p3: clean, .... blocks message, it says [FAILED] Failed to start Load Kernel Modules

Sounds like nvidia to me, although I know I might be wrong.

you’re probably right.

maybe just uninstall the current driver and try 470xx driver as @megavolt said?

Edit: I think I had the same booting error for the first, video-nvidia, driver too

a Good idea, although I really don’t know what it’ll do.

But I think a better idea would be to remove all nvidia packages, especially those not installed with mwhd, reboot and reinstall everything with mwhd.

do you know a command for that?

As I mentioned earlier:

  • To install a driver:
sudo mhwd --auto pci nonfree 0300
  • To uninstall a driver:
sudo mhwd --remove pci video-nvidia

For more information:

https://wiki.manjaro.org/index.php/Configure_NVIDIA_(non-free)_settings_and_load_them_on_Startup/en

Edit:

To install a specific driver, in this case 47xx:

sudo mhwd --install pci video-hybrid-intel-nvidia-470xx-prime

I tried video-hybrid-intel-nvidia-470xx-prime and got the [FAILED] Failed to start Load Kernel Modules error again but still, the system booted up

Then I tried video-nvidia-470xx and this time I got that error plus it couldn’t load the manjaro interface. So I uninstalled it using the virtual console(ctrl+alt+f2) and finally got to get back to where I was and write this message.

I’m so exhausted. Hopefully, I get to find a way to fix this *$#king problem later.

can you provide

sudo mhwd -li 
sudo ls /etc/mkinitcpio.d/*.preset
sudo ls /boot/
sudo ls /lib/modules/

Note that I uninstalled all the graphic drivers yesterday.

$ sudo mhwd -li
> Installed PCI configs:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
     video-modesetting            2020.01.13                true            PCI


Warning: No installed USB configs!
$ sudo ls /etc/mkinitcpio.d/*.preset
/etc/mkinitcpio.d/linux510.preset
$ sudo ls /boot/
efi   initramfs-5.10-x86_64-fallback.img  intel-ucode.img       memtest86+
grub  initramfs-5.10-x86_64.img           linux510-x86_64.kver  vmlinuz-5.10-x86_64
$ sudo ls /lib/modules/
5.10.93-1-MANJARO  extramodules-5.10-MANJARO