For example, there isn’t an option in the Gnome dock right click menu for me to launch a new Firefox window offloaded to the dGPU when there are already other windows opened using the iGPU.
So instead of using the Gnome dock, I tried using the following alias to launch a new Firefox window offloaded to the dGPU:
But upon opening up nvtop to check the dGPU’s usage, it is at 0%. I know this is possible since I used the prime-run firefox command in Arch linux and it was properly offloaded.
Am I missing something here? Is it possible that this is a cutting edge feature that has not yet merged into Fedora’s repository yet?
I should mention that offloading a fresh app using both the Gnome menu and CLI works fine. Offloading a second terminal window (alacritty) using the CLI is fine, but there is no option in the Gnome menu to do so.
That is a good guide to follow. It actually is a very good way to get the nvidia drivers installed and functioning.
The link in that post,
is what you should use to make it possible for the nvidia GPU to manage all the graphics and both the internal laptop screen as well as the external screen.
The tool you used for installing the drivers managed everything thru step 7 on that page, so you would need to start with step 7 to verify the drivers are active, then proceed from step 8 onward.
Copying the nvidia.conf file will make it possible for the nvidia gpu to manage the laptop screen (by default it can only access external monitors) and editing it as suggested will make it possible to use the nvidia gpu exclusively so the iGPU is essentially idled and never used.
Note though, that doing so only takes affect when the user logs in with xorg and does not function when using wayland.
Apparently there’s some difference that makes the app prefer inheriting the environment from the active instance if any, rather than creating its own separate one.
So, you need to compare build flags, startup scripts, and default settings for the Firefox package in Arch and Fedora to determine the cause of this behavior.