I have the exact same machine and unable to use Nvidia GPU on Ubuntu. It said the solution was to turn off hybrid mode and switch to Nvidia GPU only. Does anyone know how to do that on Ubuntu? Also, will it mean I’d have to always plug the charger in and I won’t be able to use laptop’s display? And since it’s a dual boot, would these settings affect Windows too?
Your logs look fine, the nvidia driver is correctly set up, the nvidia gpu is in offload mode.
Offload mode means, you’ll have to explicitly tell an application to use the nvidia gpu. Depending on distro, you can right-click on an icon and select “run on dgpu”. Another way is starting from terminal or script, prepending __NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia
e.g. __NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia glxgears
in Steam, add __NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia %command%
to start-up options.
You can also switch to nvidia gpu as always used by running sudo prime-select nvidia and reboot. This of course leads to a higher power consumption but doesn’t have any effect on Windows.