If you wish to set up PRIME configuration on your Optimus device running Fedora Workstation but the steps mentioned here How to Set Nvidia as Primary GPU on Optimus-based Laptops :: Fedora Docs seems convoluted, then you would want to give the most recent version of NVIDIA Auto Installer for Fedora, a try.
Please run the following commands in succession to install the tool.
$ sudo dnf install dnf-plugins-core -y $ sudo dnf copr enable t0xic0der/nvidia-auto-installer-for-fedora -y $ sudo dnf install nvautoinstall -y
If you have it installed already, upgrading to the most recent version v0.3.7 is highly recommended.
$ sudo dnf update --refresh
Make sure that you are able to check all the boxes below, before trying the easier PRIME setup on your device.
- Confirm that your device is an Optimus device (i.e. it has both an integrated GPU of either Intel or AMD and a discrete GPU of NVIDIA)
- Confirm that you are running Fedora 32 Workstation or above as the PRIME config setup feature has not yet been tested on other spins
- Confirm that you have installed the drivers from RPM Fusion repositories (either by using this tool or following the official documentation)
If all of the above has been confirmed, you can go ahead and execute the following command.
$ sudo nvautoinstall --primec
Here are some screenshots.
Enabling PRIME support
Disabling PRIME support
Leaving out without making any changes
If the text “SAFE AND GOOD ANSWER” gives you a feeling of Deja Vu, please go ahead and let me know where you might have seen it previously