Unable to get Nvidia drivers to work. Nvidia-smi returns no devices found

I have an Asus ROG G16 laptop with an RTX 3070 card (in addition to onboard Intel Graphics). I dual-boot windows 11 and Ubuntu 22.10 (Kubuntu) with kernel version 5.19.0-26-generic.

I am experiencing major issues with getting my graphics card to function properly.

The nvidia-smi command claims that no devices were found:

$ sudo nvidia-smi
No devices were found

The lspci command can however detect that my card exists:

$ lspci | grep -i nvidia
0000:01:00.0 VGA compatible controller: **NVIDIA** Corporation GA104M [GeForce RTX 3070 Mobile / Max-Q] (rev a1)
0000:01:00.1 Audio device: **NVIDIA** Corporation GA104 High Definition Audio Controller (rev a1)

Summary of things I have tried:

  • Uninstalled and reinstalled multiple different driver versions from Kubuntu system settings → driver manager → additional drivers.

  • Uninstalled and reinstalled multiple different driver versions from terminal using sudo apt install nvidia-driver-<VERSION> , with version ranging from 370 to the latest 525.

  • Tried to install drivers using downloaded .run file.

  • Disabled secure boot in bios.

I am not very knowledgeable about Linux so its hard for me to say what kind of terminal diagnostics are relevant to include here. I saw in a similar post that the output of dmesg | grep NVRM was requested, so here is mine:

