Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am using the official nVidia driver because my card (GeForce 750 Ti) isn't yet supported by the Ubuntu one. Every time the kernel updates, my system breaks.

I've formatted my system two-three times because of kernel updates and today I decided to try to fix it. I tried to fix it with this method and surprisingly it works.

  1. Switch to console (After waiting for the nVidia driver to crash, as it does when you switch consoles :p)

  2. Run a complete uninstall

    sudo ./<DRIVER>.run -uninstall
    
  3. Reboot and switch to the on-board card

  4. Update

    sudo apt-get update
    sudo apt-get dist-upgrade
    
  5. Reboot again

  6. Reinstall driver

    sudo ./<DRIVER>.run
    
  7. Reboot and switch back to the NVIDIA GPU

Is there a better/easier/faster way to update without going through all this?

share|improve this question
    
Try with sudo apt-get install nvidia-common without difficult running and compilings. this driver is for Nvidia cards. You can also install the accelerated driver as sudo apt-get install xserver-xorg-video-nouveau –  Dumindu Mahawela Jul 6 at 11:10
    
@user300200 would this work for non supported cards? I don't think so. –  user36976 Jul 6 at 11:11
    
updated the answer. –  Dumindu Mahawela Jul 6 at 11:14

1 Answer 1

up vote 4 down vote accepted
+50

After 1st boot failure and switching to console (Ctrl+Alt+F1 or any to F6).

  1. Build driver modules for the current kernel (which just installed)

    sudo sh ./<DRIVER>.run -K
    
  2. Reboot:

    sudo reboot
    

Reference: Ubuntu Wiki: Nvidia Manual - Kernel and Mesa Updates

No need to reboot multiple times and switch adapters.

To be complete, For driver release >=304 it is possible to register its module to DKMS. DKMS will take care of building it for each newly installed kernel.

  1. Install DKMS (For some reasons, it may not be installed already)

    sudo apt-get install dkms
    
  2. Reinstall nVidia driver with DKMS option.

    sudo sh ./<DRIVER>.run --dkms
    

After this, it should be no need to redo the steps above any more. A way to verify/check after new kernel install:

dkms status

References:

share|improve this answer
    
Small question, does this method also apply to updating the driver itself? Aka if I run -K from a new version of the driver will it be installed or do I need to uninstall and reinstall in this case? –  user36976 Aug 1 at 21:41
    
@Nick, sorry to be late I've just got access to Internet. As I have tried nVidia driver before, the installation process checks to previous/old installation then removes them before carrying on to install the newer version. You should run installation without -K option. –  Sneetsher Sep 8 at 20:38
1  
I already figured out that running the old binary with the --update param installs the latest version –  user36976 Sep 8 at 22:11

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.