How to Mutter to use NVIDIA GPU (Optimus) as primary GPU on laptop


I have a laptop with an integrated Intel GPU and a discrete graphics accelerator from NVIDIA. This are the devices information:

# lshw -c display
       description: VGA compatible controller
       product: TigerLake-LP GT2 [Iris Xe Graphics]
       vendor: Intel Corporation
       physical id: 2
       bus info: pci@0000:00:02.0
       logical name: /dev/fb0
       version: 01
       width: 64 bits
       clock: 33MHz
       capabilities: pciexpress msi pm vga_controller bus_master cap_list rom fb
       configuration: depth=32 driver=i915 latency=0 mode=1920x1080 visual=truecolor xres=1920 yres=1080
       resources: iomemory:600-5ff iomemory:400-3ff irq:146 memory:6014000000-6014ffffff memory:4000000000-400fffffff ioport:5000(size=64) memory:c0000-dffff memory:4010000000-4016ffffff memory:4020000000-40ffffffff
       description: 3D controller
       product: TU117M [GeForce GTX 1650 Mobile / Max-Q]
       vendor: NVIDIA Corporation
       physical id: 0
       bus info: pci@0000:01:00.0
       version: a1
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list rom
       configuration: driver=nvidia latency=0
       resources: iomemory:600-5ff iomemory:600-5ff irq:168 memory:54000000-54ffffff memory:6000000000-600fffffff memory:6010000000-6011ffffff ioport:4000(size=128)

I am able to use NVIDIA GPU as primary using PRIME Render Offload on X11 successfully. But, I want to use Wayland because it is more accelerated and is the future. That is why I want to find the correct configuration or instructions that make GNOME, or Mutter, to use NVIDIA GPU (Optimus) as primary GPU in order to run fully accelerated on Wayland.

If anybody knows then share your knowledge with me, please.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.