Tuesday, March 27, 2018

nvidia - Unity Desktop not loading after auto update and installing CUDA in Ubuntu 14.04



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:



Ubuntu Desktop does not load




I also tried un-installing and re-installing lightdm, 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:



sudo ./NVIDIA-Linux-x86_64-346.35.run


restart. This seems to have fixed the issue for now.



You've used a .run file which is out-of-scope for the automatic updates. Have a look here for more background information.




So you're stuck with manual updates of your .run file ad infinitum.



There is however another way to get the NVidia 346.35 on your system and that is to install the xorg.edgers PPA. As the xorg.edgers group ask not to give installation instructions directly without linking to their page, this is the best I can do for now…



If you don't know what a PPA is or need some guidance about rolling forward and backward of driver versions after reading their page, leave a comment below.


No comments:

Post a Comment

11.10 - Can't boot from USB after installing Ubuntu

I bought a Samsung series 5 notebook and a very strange thing happened: I installed Ubuntu 11.10 from a usb pen drive but when I restarted (...