supergfxctl blacklists proprietary Nvidia drivers when switching to Integrated mode and causes Nouveau to load after restart

Issue description

supergfxctl blacklists proprietary Nvidia drivers when switching to Integrated mode from Hybrid mode using modprobe, causing the kernel to load Nouveau drivers instead. This causes the GPU to be active in Integrated mode and prevents supergfxd from working.

Steps to reproduce

Switch from Hybrid mode to Integrated mode. supergfxctl updates /etc/modprobe.d/supergfxd.conf to blacklist the proprietary Nvidia drivers in addition to Nouveau.
Hybrid:

# Automatically generated by supergfxd  
blacklist nouveau  
alias nouveau off  
  
options nvidia-drm modeset=1  

Integrated:

# Automatically generated by supergfxd  
blacklist nouveau  
blacklist nvidia_drm  
blacklist nvidia_uvm  
blacklist nvidia_modeset  
blacklist nvidia  
  
options nvidia-drm modeset=1  

When logging out and back in, function is as expected. The dGPU is completely powered off, and no Nvidia GPU driver is loaded. It is necessary to reboot to reproduce the bug.

What is the current bug behavior?

Upon restart, the blacklist seemingly does not work as intended. The Nvidia driver is reported as missing, and the kernel loads the Nouveau driver instead, as opposed to loading neither driver. This causes the dGPU to be powered on in "Integrated" mode, and supergfxctl cannot even be run to switch back to Hybrid mode and fix the problem, as its own blacklist causing Nouveau to be loaded essentially cripples supergfxd's ability to function and switch back to Hybrid mode to fix the issue.
The issue is fixed by deleting /etc/modprobe.d/supergfxd.conf, rebooting, switching back to the Hybrid profile, and logging out and back in.
The issue could most likely be avoided by not blacklisting the Nvidia kernel modules and instead opting to disable the GPU or refuse to load its drivers before login, if possible.

What is the expected correct behavior?

Neither driver loads after restart, and the Nvidia GPU and driver are able to be turned back on using supergfxctl.

System information

Operating System: Fedora Linux 43
KDE Plasma Version: 6.5.5
KDE Frameworks Version: 6.22.0
Qt Version: 6.10.1
Kernel Version: 6.18.5-cachyos1.fc43.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 24 × Intel® Core™ Ultra 9 275HX
Memory: 32 GiB of RAM (30.7 GiB usable)
Graphics Processor 1: Intel® Graphics
Graphics Processor 2: Nvidia GeForce RTX 5070 Ti Laptop GPU
Manufacturer: ASUSTeK COMPUTER INC.
Product Name: ROG Strix G18 G815LR_G815LR
System Version: 1.0
supergfxctl version: 5.2.7

Relevant logs and/or screenshots

I am willing to provide these if necessary.

Edited by Abi T.