linux – Unable to properly switch between the AMD integrated and Nvidia dedicated graphics in Ubuntu 20.04LTS

I have recently tried installing Ubuntu 20.04LTS on my ASUS Laptop and i am not able to switch between the AMD iGPU and Nvidia graphic card. My laptop specs are as follows:

inxi -GxxSMC System: Host: anshul-TUF-Gaming-FA506IH-FA506IH Kernel: 5.4.0-54-generic x86_64 bits: 64 compiler: gcc v: 9.3.0 Desktop: Gnome 3.36.4 wm: gnome-shell dm: GDM3 Distro: Ubuntu 20.04.1 LTS (Focal Fossa) Machine: Type: Laptop System: ASUSTeK product: TUF Gaming FA506IH_FA506IH v: 1.0 serial: <superuser/root required> Mobo: ASUSTeK model: FA506IH v: 1.0 serial: <superuser/root required> UEFI: American Megatrends v: FA506IH.311 date: 09/11/2020 CPU: Topology: 6-Core model: AMD Ryzen 5 4600H with Radeon Graphics bits: 64 type: MT MCP arch: Zen rev: 1 L2 cache: 3072 KiB flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm bogomips: 71863 Speed: 1392 MHz min/max: 1400/3000 MHz Core speeds (MHz): 1: 1398 2: 1397 3: 1397 4: 1397 5: 1389 6: 1397 7: 1398 8: 1396 9: 1397 10: 1397 11: 1397 12: 1397 Graphics: Device-1: NVIDIA vendor: ASUSTeK driver: nvidia v: 455.38 bus ID: 01:00.0 chip ID: 10de:1f99 Device-2: Advanced Micro Devices (AMD/ATI) Renoir vendor: ASUSTeK driver: amdgpu v: 5.6.0.20.20 bus ID: 05:00.0 chip ID: 1002:1636 Display: x11 server: X.Org 1.20.8 driver: amdgpu,ati,nvidia unloaded: fbdev,modesetting,nouveau,vesa compositor: gnome-shell resolution: 1920x1080~144Hz OpenGL: renderer: AMD RENOIR (DRM 3.37.0 5.4.0-54-generic LLVM 10.0.0) v: 4.6 Mesa 20.0.5 direct render: Yes

The problem is that i am unable to switch to Nvidia graphic card.

The drivers for the same are installed, this is the output of:
nvidia-smi

+-----------------------------------------------------------------------------+

| NVIDIA-SMI 455.38 Driver Version: 455.38 CUDA Version: 11.1 |
|——————————-+———————-+———————-+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|===============================+======================+======================|
| 0 GeForce GTX 1650 Off | 00000000:01:00.0 Off | N/A |
| N/A 37C P8 3W / N/A | 10MiB / 3911MiB | 0% Default |
| | | N/A |
+——————————-+———————-+———————-+

+—————————————————————————–+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| 0 N/A N/A 980 G /usr/lib/xorg/Xorg 4MiB |
| 0 N/A N/A 1586 G /usr/lib/xorg/Xorg 4MiB |
+—————————————————————————–+

In NVIDIA X Server Settings the application shows the following output:

NVIDIA X SERVER SETTINGS

Here the prime-select option is also not available al though prime-select is showing up in the terminal.

I am not able to run anything else on the dedicated. Everything by default is running on the Ryzen 5 integrated graphic that is the AMD Renoir i guess.

I am a student and his is my first time using linux. Please help me solve the issue.

Please let me know if there is anything else required.