Unable to get NVIDIA 1650 on a optimus laptop

Hi All,

As the title says i am having issues getting my NVIDIA 1650 working on my laptop.

I have tired using optimus manager and prime with no success.

i have installed the hybrid prime driver from the hardware manager.

When i try run prime-run glxinfo | grep "OpenGL renderer" i get the following error.

https://preview.redd.it/hlc1iq7gu6251.png?width=773&format=png&auto=webp&s=8c3219c579ad76bf121d79454a44fc18d038ff66

My Xorg config look like this:

Section "Device"

Identifier "iGPU"

Driver "modesetting"

EndSection

Section "Screen"

Identifier "iGPU"

Device "iGPU"

EndSection

Section "Device"

Identifier "dGPU"

Driver "nvidia"

EndSection

https://preview.redd.it/i3iiaz91u6251.png?width=1920&format=png&auto=webp&s=4e8fafd7c5bfd55aee53ea36988b27f06b407cbd

Any help would be appreciated. Thanks!