Nvidia drivers issue since updating

Hello. Basically I can’t figure out how to install the graphics drivers on my system. I have a Quadro T600 from Lenovo.
Running:

mhwd -l && mhwd -li

Gives:

> 0000:02:00.0 (0300:10de:1fb1) Display controller nVidia Corporation:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
           video-linux            2018.05.04                true            PCI
     video-modesetting            2020.01.13                true            PCI
            video-vesa            2017.03.12                true            PCI


> 0000:00:02.0 (0300:8086:3e9b) Display controller Intel Corporation:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
           video-linux            2018.05.04                true            PCI
     video-modesetting            2020.01.13                true            PCI
            video-vesa            2017.03.12                true            PCI


Warning: No installed PCI configs!
Warning: No installed USB configs!

I ran yay -Syu yesterday, maybe 3 weeks since the last time I did and while beforehand it was working perfectly fine, now it doesn’t anymore.
Running:

sudo mhwd -i pci video-nvidia-470xx

Leads to:

Warning: no matching device for config 'video-nvidia-470xx' found!
> Installing video-nvidia-470xx...
Sourcing /etc/mhwd-x86_64.conf
Has lib32 support: true
Sourcing /var/lib/mhwd/db/pci/graphic_drivers/nvidia-470xx/MHWDCONFIG
Processing classid: 0300
Sourcing /var/lib/mhwd/scripts/include/0300
Processing classid: 0302
checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: removing nvidia-utils breaks dependency 'nvidia-utils' required by cuda
:: removing nvidia-utils breaks dependency 'nvidia-utils' required by vapoursynth-plugin-bm3dcuda-git
Error: pacman failed!
Error: script failed!

Running:

sudo mhwd -a pci nonfree 0300

Simply installs video-linux…

> Using config 'video-linux' for device: 0000:02:00.0 (0300:10de:1fb1) Display controller nVidia Corporation TU117GLM [Quadro T600 Mobile]
> Using config 'video-linux' for device: 0000:00:02.0 (0300:8086:3e9b) Display controller Intel Corporation CoffeeLake-H GT2 [UHD Graphics 630]
> Installing video-linux...
...

post system info:
inxi -Faz

That device id is not present in any /var/lib/mhwd/ids/pci/nvidia*.ids files of mhwd, unless @philm or @Yochanan will add them, i guess, but we need to know if your system has hybrid GPU or not …

I use a pinmodded i9 9880H equivalent in a Z170 Pro Gaming MOBO. But anyway, that’s not the question, the drivers were working fine before I updated and suddenly vanished.

System:
  Kernel: 6.0.2-2-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 12.2.0
    parameters: BOOT_IMAGE=/boot/vmlinuz-6.0-x86_64
    root=UUID=1b6fbde1-381a-44a7-bbf1-297abfcf0e2f rw nouveau.modeset=0 quiet
    apparmor=1 security=apparmor udev.log_priority=3
  Desktop: KDE Plasma v: 5.25.5 tk: Qt v: 5.15.6 wm: kwin_x11 vt: 1
    dm: SDDM Distro: Manjaro Linux base: Arch Linux
Machine:
  Type: Desktop Mobo: ASUSTeK model: Z170 PRO GAMING v: Rev X.0x
    serial: <superuser required> UEFI: American Megatrends v: 3805
    date: 05/16/2018
Battery:
  Device-1: hidpp_battery_0 model: Logitech G305 Lightspeed Wireless Gaming
    Mouse serial: <filter> charge: 100% (should be ignored) rechargeable: yes
    status: discharging
CPU:
  Info: model: Intel 0000 bits: 64 type: MT MCP arch: Coffee Lake level: v3
    note: check built: 2018 process: Intel 14nm family: 6 model-id: 0x9E (158)
    stepping: 0xC (12) microcode: 0xF0
  Topology: cpus: 1x cores: 8 tpc: 2 threads: 16 smt: enabled cache:
    L1: 512 KiB desc: d-8x32 KiB; i-8x32 KiB L2: 2 MiB desc: 8x256 KiB
    L3: 16 MiB desc: 1x16 MiB
  Speed (MHz): avg: 1693 high: 2100 min/max: 800/4400 scaling:
    driver: intel_pstate governor: powersave cores: 1: 800 2: 2100 3: 2100
    4: 2100 5: 2100 6: 2100 7: 800 8: 2100 9: 800 10: 2100 11: 800 12: 2100
    13: 2100 14: 2100 15: 2100 16: 800 bogomips: 67230
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3
  Vulnerabilities:
  Type: itlb_multihit status: KVM: VMX unsupported
  Type: l1tf status: Not affected
  Type: mds mitigation: Clear CPU buffers; SMT vulnerable
  Type: meltdown status: Not affected
  Type: mmio_stale_data mitigation: Clear CPU buffers; SMT vulnerable
  Type: retbleed mitigation: IBRS
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via
    prctl
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
    sanitization
  Type: spectre_v2 mitigation: IBRS, IBPB: conditional, RSB filling,
    PBRSB-eIBRS: Not affected
  Type: srbds mitigation: Microcode
  Type: tsx_async_abort mitigation: TSX disabled