$ sudo dmesg | grep NVRM
[    5.001889] NVRM: loading NVIDIA UNIX x86_64 Kernel Module  520.56.06  Thu Oct  6 21:38:55 UTC 2022
[    5.083514] NVRM: GPU 0000:01:00.0: Failed to enable MSI; falling back to PCIe virtual-wire interrupts.
[    5.149043] NVRM: GPU 0000:01:00.0: Failed to copy vbios to system memory.
[    5.149260] NVRM: GPU 0000:01:00.0: RmInitAdapter failed! (0x30:0xffff:931)
[    5.149286] NVRM: GPU 0000:01:00.0: rm_init_adapter failed, device minor number 0
[   15.140655] NVRM: GPU 0000:01:00.0: Failed to enable MSI; falling back to PCIe virtual-wire interrupts.
[   15.164991] NVRM: GPU 0000:01:00.0: Failed to copy vbios to system memory.
[   15.165123] NVRM: GPU 0000:01:00.0: RmInitAdapter failed! (0x30:0xffff:931)
[   15.165195] NVRM: GPU 0000:01:00.0: rm_init_adapter failed, device minor number 0
[   15.281011] NVRM: GPU 0000:01:00.0: Failed to enable MSI; falling back to PCIe virtual-wire interrupts.
[   15.306521] NVRM: GPU 0000:01:00.0: Failed to copy vbios to system memory.
[   15.306624] NVRM: GPU 0000:01:00.0: RmInitAdapter failed! (0x30:0xffff:931)
[   15.306717] NVRM: GPU 0000:01:00.0: rm_init_adapter failed, device minor number 0
[   15.422611] NVRM: GPU 0000:01:00.0: Failed to enable MSI; falling back to PCIe virtual-wire interrupts.
[   15.446260] NVRM: GPU 0000:01:00.0: Failed to copy vbios to system memory.
[   15.446327] NVRM: GPU 0000:01:00.0: RmInitAdapter failed! (0x30:0xffff:931)
[   15.446416] NVRM: GPU 0000:01:00.0: rm_init_adapter failed, device minor number 0
[   15.562224] NVRM: GPU 0000:01:00.0: Failed to enable MSI; falling back to PCIe virtual-wire interrupts.
[   15.585241] NVRM: GPU 0000:01:00.0: Failed to copy vbios to system memory.
[   15.585307] NVRM: GPU 0000:01:00.0: RmInitAdapter failed! (0x30:0xffff:931)
[   15.585376] NVRM: GPU 0000:01:00.0: rm_init_adapter failed, device minor number 0
[   21.299021] NVRM: GPU 0000:01:00.0: Failed to enable MSI; falling back to PCIe virtual-wire interrupts.
[   21.332227] NVRM: GPU 0000:01:00.0: Failed to copy vbios to system memory.
[   21.332438] NVRM: GPU 0000:01:00.0: RmInitAdapter failed! (0x30:0xffff:931)
[   21.332487] NVRM: GPU 0000:01:00.0: rm_init_adapter failed, device minor number 0
[   21.448460] NVRM: GPU 0000:01:00.0: Failed to enable MSI; falling back to PCIe virtual-wire interrupts.
[   21.511453] NVRM: GPU 0000:01:00.0: Failed to copy vbios to system memory.
[   21.511746] NVRM: GPU 0000:01:00.0: RmInitAdapter failed! (0x30:0xffff:931)
[   21.511790] NVRM: GPU 0000:01:00.0: rm_init_adapter failed, device minor number 0
[   21.627935] NVRM: GPU 0000:01:00.0: Failed to enable MSI; falling back to PCIe virtual-wire interrupts.
[   21.668575] NVRM: GPU 0000:01:00.0: Failed to copy vbios to system memory.
[   21.669042] NVRM: GPU 0000:01:00.0: RmInitAdapter failed! (0x30:0xffff:931)
[   21.669084] NVRM: GPU 0000:01:00.0: rm_init_adapter failed, device minor number 0
[   21.784873] NVRM: GPU 0000:01:00.0: Failed to enable MSI; falling back to PCIe virtual-wire interrupts.
[   21.825147] NVRM: GPU 0000:01:00.0: Failed to copy vbios to system memory.
[   21.825409] NVRM: GPU 0000:01:00.0: RmInitAdapter failed! (0x30:0xffff:931)
[   21.825510] NVRM: GPU 0000:01:00.0: rm_init_adapter failed, device minor number 0
[   44.397522] NVRM: GPU 0000:01:00.0: Failed to enable MSI; falling back to PCIe virtual-wire interrupts.
[   44.424461] NVRM: GPU 0000:01:00.0: Failed to copy vbios to system memory.
[   44.424571] NVRM: GPU 0000:01:00.0: RmInitAdapter failed! (0x30:0xffff:931)
[   44.424642] NVRM: GPU 0000:01:00.0: rm_init_adapter failed, device minor number 0
[   44.540457] NVRM: GPU 0000:01:00.0: Failed to enable MSI; falling back to PCIe virtual-wire interrupts.
[   44.563659] NVRM: GPU 0000:01:00.0: Failed to copy vbios to system memory.
[   44.563780] NVRM: GPU 0000:01:00.0: RmInitAdapter failed! (0x30:0xffff:931)
[   44.563855] NVRM: GPU 0000:01:00.0: rm_init_adapter failed, device minor number 0
[   48.385694] NVRM: GPU 0000:01:00.0: Failed to enable MSI; falling back to PCIe virtual-wire interrupts.
[   48.410188] NVRM: GPU 0000:01:00.0: Failed to copy vbios to system memory.
[   48.410330] NVRM: GPU 0000:01:00.0: RmInitAdapter failed! (0x30:0xffff:931)
[   48.410406] NVRM: GPU 0000:01:00.0: rm_init_adapter failed, device minor number 0
[   48.526223] NVRM: GPU 0000:01:00.0: Failed to enable MSI; falling back to PCIe virtual-wire interrupts.
[   48.549633] NVRM: GPU 0000:01:00.0: Failed to copy vbios to system memory.
[   48.549781] NVRM: GPU 0000:01:00.0: RmInitAdapter failed! (0x30:0xffff:931)
[   48.549844] NVRM: GPU 0000:01:00.0: rm_init_adapter failed, device minor number 0
[   50.460879] NVRM: GPU 0000:01:00.0: Failed to enable MSI; falling back to PCIe virtual-wire interrupts.
[   50.496846] NVRM: GPU 0000:01:00.0: Failed to copy vbios to system memory.
[   50.497103] NVRM: GPU 0000:01:00.0: RmInitAdapter failed! (0x30:0xffff:931)
[   50.497152] NVRM: GPU 0000:01:00.0: rm_init_adapter failed, device minor number 0
[   50.612943] NVRM: GPU 0000:01:00.0: Failed to enable MSI; falling back to PCIe virtual-wire interrupts.
[   50.654096] NVRM: GPU 0000:01:00.0: Failed to copy vbios to system memory.
[   50.654419] NVRM: GPU 0000:01:00.0: RmInitAdapter failed! (0x30:0xffff:931)
[   50.654469] NVRM: GPU 0000:01:00.0: rm_init_adapter failed, device minor number 0
[   50.770607] NVRM: GPU 0000:01:00.0: Failed to enable MSI; falling back to PCIe virtual-wire interrupts.
[   50.856642] NVRM: GPU 0000:01:00.0: Failed to copy vbios to system memory.
[   50.856961] NVRM: GPU 0000:01:00.0: RmInitAdapter failed! (0x30:0xffff:931)
[   50.857007] NVRM: GPU 0000:01:00.0: rm_init_adapter failed, device minor number 0
[   50.972789] NVRM: GPU 0000:01:00.0: Failed to enable MSI; falling back to PCIe virtual-wire interrupts.
[   51.013607] NVRM: GPU 0000:01:00.0: Failed to copy vbios to system memory.
[   51.013959] NVRM: GPU 0000:01:00.0: RmInitAdapter failed! (0x30:0xffff:931)
[   51.014007] NVRM: GPU 0000:01:00.0: rm_init_adapter failed, device minor number 0
[   51.139951] NVRM: GPU 0000:01:00.0: Failed to enable MSI; falling back to PCIe virtual-wire interrupts.
[   51.182697] NVRM: GPU 0000:01:00.0: Failed to copy vbios to system memory.
[   51.182956] NVRM: GPU 0000:01:00.0: RmInitAdapter failed! (0x30:0xffff:931)
[   51.182998] NVRM: GPU 0000:01:00.0: rm_init_adapter failed, device minor number 0
[   51.298932] NVRM: GPU 0000:01:00.0: Failed to enable MSI; falling back to PCIe virtual-wire interrupts.
[   51.347209] NVRM: GPU 0000:01:00.0: Failed to copy vbios to system memory.
[   51.347487] NVRM: GPU 0000:01:00.0: RmInitAdapter failed! (0x30:0xffff:931)
[   51.347592] NVRM: GPU 0000:01:00.0: rm_init_adapter failed, device minor number 0
[   51.464950] NVRM: GPU 0000:01:00.0: Failed to enable MSI; falling back to PCIe virtual-wire interrupts.
[   51.498892] NVRM: GPU 0000:01:00.0: Failed to copy vbios to system memory.
[   51.499130] NVRM: GPU 0000:01:00.0: RmInitAdapter failed! (0x30:0xffff:931)
[   51.499280] NVRM: GPU 0000:01:00.0: rm_init_adapter failed, device minor number 0
[   51.615206] NVRM: GPU 0000:01:00.0: Failed to enable MSI; falling back to PCIe virtual-wire interrupts.
[   51.647347] NVRM: GPU 0000:01:00.0: Failed to copy vbios to system memory.
[   51.647522] NVRM: GPU 0000:01:00.0: RmInitAdapter failed! (0x30:0xffff:931)
[   51.647560] NVRM: GPU 0000:01:00.0: rm_init_adapter failed, device minor number 0
[   51.766161] NVRM: GPU 0000:01:00.0: Failed to enable MSI; falling back to PCIe virtual-wire interrupts.
[   51.802039] NVRM: GPU 0000:01:00.0: Failed to copy vbios to system memory.
[   51.802340] NVRM: GPU 0000:01:00.0: RmInitAdapter failed! (0x30:0xffff:931)
[   51.802384] NVRM: GPU 0000:01:00.0: rm_init_adapter failed, device minor number 0
[   51.918138] NVRM: GPU 0000:01:00.0: Failed to enable MSI; falling back to PCIe virtual-wire interrupts.
[   51.961706] NVRM: GPU 0000:01:00.0: Failed to copy vbios to system memory.
[   51.962033] NVRM: GPU 0000:01:00.0: RmInitAdapter failed! (0x30:0xffff:931)
[   51.962074] NVRM: GPU 0000:01:00.0: rm_init_adapter failed, device minor number 0
[   52.077914] NVRM: GPU 0000:01:00.0: Failed to enable MSI; falling back to PCIe virtual-wire interrupts.
[   52.114779] NVRM: GPU 0000:01:00.0: Failed to copy vbios to system memory.
[   52.115000] NVRM: GPU 0000:01:00.0: RmInitAdapter failed! (0x30:0xffff:931)
[   52.115041] NVRM: GPU 0000:01:00.0: rm_init_adapter failed, device minor number 0
[   52.230943] NVRM: GPU 0000:01:00.0: Failed to enable MSI; falling back to PCIe virtual-wire interrupts.
[   52.265464] NVRM: GPU 0000:01:00.0: Failed to copy vbios to system memory.
[   52.265674] NVRM: GPU 0000:01:00.0: RmInitAdapter failed! (0x30:0xffff:931)
[   52.265705] NVRM: GPU 0000:01:00.0: rm_init_adapter failed, device minor number 0
[   52.389522] NVRM: GPU 0000:01:00.0: Failed to enable MSI; falling back to PCIe virtual-wire interrupts.
[   52.417144] NVRM: GPU 0000:01:00.0: Failed to copy vbios to system memory.
[   52.417337] NVRM: GPU 0000:01:00.0: RmInitAdapter failed! (0x30:0xffff:931)
[   52.417432] NVRM: GPU 0000:01:00.0: rm_init_adapter failed, device minor number 0
[   52.533390] NVRM: GPU 0000:01:00.0: Failed to enable MSI; falling back to PCIe virtual-wire interrupts.
[   52.557218] NVRM: GPU 0000:01:00.0: Failed to copy vbios to system memory.
[   52.557424] NVRM: GPU 0000:01:00.0: RmInitAdapter failed! (0x30:0xffff:931)
[   52.557457] NVRM: GPU 0000:01:00.0: rm_init_adapter failed, device minor number 0
[   52.673371] NVRM: GPU 0000:01:00.0: Failed to enable MSI; falling back to PCIe virtual-wire interrupts.
[   52.697794] NVRM: GPU 0000:01:00.0: Failed to copy vbios to system memory.
[   52.697937] NVRM: GPU 0000:01:00.0: RmInitAdapter failed! (0x30:0xffff:931)
[   52.697994] NVRM: GPU 0000:01:00.0: rm_init_adapter failed, device minor number 0
[   52.813808] NVRM: GPU 0000:01:00.0: Failed to enable MSI; falling back to PCIe virtual-wire interrupts.
[   52.846066] NVRM: GPU 0000:01:00.0: Failed to copy vbios to system memory.
[   52.846262] NVRM: GPU 0000:01:00.0: RmInitAdapter failed! (0x30:0xffff:931)
[   52.846370] NVRM: GPU 0000:01:00.0: rm_init_adapter failed, device minor number 0

I am also attaching my nvidia-bug-report.log.gz file.

Would be greatful for any help.

nvidia-bug-report.log.gz (278.9 KB)