How to Get nvidia driver working properly ( running experimental 3d support)

When typing into terminal lspci, the output for the graphics card is VGA compatible controller: Intel Corporation Core Processor Integrated Graphics Controller (rev 18) BUT, further down there is VGA compatible controller: nVidia Corporation Device 0dd3 (rev a1)

Now i know i have an integrated graphics card, but the regular nvidia driver wont work properly, thus forced to use the Nouveau driver. And for some reason i suspect the Nouveau driver is giving me a hard time letting me connect to a large hdtv via hdmi. Help?

Ninja Edit: if i install the nvidia driver, it just says not in use, and it defaults me to gnome, so i cant use unity, while the Nouveau driver works perfectly..minus not working when i try to connect an external moniter


Solution 1:

It sounds like you've a Nvidia Optimus laptop. The nvidia driver from nvidia.com won't work with it out-of-the-box because of the way it's connected (through the CPU). See also Is a NVIDIA GeForce with Optimus Technology supported by Ubuntu?

Since the nvidia driver cannot use the nvidia card and the Intel display is still used by the X server, OpenGL will be unavailable resulting in symptoms like:

  • Graphics effects / compositing do not work
  • Parts of the display turned upside-down
  • Unity ceases to work

To solve this issue after installing the nvidia driver, you need to set the GL library to Mesa which is used for the Intel card. Bumblebee does this when installing.

Solution 2:

It seems you have hybrid graphics, which are not well supported (yet) under Linux. However, there is good news; you can disable Nouveau and install nVidia proprietary drivers somewhat easily. Lekensteyn has told you how enable the driver after installing; I'll tell you how to install it.

To do this:

  • Run gedit as root: gksu gedit (either run this in a terminal or in the run dialogue (alt+f2)).
  • Then open the following file: /etc/modprobe.d/blacklist.conf .

    • To this file add the following line:

    blacklist nouveau

  • Now open the following file: /etc/modprobe.d/nvidia-graphics-drivers.conf

    • Add these lines to the file

:

   blacklist nouveau  
   blacklist lbm-nouveau
   blacklist nvidia-173  
   blacklist nvidia-96  
   alias nvidia nvidia-current

Now install the nvidia-current driver using jockey-gtk (Additional Drivers in the menu), or from the command line as follows:

sudo apt-get install nvidia-current

After installing the driver, make sure to check the files you previously edited for changes, and ensure that the lines you needed to add are still present.
Now, restart your system, install Bumblebee as Lekenstyen suggested, and follow the instructions for Bumblebee to enable the driver.