Nvidia card not in lspci output on installed system anymore but still present on live system

After I tried nvidia-dkms driver and uninstalled it, nvidia card is not showing at all anymore in lspci output. Only Intel graphics is detected. Interestingly lspci shows Nvidia card when I boot Manjaro from USB. Nvidia drivers are not able to detect it either. Tools like lshw don’t see it as well. How to enable it also the installed system without reinstalling whole system?

I have Dell XPS with Nvidia RTX 3050 Ti.

provide formatted output from:
inxi -Fazy
journalctl -b0 -p3 --no-pager
sudo dmesg | grep nvidia
mhwd -l && mhwd -li && mhwd-kernel -li
pacman -Qs nvidia

Hi @brahma

sudo dmesg | grep nvidia: no output

PCI devide is 01:00.0 that have dissapeared from installed system. When it happened I was using 5.15 kernel. Installed kernel 5.18 and linux518-nvidia but still doesn’t show Nvidia card.

so its not detected in 5.15 and 5.18 kernels?
also output from:
ls /etc/modprobe.d
and post it here, click this icon in editor: </>

That’s right.

$ ls /etc/modprobe.d                                                                                                                                                                                                  
blacklist-nvidia.conf  mhwd-gpu.conf
$ cat /etc/modprobe.d/blacklist-nvidia.conf                                                                                                                                                                                  
# Automatically generated by EnvyControl

blacklist nouveau
blacklist nvidia
blacklist nvidia_drm
blacklist nvidia_uvm
blacklist nvidia_modeset
alias nouveau off
alias nvidia off
alias nvidia_drm off
alias nvidia_uvm off
alias nvidia_modeset off
$ cat /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"

journalctl | grep 01:00.0

juuli 07 23:23:28 karmo-xps kernel: pci 0000:01:00.0: [10de:25a0] type 00 class 0x030200
juuli 07 23:23:28 karmo-xps kernel: pci 0000:01:00.0: reg 0x10: [mem 0x9e000000-0x9effffff]
juuli 07 23:23:28 karmo-xps kernel: pci 0000:01:00.0: reg 0x14: [mem 0x6000000000-0x60ffffffff 64bit pref]
juuli 07 23:23:28 karmo-xps kernel: pci 0000:01:00.0: reg 0x1c: [mem 0x6100000000-0x6101ffffff 64bit pref]
juuli 07 23:23:28 karmo-xps kernel: pci 0000:01:00.0: reg 0x24: [io  0x3000-0x307f]
juuli 07 23:23:28 karmo-xps kernel: pci 0000:01:00.0: reg 0x30: [mem 0xfff80000-0xffffffff pref]
juuli 07 23:23:28 karmo-xps kernel: pci 0000:01:00.0: PME# supported from D0 D3hot
juuli 07 23:23:28 karmo-xps kernel: pci 0000:01:00.0: 126.024 Gb/s available PCIe bandwidth, limited by 16.0 GT/s PCIe x8 link at 0000:00:01.0 (capable of 252.048 Gb/s with 16.0 GT/s PCIe x16 link)
juuli 07 23:23:28 karmo-xps kernel: pci 0000:01:00.0: can't claim BAR 6 [mem 0xfff80000-0xffffffff pref]: no compatible bridge window
juuli 07 23:23:28 karmo-xps kernel: pci 0000:01:00.0: BAR 6: no space for [mem size 0x00080000 pref]
juuli 07 23:23:28 karmo-xps kernel: pci 0000:01:00.0: BAR 6: failed to assign [mem size 0x00080000 pref]

you have it blacklisted via the envycontrol… uninstall the envycontrol:
pamac remove envycontrol
reboot and see if its detected

I appreciate your help, @brahma .
I played with envycontrol earlier today and that might have blacklisted nvidia.
Unfortunately I had broken my install with pci rescans or something before posting here and I was not able to boot anymore (and colorless boot log gave no hope) and had to do reinstall anyway. I believe that removing envycontrol blacklist file would have helped (envycontrol was already uninstalled). Lesson learned in a hard way.

yes if it was already uninstalled, then removing the leftover blacklist file would probably helped…