This has been driving me nearly insane for the past several days. Currently, I have the NVIDIA 440 driver installed via Ubuntu’s official graphics-drivers/ppa and apt-get. I ensured that all nvidia-related drivers/libraries were uninstalled, purged and cleaned beforehand (along with a clean restart).
After much headache (and disabling Secure Boot), I have the drivers successfully running, but Ubuntu’s X11 display is still using the Intel HD gpu as the default regardless of any of prime-select, nvidia-configure, or my supplied configurations.
Here is some information regarding my system’s set-up.
Intel® Core™ i5-7300HQ CPU @ 2.50GHz × 4
Intel® HD Graphics 630 (Kaby Lake GT2)
GeForce GTX 1050 Ti Mobile
GNOME 3.28.2
That seemed to work like a charm. If I may ask, what was the reasoning that lead you to that suggestion?
Also, now that I have the GPU working as my primary driver, is there a way I can have Ubuntu run on the Intel HD chip and then specify certain programs (like my CAD software) to use the Nvidia card? This would maximize my power output (and is something I can do on Windows 10).
That config was setting a nvidia-only config with illegal paths.
What you want is called render offload http://download.nvidia.com/XFree86/Linux-x86_64/435.17/README/primerenderoffload.html
This requires a very recent xserver with additional patches, I don’t know if Ubuntu provides this yet for 18.04, so you would have to use the ppa from the docs.
It looks like Ubuntu 18 LTS is supported via that ppa, though adding it and doing a sudo apt-get update && apt-get upgrade doesn’t upgrade the xorg-server package.
I just tried to switch to Intel for the first time and upon trying to log back into Ubuntu, I was greeted with a black screen for a moment before being booted back to the log-in screen. Not sure what that is about …