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:

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