all the apps are using only the intel gpu,nvidia gpu is idle

*-- I am looking for a way to make the heavy graphics apps like flatpak steam games use nvidia gpu instead of default intel gpu.i saw some gpu switching tools like vga switcheroo,bumblebee,primus but i couldn’t find any clear method to configure any of those tools for parrot os. dota 2 is lagging heavily when i use the best graphics and even the hashcat -b is using the intel gpu.i have started using os other than windows recently so if the given info is not enough to solve this problem,kindly ask and i will provide it asap.


  • Parrot version in use (if you are not aware of it, open terminal and type cat /etc/os-release | grep VERSION)*:
    VERSION_ID=“5.0”
    VERSION=“5.0 (LTS)”
    VERSION_CODENAME=bullseye

  • Kernel version (if you are not aware of it, open terminal and type uname -r):

5.14.0-9parrot1-amd64

  • lspci | grep VGA

00:02.0 VGA compatible controller: Intel Corporation CometLake-H GT2 [UHD Graphics] (rev 05)
01:00.0 VGA compatible controller: NVIDIA Corporation TU117M [GeForce GTX 1650 Ti Mobile] (rev a1)

+inxi -F

Graphics:
Device-1: Intel CometLake-H GT2 [UHD Graphics] driver: i915 v: kernel
Device-2: NVIDIA TU117M [GeForce GTX 1650 Ti Mobile] driver: nvidia
v: 470.57.02
Display: x11 server: X.Org 1.20.11 driver: loaded: modesetting,nvidia
unloaded: fbdev,nouveau,vesa resolution: 1920x1080~144Hz
OpenGL: renderer: Mesa Intel UHD Graphics (CML GT2) v: 4.6 Mesa 20.3.5

sudo nano /etc/modprobe.d/blacklist-nouveau.conf


Added the following lines and saved the file.

blacklist nouveau
options nouveau modeset=0
alias nouveau off



+nvidia-driver version

https://www.parrotsec.org/docs/nvidia-drivers.html
i followed this doc's repo method to install the driver

 NVIDIA-SMI 470.57.02    Driver Version: 470.57.02    CUDA Version: 11.4

+ **Logs/Terminal output** *(use pastebin or similar services)***:**  

+ **Screenshots:**