Disable dGPU

Which Linux distro are you using?

Fedora

Which release version?
Fedora Linux 43

Which kernel are you using?
Kernel Version: 6.18.10-200.fc43.x86_64 (64-bit)

Which BIOS version are you using?

25.116.1

Which Framework Laptop 16 model are you using?

AMD Ryzen™ 7040 Series

I think my graphics module is reaching end-of-life and I would like to disable it until my replacement comes in, but I can’t find any tools that would do that. And GPUmode Fedora requires an Nvidia graphics module when I don’t have. Does anyone know how to handle this?

You don’t have fan expansion bay module? If you do you can power laptop off and uninstall dGPU and install the fan expansion bay only for now.

If you don’t have one, then go into bios and check if you can set to iGPU only.

I don’t think the RX 7700s has an “iGPU only” mode available in the BIOS :frowning:

Yeah I wasn’t able to find one in the BIOS

You can stop the amdgpu kernel driver from binding to it, thus no driver for device, thus disabled.
Look up how to passthrough a device to a vm. That shows you have to unbind the driver. Then just don’t bother configuring it into a virtual machine VM.

Thanks, you have any recommendations on where to look first? or have you tried this yourself?

Add IDs to vfio-pci

Create:

bash

sudo nano /etc/modprobe.d/vfio.conf

Add:

Code

options vfio-pci ids=8086:10fb

Replace 8086:10fb with the ID of the Graphics card you wish to unbind/not use.

Then run “update-initrd” so that it is made permanent.

You can verify that it has worked with:
lspci -k
and check the vfio-pci is being used by the graphics card, and not the amdgpu driver.

I can confirm that this should work. Not because I’ve tested the commands James suggested, but because when I was trying to pass my dGPU into a VM I would always have to reboot in order to get the dGPU working again host-side.

Ok! One final question. How do I check the graphics card ID? I tried using lspci | grep -i ‘vga\|3d\|display’ but it didn’t give me an ID like you’re using.

Also, I’m realizing I might have made a mistake here. Sorry but I might need to close this thread and start a new one with the issue I’m having.

Never mind, I’m stupid. I was able to record it happening with screen recording software. Not closing the thread!

A tad off topic - but I actually created a bug for this :slight_smile:

1 Like