NVIDIA GM108M [GeForce MX130] driver issue

hello guys im new here… (sorry for bad english)

i have an issue with nvidiadriver and im not smart enough to figured it out myself.
I encountered the following problem when installing Endeavour OS using the GRUB option:

$ nvidia-inst

After installation, I checked if the driver was installed correctly, but it was not available:

$ inxi -G
Graphics:
  Device-1: Intel WhiskeyLake-U GT2 [UHD Graphics 620] driver: i915 v: kernel
  Device-2: NVIDIA GM108M [GeForce MX130] driver: N/A
  Device-3: Chicony HD User Facing driver: uvcvideo type: USB
  Display: wayland server: X.org v: 1.21.1.13 with: Xwayland v: 24.1.2
    compositor: kwin_wayland driver: X: loaded: modesetting dri: iris gpu: i915
    resolution: 1920x1080
  API: EGL v: 1.5 drivers: iris,swrast
    platforms: gbm,wayland,x11,surfaceless,device
  API: OpenGL v: 4.6 compat-v: 4.5 vendor: Intel Mesa v: 24.2.3-arch1.1
    renderer: Mesa Intel UHD Graphics 620 (WHL GT2)
  API: Vulkan Message: No Vulkan data available.

$spci | grep -i vga
00:02.0 VGA compatible controller: Intel Corporation WhiskeyLake-U GT2 [UHD Graphics 620]

$ nvidia-smi
NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.

Additionally, I encountered this problem when I tried to install Endeavour OS using systemd during boot:

pcieport 0000:02:00.0: can't change power state from D3cold to D0

I tried using Bumblebee and Optimus Manager. I also disabled power management on boot and added some kernel parameters to see if that would resolve the issue, but the problem persists.

I don’t know what I’m doing, so I just copied and pasted the error messages into ChatGPT and followed every step. I’ve tried multiple times and messed up the system several times before writing this thread.

I had this problem before with Linux Lite as well, but it works fine with Windows, so I guess the GPU is not defective.

Please show the output of:

lspci -vnn | grep -P 'VGA|Display|3D'
lsmod | grep nvidia
pacman -Qs nvidia

Just to check, did you reboot after running nvidia-inst?

Also, try envycontrol if optimus manager fails.

Yes, I rebooted the system after installing the driver using the nvidia-inst CLI

$ lspci -vnn | grep -P 'VGA|Display|3D'
lsmod | grep nvidia
pacman -Qs nvidia
00:02.0 VGA compatible controller [0300]: Intel Corporation WhiskeyLake-U GT2 [UHD Graphics 620] [8086:3ea0] (prog-if 00 [VGA controller])
02:00.0 3D controller [0302]: NVIDIA Corporation GM108M [GeForce MX130] [10de:174d] (rev a2)
local/egl-gbm 1.1.2-1
    The GBM EGL external platform library
local/egl-wayland 4:1.1.16-1
    EGLStream-based Wayland external platform
local/libvdpau 1.5-3
    Nvidia VDPAU library
local/libxnvctrl 560.35.03-1
    NVIDIA NV-CONTROL X extension
local/nvidia-dkms 560.35.03-3
    NVIDIA drivers - module sources
local/nvidia-hook 1.5.1-1
    pacman hook for nvidia
local/nvidia-inst 24-1
    Script to setup nvidia drivers (dkms version) in EndeavourOS
local/nvidia-settings 560.35.03-1
    Tool for configuring the NVIDIA graphics driver
local/nvidia-utils 560.35.03-3
    NVIDIA drivers utilities

this cli didn’t return anything

lsmod | grep nvidia

The nvidia module is not loaded for some reason.

One more output is needed:

pacman -Qs headers linux