Nvidia modprobe no such device (with switchable graphics)

Alright…

Can’t see one… Since it seems you are new, use a codeblock to post links. Like:

`https://example.com`
:arrow_down:
https://example.com

ok, I also removed the dkms driver just in case

Nothing new, there must be something else. Because mhwd comes after linux detection, my problem seems to be with the kernel or Xorg. I’d like to redo the whole thing but so far the only option I see is to reinstall everything.

and output from:
sudo dmesg | grep nvidia
pacman -Qs nvidia
cat /etc/X11/mhwd.d/intel.conf
cat /etc/X11/xorg.conf.d/90-mhwd.conf

1 Like

dmesg | grep nvidia

[ 10.549307] audit: type=1400 audit(1657405053.922:3): apparmor=“STATUS” operation=“profile_load” profile=“unconfined” name=“nvidia_modprobe” pid=300 comm=“apparmor_parser”
[ 10.549709] audit: type=1400 audit(1657405053.922:4): apparmor=“STATUS” operation=“profile_load” profile=“unconfined” name=“nvidia_modprobe//kmod” pid=300 comm=“apparmor_parser”
[ 11.585972] nvidia: module license ‘NVIDIA’ taints kernel.
[ 11.604371] nvidia-nvlink: Nvlink Core is being initialized, major device number 241
[ 11.627071] nvidia-nvlink: Unregistered the Nvlink Core, major device number 241
[ 61.245861] nvidia-nvlink: Nvlink Core is being initialized, major device number 238
[ 61.261330] nvidia-nvlink: Unregistered the Nvlink Core, major device number 238

pacman -Qs nvidia
local/egl-wayland 2:1.1.10-1
    EGLStream-based Wayland external platform
local/lib32-libvdpau 1.5-1
    Nvidia VDPAU library
local/lib32-nvidia-390xx-utils 390.151-1
    NVIDIA drivers utilities (32-bit)
local/libvdpau 1.5-1
    Nvidia VDPAU library
local/libxnvctrl-390xx 390.151-1
    NVIDIA NV-CONTROL X extension
local/linux510-nvidia-390xx 390.151-13 (linux510-extramodules)
    NVIDIA drivers for linux
local/linux515-nvidia-390xx 390.151-46 (linux515-extramodules)
    NVIDIA drivers for linux
local/linux54-nvidia-390xx 390.151-10 (linux54-extramodules)
    NVIDIA drivers for linux
local/mhwd-nvidia 515.57-1
    MHWD module-ids for nvidia 515.57
local/mhwd-nvidia-390xx 390.151-2
    MHWD module-ids for nvidia 390.151
local/mhwd-nvidia-470xx 470.129.06-1
    MHWD module-ids for nvidia 470.129.06
local/nvidia-390xx-utils 390.151-2
    NVIDIA drivers utilities
cat /etc/X11/mhwd.d/intel.conf
##
## Generated by mhwd - Manjaro Hardware Detection
##
 
 
Section "Device"
    Identifier  "Device0"
    Driver      "intel"
    BusID       "PCI:0:2:0"
    Option      "AccelMethod" "sna"
	Option      "DRI"    "true"
EndSection
 
 
Section "DRI"
        Group  "video"
        Mode   0666
EndSection
 
 
Section "Extensions"
    Option "Composite" "Enable"
    Option "RENDER"    "Enable"
EndSection
 
 
Section "InputClass"
    Identifier          "Keyboard Defaults"
    MatchIsKeyboard        "yes"
    Option              "XkbOptions" "terminate:ctrl_alt_bksp"
EndSection
cat /etc/X11/xorg.conf.d/90-mhwd.conf
##
## Generated by mhwd - Manjaro Hardware Detection
##
 
 
Section "Device"
    Identifier  "Device0"
    Driver      "intel"
    BusID       "PCI:0:2:0"
    Option      "AccelMethod" "sna"
	Option      "DRI"    "true"
EndSection
 
 
Section "DRI"
        Group  "video"
        Mode   0666
EndSection
 
 
Section "Extensions"
    Option "Composite" "Enable"
    Option "RENDER"    "Enable"
EndSection
 
 
Section "InputClass"
    Identifier          "Keyboard Defaults"
    MatchIsKeyboard        "yes"
    Option              "XkbOptions" "terminate:ctrl_alt_bksp"
EndSection

That’s it

Ok i read this: NVIDIA/Troubleshooting - ArchWiki which links to [370.28] with kernel [4.8] on >=2015 machines: driver claims card not supported if nvidia is not primary card - #3 by olifre - Linux - NVIDIA Developer Forums

Thats from the early days, where bbswitch was the only option… so maybe removing the bbswitch and the driver completely makes the gpu available again?

sudo mhwd -r pci video-hybrid-intel-nvidia-390xx-bumblebee

Check if it there (module not needed be loaded for this):

lspci | grep VGA

If so, then go for nvidia-390xx-dkms and create the necessary configs yourself.

1 Like

uninstall all of nvidia:

pamac remove lib32-nvidia-390xx-utils libxnvctrl-390xx linux510-nvidia-390xx linux515-nvidia-390xx linux54-nvidia-390xx nvidia-390xx-utils

reboot

1 Like

It didn’t change anything. I’ll just reinstall the OS. However, it’s very telling that the bug is still open and it affects many manjaro users, not just me, I’m not crazy.

wait, just check if we uninstall all of bswithc:
pacman -Qs bbswitch

Yes, no output with bbswitch

and this:
pacman -Qs bumblebee

no, it’s not there

then i dont know what could blacklisting the nvidia…

If you didn’t change anything and you are 100% sure that its not a hardware failure, then test first another (maybe older) distro of ubuntu and sort of. So even if it a power management issue of the PCIE interface at kernel level, the nvidia card be listed at lspci.

Myself, I strongly believe it is some sort of hardware failure, or just the connection. After a certain time, the solder joints can also loosen due to high heat, which is understandable.

I just did that! I got Linux Mint in a pendrive and it does see a nvidia card using lspci so it’s not a laptop failure.