I have this laptop, but mine has an i7 and an gtx1650. That's a feature that comes with all NVIDIA drivers (I use the open kernel modules) called NVIDIA Optimus. It already switches between GPUs automatically, read the wiki in how to configure it.
However, there's a tool called EnvyControl, with it, you can power off the dedicated GPU in boot to save power, instead of simply put it on standby. If you use that, you will need to reboot for turning it on again.