So my overall goal is that I want to be able to code with CUDA enabled applications.
However, upon many days of searching, using installation walkthroughs, and reinstalling countless times after driver failure… I'm now here as a last resort.
I cannot get Ubuntu 12.04 LTS to install the NVIDIA 295.59 driver for my GeForce GT 540M NVIDIA graphics card.
My main system specs is as follows… (I believe having the Intel processor may be the problem)
DELL Laptop XPS L502X
Intel® Core™ i7-2620M CPU @ 2.70GHz × 4
Intel Integrated Graphics
64 bit
NVIDIA GeForce GT 540M
Ubuntu 12.04 LTS
All other specs are irrelevant unless I forgot something?
Methods Tried:
aptitude install nvidia-current (all packages)
Results:
Nothing really happened. Nothing in the additional drivers menu appeared, nor was the NVIDIA X Server settings application allowing access because it thought there was no NVIDIA X Server installed.
Downloaded driver from nvidia.com.
Set nomodeset in the grub boot menu through /boot/grub/grub.cfg
Went to console and turned off lightdm.
Installed the driver, but it said the pre-install failed? (mean anything?)
Started up lightdm again.
Results:
NVIDIA X Server settings still didn't notice it. Even tried to do nvidia-xconfig multiple times. I also went into the config file to make sure the driver setting said "nvidia".
aptitude install nvidia-173 (all packages)
Results:
Couldn't find the xorg-video-abi-10 virtual package. It was nowhere to be found and the ubuntu forums everywhere had no answers. Lots of people were having this problem.
This is easily done in windows, simply download the driver and debug in visual studio with no problems at all. I'd like clear step-by-step instructions on how I should go about this. I'm relatively new to linux but I can find my way around pretty well so you aren't talking to a straight-up beginner. Also, if you think another thread may have the answer please post because I was having a hard time looking for my specific type of problem.
TL;DR I want to have access to my GPU so I can code with CUDA while in Ubuntu 12.04 on my 64 bit laptop that also has Intel integrated graphics on the processor.
Solution:
sudo apt-add-repository ppa:ubuntu-x-swat/x-updates && sudo apt-get update && sudo apt-get upgrade && sudo apt-get install nvidia-current
Best Answer
Is there any specific reason you want version 295.59 installed?
Solution I (Preferred)
I would recommend looking at http://www.youtube.com/watch?v=qYYnTdX6EwI.
I quote from the link Description (Credit: Youtube User: LastAxis)
Solution II
If the solution in the link did not work for you then first uninstall nvidia drivers (if any) then use the following procedure (before reinstalling again).
Go to "Dash Home" (top left) and type "system settings"> "Hardware" > "Additional Drivers". Ensure nothing is active (may have to restart PC if the message instructs accordingly.).
Installing NVIDIA drivers (295.49 is Stable as of now although a new 295.53 is available)
- Ubuntu 32-bit (i386):
- Ubuntu 64-bit (amd64):
If you screw anything simply restore the original
sudo cp /etc/X11/xorg.conf.orig /etc/X11/xorg.conf
(or remove this if using Onchip Intel Card)Alternative
WORST CASE ALTERNATIVE: FOR OPENGL ONLY (WITHOUT CUDA)
Try the following on Ubuntu 12.04 [Worst case if nothing works with NVIDIA GPU, with this you can use OpenGL with Intel onchip display card if not for NVIDIA's CUDA Kit]
If it says something like
Then proceed
For 32 bit Reinstall xorg completely
For 64 bit Reinstall xorg completely
The OS info (32 bit/64 bit) can be verified using
uname -a
Then Reconfigure Xorg
On reboot run
glxinfo
again and verify that those valuesverify that system is using intel graphics driver
cat /var/log/Xorg.0.log
UPDATE:
It appears Bumblebee Drivers is the only choice at this juncture for NVIDIA Optimus technology loaded GPU.