Is there a way of using intel graphics for display while nvidia 100% for computation?

I hope to have my nvidia GPU 100% for computation, and use the integrated intel graphics for display.

Now under Ubuntu 19.04, I can achieve this by booting with Prime set to Intel, and run “prime-select nvidia” to turn the nvidia GPU on. However, I have to manually turn it back to Intel every time I turn my desktop off and vice versa.

I wonder if there’s an easy way to have Prime set to Intel and Nvidia GPU power on automatically at the same time?

Please check if this still works:
https://devtalk.nvidia.com/default/topic/1043405/linux/ubuntu-18-04-headless_390-intel-igpu-after-prime-select-intel-lost-contact-to-geforce-1050ti/post/5293003/#5293003

Thanks. Works for Ubuntu 19.04, Kernel 5.0.0-29-generic, Driver 418.87.01.