Graphics:
  Device-1: Intel CoffeeLake-H GT2 [UHD Graphics 630] vendor: ASUSTeK
    driver: i915 v: kernel arch: Gen-9.5 process: Intel 14nm built: 2016-20
    ports: active: HDMI-A-1 empty: DP-1, DP-2, HDMI-A-2, HDMI-A-3
    bus-ID: 00:02.0 chip-ID: 8086:3e9b class-ID: 0300
  Device-2: NVIDIA TU117GL [T600] vendor: Lenovo driver: N/A
    alternate: nouveau non-free: 515.xx+ status: current (as of 2022-10)
    arch: Turing code: TUxxx process: TSMC 12nm built: 2018-22 pcie: gen: 3
    speed: 8 GT/s lanes: 8 link-max: lanes: 16 bus-ID: 02:00.0
    chip-ID: 10de:1fb1 class-ID: 0300
  Display: x11 server: X.Org v: 21.1.4 compositor: kwin_x11 driver: X:
    loaded: modesetting alternate: fbdev,vesa dri: iris gpu: i915
    display-ID: :0 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.00x11.22")
    s-diag: 582mm (22.93")
  Monitor-1: HDMI-A-1 mapped: HDMI-1 model: Idek Iiyama PLE2483H
    serial: <filter> built: 2015 res: 1920x1080 hz: 60 dpi: 92 gamma: 1.2
    size: 531x299mm (20.91x11.77") diag: 609mm (24") ratio: 16:9 modes:
    max: 1920x1080 min: 640x480
  OpenGL: renderer: Mesa Intel UHD Graphics 630 (CFL GT2) v: 4.6 Mesa
    22.1.7 direct render: Yes
Audio:
  Device-1: NVIDIA vendor: Lenovo driver: snd_hda_intel bus-ID: 1-3:2
    v: kernel pcie: chip-ID: 1852:7022 gen: 3 class-ID: 0102 speed: 8 GT/s
    lanes: 8 link-max: lanes: 16 bus-ID: 02:00.1 chip-ID: 10de:10fa
    class-ID: 0403
  Device-2: GYROCOM C&C Fiio E10 type: USB
    driver: hid-generic,snd-usb-audio,usbhid
  Sound API: ALSA v: k6.0.2-2-MANJARO running: yes
  Sound Interface: sndio v: N/A running: no
  Sound Server-1: JACK v: 1.9.21 running: no
  Sound Server-2: PulseAudio v: 16.1 running: yes
  Sound Server-3: PipeWire v: 0.3.58 running: yes
Network:
  Device-1: Intel Ethernet I219-V vendor: ASUSTeK driver: e1000e v: kernel
    port: N/A bus-ID: 00:1f.6 chip-ID: 8086:15b8 class-ID: 0200
  IF: enp0s31f6 state: down mac: <filter>
  Device-2: Intel Wi-Fi 6 AX210/AX211/AX411 160MHz driver: iwlwifi
    v: kernel pcie: gen: 2 speed: 5 GT/s lanes: 1 bus-ID: 04:00.0
    chip-ID: 8086:2725 class-ID: 0280
  IF: wlp4s0 state: up mac: <filter>
  IF-ID-1: enp0s20f0u11 state: unknown speed: -1 duplex: half mac: <filter>
Bluetooth:
  Device-1: Intel AX210 Bluetooth type: USB driver: btusb v: 0.8
    bus-ID: 1-10:3 chip-ID: 8087:0032 class-ID: e001
  Report: rfkill ID: hci0 rfk-id: 1 state: up address: see --recommends
Drives:
  Local Storage: total: 10.44 TiB used: 1.23 TiB (11.8%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Samsung model: SSD 970 EVO Plus
    1TB size: 931.51 GiB block-size: physical: 512 B logical: 512 B
    speed: 31.6 Gb/s lanes: 4 type: SSD serial: <filter> rev: 3B2QEXM7
    temp: 31.9 C scheme: GPT
  ID-2: /dev/sda maj-min: 8:0 vendor: Seagate model: ST2000DX002-2DV164
    size: 1.82 TiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
    type: HDD rpm: 7200 serial: <filter> rev: CC41 scheme: GPT
  ID-3: /dev/sdb maj-min: 8:16 vendor: Crucial model: CT480BX500SSD1
    size: 447.13 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
    type: SSD serial: <filter> rev: 041 scheme: MBR
  ID-4: /dev/sdc maj-min: 8:32 vendor: Western Digital
    model: WD40EFAX-68JH4N1 size: 3.64 TiB block-size: physical: 4096 B
    logical: 512 B speed: 6.0 Gb/s type: HDD rpm: 5400 serial: <filter>
    rev: 0A83 scheme: GPT
  ID-5: /dev/sdd maj-min: 8:48 vendor: Western Digital
    model: WD40EFAX-68JH4N0 size: 3.64 TiB block-size: physical: 4096 B
    logical: 512 B speed: 6.0 Gb/s type: HDD rpm: 5400 serial: <filter>
    rev: 0A82 scheme: GPT
Partition:
  ID-1: / raw-size: 78.13 GiB size: 76.35 GiB (97.72%) used: 65.51 GiB
    (85.8%) fs: ext4 dev: /dev/nvme0n1p3 maj-min: 259:3
  ID-2: /boot/efi raw-size: 99 MiB size: 95 MiB (95.97%) used: 7.4 MiB
    (7.7%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
Swap:
  Kernel: swappiness: 60 (default) cache-pressure: 100 (default)
  ID-1: swap-1 type: partition size: 30 GiB used: 0 KiB (0.0%) priority: -2
    dev: /dev/nvme0n1p4 maj-min: 259:4
Sensors:
  System Temperatures: cpu: 32.0 C mobo: N/A
  Fan Speeds (RPM): N/A
Info:
  Processes: 344 Uptime: 1h 50m wakeups: 7 Memory: 31.23 GiB used: 4.6 GiB
  (14.7%) Init: systemd v: 251 default: graphical tool: systemctl
  Compilers: gcc: 12.2.0 alt: 11 clang: 14.0.6 Packages: 3156 pm: pacman
  pkgs: 1578 libs: 364 tools: pamac,yay pm: rpm pkgs: N/A note: see --rpm
  tools: dnf pm: flatpak pkgs: 0 Shell: Zsh v: 5.9 default: Bash v: 5.1.16
  running-in: konsole inxi: 3.3.22

are you sure you had nvidia drivers installed? since the mhwd doesnt detect them now?
post output from:
pacman -Qs nvidia

Yes. I was using Vapoursynth filters, especially some OpenCL stuff and BM3DCuda.

local/cuda 11.7.1-3
    NVIDIA's GPU programming toolkit
local/egl-wayland 2:1.1.11-2
    EGLStream-based Wayland external platform
local/ffnvcodec-headers 11.1.5.1-2
    FFmpeg version of headers required to interface with Nvidias codec APIs
local/lib32-libvdpau 1.5-1
    Nvidia VDPAU library
local/libvdpau 1.5-1
    Nvidia VDPAU library
local/libxnvctrl 520.56.06-1
    NVIDIA NV-CONTROL X extension
local/mhwd-nvidia 520.56.06-2
    MHWD module-ids for nvidia 520.56.06
local/mhwd-nvidia-390xx 390.154-2
    MHWD module-ids for nvidia 390.154
local/mhwd-nvidia-470xx 470.141.03-3
    MHWD module-ids for nvidia 470.141.03
local/nvclock 0.8b4-4
    A small utility which allows users to overclock NVIDIA based video cards.
local/nvidia-utils 520.56.06-2
    NVIDIA drivers utilities
local/opencl-nvidia 520.56.06-2
    OpenCL implemention for NVIDIA
local/xf86-video-nouveau 1.0.17-2 (xorg-drivers)
    Open Source 3D acceleration driver for nVidia cards

I was initially about to open an issue concerning this, but when I launched Nvidia X and saw I couldn’t set my GPU fan speed anymore, I understood it might be a driver related issue.

From what i can tell the OP was using the nouveau drivers, but then installed

And that will render almost all systems unbootable …
So, @Trix please remove that driver:
sudo mhwd -r pci video-vesa
You can also do
sudo mhwd -r pci video-modesetting

Remove that too …

All of those return the same:

Error: config 'video-vesa' is not installed!

well you have missing this package:
linux60-nvidia for your kernel 6.0
and also the mhwd -li output shows that you dont have any drivers installed, or im not reading it properly… post also output from:
mhwd -li

Ok. Above mhwd -li showed that you had them installed …

but regardless.
Since you can’t rely on mhwd due to missing id in their database, then you could use the nvidia-dkms

For that you make sure the system is updated
sudo pacman-mirrors -f5 && sudo pacman -Syyu

install the linux headers for your running kernels, so you run:

sudo pacman -S $(pacman -Qsq "^linux" | grep "^linux[0-9]*[-rt]*$" | awk '{print $1"-headers"}' ORS=' ')

Remove the xf86-video-nouveau driver
pamac remove xf86-video-nouveau
then
pamac install nvidia-dkms
Reboot and hope for best.

I did eveything you said with success and rebooted. Still I’m in a pretty strange situation, I got back the fan speed control and Nvidia X is telling me I have the 520.56.06 drivers installed, though when running: mhwd -li
I get:

> Installed PCI configs:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
           video-linux            2018.05.04                true            PCI

And I still get my issues with OpenCL, mainly not being able to compile stuff with the error:

/usr/bin/ld: cannot find -lOpenCL: No such file or directory

Or Vapoursynth errors when trying to use OpenCL or Cuda stuff…

A few years ago I ran into nvidia driver update issues when I had Cuda installed. What I had to do was uninstall cuda then update the driver reboot and re-install cuda.
What happens if you temporarily uninstall the two packages causing dependency issues (cuda & vapoursynth-plugin-bm3dcuda-git) and then attempt to update?

No it does nothing at all unfortunately.
From what I’ve seen, it seems like it’s lacking stuff in a /usr/lib/x86_64-linux-gnu/ folder for my python functions to work. The folder doesn’t even exist somehow.
But files like libOpenCL.so.1 which are necessary to complete both the compilation and simply to use OpenCL just aren’t there. What’s the deal?

could be a messed up update, did you run this:

any errors from this?

I did and got no errors. “Nothing to update” or something along those lines.

ok, so if you installed the dkms-nvidia drivers, remove them and install this:
pamac install linux60-nvidia
reboot

Doesn’t get worse but don’t fix my issue either.
Guess I’ll end up using the nouveau drivers again (if I can even manage to) or install the drivers manually, maybe I’ll have more luck that way…

you have now installed the proper nvidia drivers, at least you should have, post output from:
pacman -Qs nvidia
and also from this:
ls /etc/modprobe.d
find /etc/X11/ -name "*.conf"


and how did you installed the nvidia drivers when they were working? did you installed them manually?

local/cuda 11.7.1-3
    NVIDIA's GPU programming toolkit
local/egl-wayland 2:1.1.11-2
    EGLStream-based Wayland external platform
local/ffnvcodec-headers 11.1.5.1-2
    FFmpeg version of headers required to interface with Nvidias codec APIs
local/lib32-libvdpau 1.5-1
    Nvidia VDPAU library
local/libvdpau 1.5-1
    Nvidia VDPAU library
local/libxnvctrl 520.56.06-1
    NVIDIA NV-CONTROL X extension
local/linux60-nvidia 520.56.06-4 (linux60-extramodules)
    NVIDIA drivers for linux
local/mhwd-nvidia 520.56.06-2
    MHWD module-ids for nvidia 520.56.06
local/mhwd-nvidia-390xx 390.154-2
    MHWD module-ids for nvidia 390.154
local/mhwd-nvidia-470xx 470.141.03-3
    MHWD module-ids for nvidia 470.141.03
local/nvclock 0.8b4-4
    A small utility which allows users to overclock NVIDIA based video cards.
local/nvidia-utils 520.56.06-2
    NVIDIA drivers utilities
local/opencl-nvidia 520.56.06-2
    OpenCL implemention for NVIDIA
blacklist-nouveau.conf  iwlwifi.conf
/etc/X11/vncserver-virtual-dummy.conf
/etc/X11/xorg.conf.d/30-touchpad.conf
/etc/X11/xorg.conf.d/00-keyboard.conf
/etc/X11/vncserver-virtual-vnc.conf

also this package is missing:
pamac install lib32-nvidia-utils
reboot
and post output from:
cat /etc/modprobe.d/blacklist-nouveau.conf