The way I use my discrete GPU in apps is through PRIME. After installing the drivers through nvidia-inst, install nvidia-prime and then you can run your games with prime-run from the terminal. Under Steam, you can set prime-run %command% to launch any game with your discrete GPU.
Both AMD and Nvidia are already working fine when I installed EndeavourOS with Plasma 6. Looks like nvidia-inst is already installed when I checked by using yay -S nvidia-inst and yay -S lib32-nvidia-utils
I have successfully installed envy-control and managed to get Nvidia to run as a dedicated GPU after reboot.
Now when I run Steam, it seems to be looking for the AMD graphics (vulkan) even though the laptop is now running a dedicated Nvidia GPU. Confirmed by using the tool, nvtop.
In a game, it would appear to be loading vulkan shaders. After that, with green square and blank screen. What am I missing? The game was working under AMD integrated graphics
I’m not a gamer so unfortunately can’t help much.
But here’s a link to a gaming guide on this forum: https://forum.endeavouros.com/t/linux-gaming-guide
Hope that helps. If not, maybe someone who is a gamer can chime in.
Thank you for your help regarding the envy-control, which solved the issue of making nvidia the sole dedicated gpu. The rest was simple… I simply activated Proton within Steam and my games just corrected themselves. I am now playing top titles games using nvidia solely and at very high fps.