Getting GeForce GTX960 to work with Ubuntu

54

Solution 1

So I finally got it working, in one more iteration of trying different things. (Yes there were many attempts...)

This is what I did:

  • Connect a monitor to the DVI-port.
  • Fresh install of Ubuntu 15.10
  • Set boot option "nomodeset" using the program boot-repair.
  • Set blacklist.conf according to here: http://ubuntuforums.org/showthread.php?t=2263316 This included fixing the typo "nouveua".

    blacklist vga16fb
    blacklist nouveau
    blacklist rivafb
    blacklist nvidiafb
    blacklist rivatv
    blacklist lbm-nouveau
    options nouveau modeset=0
    alias nouveau off
    alias lbm-nouveau off 
    
  • Switch to non-graphical terminal: ctrl+alt+F1
  • Kill GUI: sudo service lightdm stop
  • sudo apt-get install nvidia-352
  • nvidia-xconfig
  • Start GUI again: sudo service lightdm start

And then it worked!

I think having the monitor connected to the DVI-port while installing the driver is important. My previous attempts used the DP-port while installing the driver. Switching to DVI after driver install did not help. I connected two additional monitors to DP-ports, and my desktop was extended flawlessly. So it's not that DP doesn't work, but it may be a requirement of at least one DVI monitor to get it set up correctly.

Note that I myself do not have a full understanding of what I did with blacklist.conf and the boot option "nomodeset". Neither do I know if it was crucial to do the install in a ctrl+alt+F1 with a killed GUI. One or many of these things may have been unnecessary. Perhaps others will enlighten us.

Solution 2

Generally you should use the NVIDIA drivers from the Ubuntu repositories. But when there are problems with the drivers ... then you can install the latest official NVIDIA drivers from the GPU Drivers PPA. This often leads to properly working graphics - especially on new NVIDIA adapters.

First of all uninstall the currently installed NVIDIA drivers from the official Ubuntu repositories.

Highlight the Ubuntu entry in the GRUB boot menu and press the E key.
Add nouveau.modeset=0 to the end of the linux line - press F10 to boot.

On the login screen press Ctrl+Alt+F1 - enter your user name and your password - execute :

sudo apt-get purge nvidia*  
sudo reboot   

Now install the latest official NVIDIA drivers for GTX 960 from the Proprietary GPU drivers PPA.

Highlight the Ubuntu entry in the GRUB boot menu and press the E key.
Add nouveau.modeset=0 to the end of the linux line - press F10 to boot.

On the login screen press Ctrl+Alt+F1 - enter your user name and your password - execute :

sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update
sudo apt-get install nvidia-358
sudo reboot
Share:
54

Related videos on Youtube

Karpaty
Author by

Karpaty

Updated on September 18, 2022

Comments

  • Karpaty
    Karpaty over 1 year

    I'm trying to scrape ads from realestate.com.au, an Aussie platform where houses on sale are shared. I'm using the Google Chrome extension Web Scraper, and everything is pretty much intuitive.

    However, what I'm most interested in, is the number of bedrooms of each house on sale. When I select the number of bedrooms, the regex that shows up is [aria-label='5 bedrooms'] p So when I finish my scraping, the column "bedrooms_n" of my excel file contains only the values "null" and "5", because the scraper scraped all of the values that had "5" as number of bedrooms, and all of the houses with different number of bedrooms were scraped as "null".

    I tried different regex options such as [aria-label=['1 bedrooms', '2 bedrooms','3 bedrooms', '4 bedrooms','5 bedrooms', '6 bedrooms']] p But non of them works and I couldn't find a solution online. Anyone familiar with the Chrome extension Web Scraper?

    IMG: the part of the ad I'm trying to scrape: #n of bedrooms

  • Eskil
    Eskil over 8 years
    Thanks for a thorough answer. As you may see below, I suddenly got it working myself before I read it. I think I have tried what you posted before though, but my monitor was connected with DisplayPort at the time. Using the DVI for my main monitor may have been the missing piece, but I do not know. Also, i ran nvidia-xconfig, which may or may not have helped.
  • fischermatte
    fischermatte over 7 years
    i tried for days getting my nvidia 960 to work with ubuntu 16.10 using every possible solution i could find in the web. this was the ONLY source that really worked. thanks a lot!!