I have installed CUDA 6.5 in Ubuntu 14.04 and am using NVIDIA driver version 346.35 [Graphics Card NVIDIA GTX 960]. I have successfully compiled the sample codes that come with CUDA and they have been running perfectly. But today I did an auto update and after that Unity Desktop was running blank after login. I tried all suggestions given in the below post and it did not help me get back my desktop:
I also tried un-installing and re-installing
Ubuntu desktop, etc.... but nothing seems to work.
Most of the posts ask to purge everything related to NVIDIA and then reinstall NVIDIA driver again. Now for someone running CUDA it is my understanding that doing a purge on nvidia-* will remove the Nvidia driver as well as the CUDA installation, which would mean reinstalling everything all over again which is highly undesirable.
I have somehow managed to work around it by uninstalling the NVIDIA 346.35 driver and then reinstalling it again. But I am having to do this every time I update Ubuntu, which is again not handy at all. Can someone suggest a better solution which does not involve tinkering with the NVIDIA drivers or my CUDA installation?
To just unistall NVIDIA driver, I dropped to command console on login window by pressing Ctrl+Alt+F1 and ran the below command:
sudo ./NVIDIA-Linux-x86_64-346.35.run --uninstall
After it uninstalls run again:
restart. This seems to have fixed the issue for now.