I have a DELL XPS with an nvidia GeForce 1080 GPU, running Ubuntu 17.04. According to the nvidia webpage the compatible driver for this card is the nvidia 384.90
However after installation of this module (driver) either through apt-get or the software manager, the computer gets stuck in a login loop. Only after removing this driver and returning to the X.Org x server - Nouveau I can go back to normality.
How can I use/install the nvidia driver and avoid messing everything up?
Is this NOT the correct driver? (then how can I find out which one?) Am I installing it wrong? (then how can I do it right) Or is the problem rather based in other dependencies? (Problem arised when installing/updating the driver and CUDA)
UPDATE:
running cat ~/.xsession-errors shows between several messages: "Error: Couldn't find RGB GLX visual or fconfig"
There is no /proc/drivers/nvidia folder (only rtc). It all points to a faulty driver installation, but have tried several methods (software manager, apt-get) without luck.
Also nvidia-smi fails because "it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running"