Nvidia Gpu Not detected by Nvidia-Smi

I am running manjaro 6.1.49 . I have an integrated intel GPU and an Nvidia 840M GPU. I recently reinstalled Manjaro due to some issues and now the nvidia gpu isn’t working any more.

Running Nvidia-Smi shows: No devices were found
Running nvidia-xconfig shows :

VALIDATION ERROR: Data incomplete in file /etc/X11/xorg.conf.
                  Device section "Device0" must have a Driver line.

WARNING: Unable to parse X.Org version string.

WARNING: Unable to use the nvidia-cfg library to query NVIDIA hardware.

ERROR: Unable to find any GPUs in the system.

ERROR: Unable to write to directory '/etc/X11'.

Running inxi -G , I get :

  Device-1: Intel HD Graphics 5500 driver: i915 v: kernel
  Device-2: NVIDIA GM108M [GeForce 840M] driver: nvidia v: 535.104.05
  Device-3: Chicony HP Truevision HD camera driver: uvcvideo type: USB
  Display: x11 server: X.Org v: 21.1.8 driver: X: loaded: modesetting
    unloaded: nouveau failed: nvidia dri: iris gpu: i915
    resolution: 1366x768~60Hz
  API: OpenGL v: 4.6 Mesa 23.1.6-2 renderer: Mesa Intel HD Graphics 5500
    (BDW GT2)

mhwd -li

                  NAME               VERSION          FREEDRIVER           TYPE
   network-broadcom-wl            2018.10.07               false            PCI
           video-linux            2018.05.04                true            PCI
     video-modesetting            2020.01.13                true            PCI
video-hybrid-intel-nvidia-prime            2023.03.23               false            PCI

Warning: No installed USB configs!

I would appreciate some help

Hi @kaynaaf4 and welcome to the NVIDIA developer forums.

Could you please run nvidia-bug-report.sh and attach th result here please?