Nvidia – Fixing Graphics Card Issues on Ubuntu 14.04

bumblebeenvidianvidia-optimusnvidia-settings

So I've installed 14.04 and after hours of working on it I finally got grub to work. I noticed during the live cds that my main monitor (powered by my nvidia card) wasn't working, and I figured that a proprietary driver install would fix it. It didn't. I also tried the nouveau driver, but to no avail. I understand I need to go to the nvidia-settings to enable the monitor, but I cannot get it to load anything but the options page and some other useless tab.

I remembered this issue back when I used to use my old laptop (I ran 12.04, and I would've had that on this PC sooner but I was waiting for 14.04), and I knew that running something like optirun -b primus glxgears would fix it, but it didn't. I get this message whenever I try to run something with optirun.

$ optirun -b primus glxgears
[ 1041.451645] [ERROR]The Bumblebee daemon has not been started yet or the socket path /var/run/bumblebee.socket was incorrect.
[ 1041.451662] [ERROR]Could not connect to bumblebee daemon - is it running?

I tried the steps listed here,
http://ubuntuforums.org/showthread.php?t=1960883
but I can't get the very first command to work, and the other solutions did not help either.

Does anyone know of a solution? Thanks.

Edit: I have also tried purging and reinstalling it, no difference.

Edit #2: I know this is a bit off topic, but if anyone knows of a way to make it to where you don't have to be root to access other drives, it would help tremendously.

Edit #3: I've tried doing as the first response has suggested, but it hasn't helped. You can view what we have tried in the comment section of that answer. I still don't have a solution, but the best thing I have to go on now would be to install a version of bumblebee 3.0 and behind. Anyone know how to do this?

Specs

Intel i7 4770k

MSI 780 Ti Gaming

16 Gigs Ram

256 Gig Samsung 840 Pro SSD and 1TB HDD for storage

Dual booting Windows 7 (or Winderp$ as I like to call it) and Ubuntu

Best Answer

Not entirely sure how I fixed it the first time on this system, however I have learned a lot on this issue, and if anyone is having similar issues or symptoms, please feel free to PM me or do something to contact me, and I'll be glad to help (a bit).

I'll tell how I got my Nvidia drivers to work on my latest try. Note that I haven't quite gotten my second monitor running off of integrated graphics to work yet, but because the Nvidia drivers are working, I'm thinking it shouldn't be too big of a hassle.

I've found that manual installs work best for installing nvidia drivers, so go to the geforce site and download the latest drivers. By default, it'll most likely go into /Downloads, but if not, just know where it is. Then, you'll want to press

ctrl + alt +F1-F6 (each is a different login)

And then sign in to your account. Then, you'll want to use

sudo stop lightdm 

(or)

sudo service lightdm stop

This shuts down the things that are using the GUI, so they can be updated.

Then run

chmod +x ~/* Folder that said driver is located in * / * Driver *

For example,

chmod +x ~/Downloads/NVIDIA-Linux-x86_64-343.13.run

Make SURE that you have the entire name of the driver, otherwise this will not work! Caps do matter!

What you just did was make the file executable. Next, you'll want to run the following command, changed of course like the example above to fit your directories/driver versions.

sudo sh ~/Downloads/NVIDIA-Linux-x86_64-343.13.run

For me, tabbing the rest of the NVIDIA-Linux-x86_64-343.13.run file does not work, but it is CRUCIAL THAT YOU DO THIS. If nothing happens after you run the second command, check your caps and spelling to make sure they are right. You have to go through the program using the keyboard to correctly install it. For me it will tell me that something went wrong right off the bat, just keep going and see if it still works. If it asks you to install 32 bit libraries, do so. Some programs (like steam games) will not run unless you have these installed.

After all of the above has been done, one final command must be completed, or of course you could reboot.

sudo start lightdm (or sudo service lightdm start)

Then, you'll do

ctrl + alt+ F7-F9ish (F7 is usually default, some people have different F keys though)

This should have worked for most people, if not keep looking, there's always a fix. If anyone knows something about getting virtual 7.1 audio to work, please message me somehow. Thanks. Hope I helped someone.

Edit:I've also heard x-swat repositories work better at times. Not sure about that, but worth a try.

(Pro tip, whenever Nvidia related stuff goes wrong, watch this YouTube video.)

Related Question