At the moment, my Dell XPS 15 9560 which runs Ubuntu 17 is using the intel CPU's built in GPU. I have made many attempts to change this, so that it uses the GTX 1050.
I gather I need nivida-settings to work. Right now, after installation, I get the following error when trying to run it:
ERROR: Unable to find display on any available system
Apparently this is because certain changes in Ubuntu 17 (involving Wayland) no longer allow nvidia-settings to run.
A solution to this was to try logging in to my account as "Xorg Ubuntu", this just froze my computer, requiring reboot.
I have also tried installing nvidia drivers from online, and using bumblebee. In both these cases, it broke my OS. After installation, I would reboot, and get a console output that was essentially inescapable (many lines of this kind of thing: [ OK ] starting network manager
). Other people have experienced this, with no known solution (no reboot/startup bios tricks). I had to reinstall Ubuntu completely. I am now extremely reluctant to install any driver related programs online or through apt-get, considering all attempts resulted in breaking the OS.
I have also looked at the Additional Drivers section of Software & Updates which contained two rows:
Using NVIDIA binary driver - version 384 from nvidia-384 (proprietary)
(selected) Using X.Org X server -- Nouveau display driver from xserver...etc
Having tried both, neither made a difference to nvidia-settings working, or changing the GPU.
There must be a simple, intuitive way to switch GPU on Ubuntu 17, but I keep hitting dead ends. Any help would be appreciated.