That looks like an amazing machine. Is it the same as in this review https://www.notebookcheck.net/Dell-XPS-15-9560-i7-7700HQ-UHD... from 4 months ago? I had lots of annoyance with a previous Optimus based notebook. How has the situation of bumblebee and primusrun and dualbooting improved in the past two years?
I have upgraded an Ubuntu laptop over a few years and every upgrade it broke, requiring some new incantation to fix it the next time. I don't think it's considered the future?
I believe the future is called "Prime Synchronisation", announced a few years ago. Good luck getting it to work though: https://devtalk.nvidia.com/default/topic/957814/prime-and-pr... I gave up after a while.
We're probably nearing the time when I'll give all the methods another go, but currently I'm back into the "change setting and log out + in" camp.
As an aside, bumblebee also seems to break my i3 environment... I get hangs & magic sysreq won't recover. I've had to go back to the default DE.