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.
I am new to fedora and linux, sorry if the questions asked sound silly.
I have installed the prime support successfully, thanks to you. If i am not mistaken from the nvidia-settings i can select either intel GPU or Nvidia GPU, but my currently only show nvidia nothing else.
Welcome to Fedora, I really hope for you to have a good experience with the distribution!
Actually, with PRIME configuration, you are offloading your entire display pipeline to the discrete GPU - so everything from the desktop environment to the applications would run using the NVIDIA card.
If that is what you are not intending to do, please go ahead and disable the PRIME support using the installer.
From Nvidia explanation ; What is PRIME?
PRIME is a collection of features in the Linux kernel, X server, and various drivers to enable GPU offloading with multi-GPU configurations under Linux. It was initially conceived to allow one GPU to display output rendered by another GPU, such as in laptops with both a discrete GPU and an integrated GPU (e.g., NVIDIA Optimus-enabled laptops).
From you explanation : it is solely for one gpu only.
I am trying to achieve what nvidia set out for, where similar to windows where you can select the gpu desired manually or setup to automatically switch gpu.
I appreciated your help. May be my expectation is not align to linux world. sorry for my ignorance.
As t0xic0der said, you installed the prime config when you installed the nvidia drivers. When you did that you set the system to use only the nvidia gpu.
If you use the installer and remove the prime config then the system will be in the normal config where it behaves as it seems you want it to. The intel gpu will be used for everything until you tell the system to run an app with the dedicated nvidia gpu.
With gnome you can right click on the icon for the app and select to use the dedicated gpu for that app.
With my laptop I set it to use the nvidia gpu full time since I prefer the better quality graphics and am not concerned about the battery life. I still get at least 3 hours on the battery when I am mobile.