Hard-toggle NVIDIA kernel module and PCI visibility to enforce dGPU is powered off for power-saving.
Note
I use this setup on Arch and the instructions are catered for Arch, but this should apply generally to any distro.
This also assumes you're using the NVIDIA open kernel modules, on Arch this is the nvidia-open-dkms pacman package.
- Add the modprobe config in this gist to
/etc/modprobe.d/, you can name it whatever but it's purpose is to prevent NVIDIA modules from being loaded at boot automatically.
