Nvidia GeForce RTX 4060 Possible Driver Installation Needed on Qubes OS 4.2

Hey here…
Is anyone willing to do some troubleshooting with me? I accept any advices here as I am out of ideas.

These are the steps that I followed:

  1. sudo qubes-dom0-update install gcc make kmodtool kernel-devel
  2. Downloaded/unarchived the driver: ./NVIDIA-Linux-x86_64-5xx.xxx.xx.run --ui=none --no-x-check --keep --extract
  3. cd Nvidia_<tab>/kernel and issued
    `make IGNORE_XEN_PRESENCE=1 CC=“gcc -DNV_VMAP_4_PRESENT -DNV_SIGNAL_STRUCT_RLIM”
    mv nvidia.ko /lib/modules/$(uname -r)/kernel/drivers/video/
  4. sudo depmod -a; modinfo nvidia
  5. Disable nouveau by adding rd.driver.blacklist=nouveau option in /etc/default/grub at the end of line GRUB_CMDLINE_LINUX (I put it in the first line because I have a second line starting with GRUB_CMDLINE_LINUX)
  6. Install the new grub config with grub2-mkconfig -o /boot/efi/EFI/qubes/grub.cfg
  7. echo "blacklist nouveau" >> /etc/modprobe.d/blacklist.conf
  8. Reboot
    (the steps are a mix of Nvidia proprietary driver installation and Nvidia driver installation - #2 by dhn)

For some reasons… the driver doesn’t seem to work. Anyways, I don’t understand how the management iGPU vs dGPU is working. do I have to disable iGPU and force dGPU by default in BIOS or what?
TLDR: I have 2 video ports that are wire connected to the dGPU and I can’t use them without a working Nvidia driver. I really need 2 external monitors for work purposes.

What else should I do or what I didn’t do correctly? How exactly can I check what and why is not working?
It is really frustrating because there are users here that successfully installed the dedicated Nvidia driver. in dom0.

[host@dom0 ~]$ lsmod | grep nvidia
nvidia              60588032  0
nvidia_wmi_ec_backlight    12288  0
video                  77824  3 nvidia_wmi_ec_backlight,i915,nouveau
wmi                    45056  4 video,nvidia_wmi_ec_backlight,mxm_wmi,nouveau
[host@dom0 ~]$ 
[host@dom0 ~]$ 
[host@dom0 ~]$ lsmod | grep nouveau
nouveau              3506176  0
gpu_sched              57344  1 nouveau
drm_ttm_helper         12288  1 nouveau
drm_exec               12288  1 nouveau
mxm_wmi                12288  1 nouveau
i2c_algo_bit           20480  2 i915,nouveau
ttm                   110592  3 drm_ttm_helper,i915,nouveau
drm_display_helper    237568  2 i915,nouveau
video                  77824  3 nvidia_wmi_ec_backlight,i915,nouveau
wmi                    45056  4 video,nvidia_wmi_ec_backlight,mxm_wmi,nouveau
filename:       /lib/modules/6.6.21-1.qubes.fc37.x86_64/kernel/drivers/video/nvidia.ko
alias:          char-major-195-*
version:        550.107.02
supported:      external
license:        NVIDIA
firmware:       nvidia/550.107.02/gsp_tu10x.bin
firmware:       nvidia/550.107.02/gsp_ga10x.bin
srcversion:     0356FA6DBEA315947D3518B
alias:          pci:v000010DEd*sv*sd*bc06sc80i00*
alias:          pci:v000010DEd*sv*sd*bc03sc02i00*
alias:          pci:v000010DEd*sv*sd*bc03sc00i00*
depends:        
retpoline:      Y
name:           nvidia
vermagic:       6.6.21-1.qubes.fc37.x86_64 SMP preempt mod_unload 
parm:           NvSwitchRegDwords:NvSwitch regkey (charp)
parm:           NvSwitchBlacklist:NvSwitchBlacklist=uuid[,uuid...] (charp)
parm:           NVreg_ResmanDebugLevel:int
parm:           NVreg_RmLogonRC:int
parm:           NVreg_ModifyDeviceFiles:int
parm:           NVreg_DeviceFileUID:int
parm:           NVreg_DeviceFileGID:int
parm:           NVreg_DeviceFileMode:int
parm:           NVreg_InitializeSystemMemoryAllocations:int
parm:           NVreg_UsePageAttributeTable:int
parm:           NVreg_EnablePCIeGen3:int
parm:           NVreg_EnableMSI:int
parm:           NVreg_TCEBypassMode:int
parm:           NVreg_EnableStreamMemOPs:int
parm:           NVreg_RestrictProfilingToAdminUsers:int
parm:           NVreg_PreserveVideoMemoryAllocations:int
parm:           NVreg_EnableS0ixPowerManagement:int
parm:           NVreg_S0ixPowerManagementVideoMemoryThreshold:int
parm:           NVreg_DynamicPowerManagement:int
parm:           NVreg_DynamicPowerManagementVideoMemoryThreshold:int
parm:           NVreg_EnableGpuFirmware:int
parm:           NVreg_EnableGpuFirmwareLogs:int
parm:           NVreg_OpenRmEnableUnsupportedGpus:int
parm:           NVreg_EnableUserNUMAManagement:int
parm:           NVreg_MemoryPoolSize:int
parm:           NVreg_KMallocHeapMaxSize:int
parm:           NVreg_VMallocHeapMaxSize:int
parm:           NVreg_IgnoreMMIOCheck:int
parm:           NVreg_NvLinkDisable:int
parm:           NVreg_EnablePCIERelaxedOrderingMode:int
parm:           NVreg_RegisterPCIDriver:int
parm:           NVreg_EnableResizableBar:int
parm:           NVreg_EnableDbgBreakpoint:int
parm:           NVreg_EnableNonblockingOpen:int
parm:           NVreg_RegistryDwords:charp
parm:           NVreg_RegistryDwordsPerDevice:charp
parm:           NVreg_RmMsg:charp
parm:           NVreg_GpuBlacklist:charp
parm:           NVreg_TemporaryFilePath:charp
parm:           NVreg_ExcludedGpus:charp
parm:           NVreg_DmaRemapPeerMmio:int
parm:           NVreg_RmNvlinkBandwidth:charp
parm:           NVreg_ImexChannelCount:int
parm:           rm_firmware_active:charp