How to disable the amdgpu module?
I've tried adding amdgpu to the modprobe.d blacklists, as well as the kernel commmand line, but it appears dracut is loading it via a rd.driver.pre=amdgpu line.
The interim solution I've used is to disable the GPU entirely from the BIOS, but I'd like to use it with VM passthrough in the future. As far as I can tell, dracut is getting this config from /lib/dracut/dracut.conf.d/99-nvidia.conf, but I'm not sure if I'm supposed to edit this file to disable this
My Google searching is failing, what's the correct method for getting Bazzite to not load the amdgpu driver at all?
4 Replies
why you want to blacklist amdgpu kernel module?
do you use Nvidia card?
yes, I want to use my nvidia card for Linux - and I have a few scenarios where the AMD GPU keeps being selected first by the application, ALVR being an example
and I also want to pass the AMD iGPU through to a VM as well, so loading the driver is of no use
you can just rebase to nvidia image?
oh nvm
is this a laptop or a pc?
PC, 9950X3D, hence the iGPU
I believe I can solve this by force binding the AMD iGPU to the vfio driver, with the command
rpm-ostree kargs --append-if-missing="vfio_pci.ids=xxxx:yyyy,xxxx:yyzz"