Set default GPU on GNOME to use iGPU

After installing nvidia drivers gnome refuses to open terminal/settings/gnome apps when launched.

Setting DRI_PRIME=1 in /etc/environment fixes this, but then they launch on the dedicated nvidia GPU instead of the AMD iGPU.

Firefox also then runs on CPU acceleration instead of hardware. Launching firefox with DRI_PRIME=pci-0000_6b_00_0 forces it to use the iGPU.

But I want any apps to open on the iGPU by default. I only want the nvidia GPU used when specifically called upon.

Removing DRI_RPIME=1 and replacing it with DRI_RPIME=pci-0000_6b_00_0 forces firefox to launch in the iGPU, but the same issue happens with gnome again - gnome apps will not launch.

Does anyone know how to fix this?

For anyone in a similar situation setting /etc/environment to the following fixes it:

DRI_PRIME=pci-0000_6b_00_0
__NV_PRIME_RENDER_OFFLOAD=0
GSK_RENDERER=ngl

To find what card to use for DRI_PRIME, you can use switcherooctl in terminal/console.

3 Likes

Someone should tell the developers that it is no longer possible to install Fedora 41 on these setups.

The only way I got this to work is by connecting the display directly to the nvidia GPU. For laptop users this may not be possible.

tl;dr gnome refuses to open any apps on the iGPU (including the settings menu and install menu) on split gpu setups like mine until /etc/environment has been modified.