[SOLVED] What is the currently accepted means of getting Nvidia to work on Ubuntu 15.04?
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
What is the currently accepted means of getting Nvidia to work on Ubuntu 15.04?
I've seen and followed at least 8 guides to getting Nvidia's proprietary drivers working with Ubuntu.
Here are a list of answers and guides that I have tried (about twice each) that do not work.
http://askubuntu.com/questions/47292...setup-in-14-04 That fixed the GLX error, but I'm clearly watching movies on my CPU. The CPU monitor goes through the roof and the video takes a while to skip around. Also, "glxspheres not found" is what I get when I try the "glxspheres" command. So I guess it "fixes the error" in the sense that it disables the graphics card and leaves a bunch of software that appear to "cancel each other out" on your system.
https://help.ubuntu.com/community/Bi...erHowto/Nvidia This leads to the screen randomly freezing. Oddly enough, I appear to never "loose control" of the keyboard and mouse. It's just that the screen randomly decides to stop updating. Upon switching the screen off and on, I've found that my futile efforts to move the mouse and type on the keyboard did do something, it was just that the screen stopped updating.
http://askubuntu.com/questions/45122...-nvidia-driver I tried installing the packages from apt-get, but it just repeatedly tells me to configure xorg. No matter how many times I run nvidia-xconfig and/or reboot, this problem persists.
http://www.binarytides.com/install-n...-ubuntu-14-04/ Be warned abou the xorg-edgers ppa. It has proved to have the same effect as the "add restricted drivers" approach on the official guide in that it just leads to the screen randomly not updating. However it leaves your system a mess when you try to get rid of the drivers it installs. A lot of stuff gets upgraded when adding the xorg-edgers repository and it becomes a nightmare to bring your system back.
http://askubuntu.com/questions/48141...nstead-nouveau As nearest I can tell the blacklist step does exactly nothing, other than create a new text file in an obscure directory so you can check it off your list of things to try.
http://askubuntu.com/questions/14920...all-nvidia-run I've tried the "use the run file from nvidia's official website" several times over the course of a year now. As of 6 months ago, it used to produce that annoying screen freezing problem. As of today, it just gives me the old "GLX not found" error.
Install dkms. I can't find the askubuntu answer that involved apt-get install dkms, but that does not produce any noticeable effect either.
So after compiling this series of dead ends, I was hoping someone might be able to either tell me of a new means of getting my graphics card to work, or confirm that there is no known solution to this problem.
Obviously, I would be thrilled if someone knows of a "tried and true" way to do it. I am admittedly frustrated by all of these lengthy proposed fixes that never solve the problem. Then having to try to "undo" each failed installation before trying the next approach.
I am currently typing this question on an ASUS laptop that, according to the sticker under my left wrist, says it contains a "Nvidia Geforce GTX 960M" graphics card.
Another possibility is that I actually had installed the graphics cards at some point, and I misdiagnosed slow rendering for an insufficient graphics card (I sometimes render 3D volumetric data with mayavi) for ill configured graphics drivers. Though I doubt that since I have always confirmed my suspicions when I found the CPU work monitor skyrocketed as I attempted to rotate the 3D image. Also, my nvidia settings manager has never actually confirmed a working graphics card--often complaining about an ill-configured xorg settings ("We're sorry, the graphics card you are trying to reach is not available, please run nvidia-xconfig and try again") or failing to exist entirely (then I install it, and it resumes complaining about incorrect xorg settings).
i think it's a little unfair to say that something "does not work" if it actually does not work on your system.
i'm a little unsure as to what the problem actually is?
i hope you understand that i did not click all those links, i'm counting on you to provide a more comprehensive description of the problem, with command line output and such.
fwiw, i would start by identifying the card and which driver it is currently running on with sth like
Code:
lspci -k | grep -iA10 vga
and work my way from there.
also, hopefully you managed to keep track of all the changes you made and unmade... looks a liitle messy to me now.
i never had to run nvidia-xconfig or even configure Xorg. biggest problem is usually the switch from nouveau to nvidia, some blacklisting might have to be added and/or removed.
Sorry for the initial irritability. From my end, I just find get an endless list of dead but unsolved threads after trying to solve this problem myself for about a year now (on two different computers), but I guess some of those solutions may have worked for various hardware. I just wish there was a comprehensive guide on Ubuntu's website rather than a seemingly infinite number of potential solutions on different forums. </end rant>
Anyway, this is the output from lspci -k | grep -iA10 vga
aeftimia@HAL:~$ lspci -k | grep -iA10 vga
00:02.0 VGA compatible controller: Intel Corporation 4th Gen Core Processor Integrated Graphics Controller (rev 06)
Subsystem: ASUSTeK Computer Inc. Device 185d
00:03.0 Audio device: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller (rev 06)
Subsystem: Intel Corporation Device 2010
Kernel driver in use: snd_hda_intel
00:14.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB xHCI (rev 05)
Subsystem: ASUSTeK Computer Inc. Device 185d
Kernel driver in use: xhci_hcd
00:16.0 Communication controller: Intel Corporation 8 Series/C220 Series Chipset Family MEI Controller #1 (rev 04)
Subsystem: ASUSTeK Computer Inc. Device 185d
Kernel driver in use: mei_me
like i said, i'm still not sure what the actual problem is?
according to the output you posted, you do not have an nvidia card/chip in your laptop, but an "Intel Corporation 4th Gen Core Processor Integrated Graphics Controller" instead. which should be good enough with the i915 (iirc) module. but, no kernel driver is in use for that card. probably a result of your attempts at installing an nvidia driver for an intel card.
maybe the sticker is just wrong?
if you don't know, please post the complete "sudo lspci" output, or, even better, "sudo lshw".
plus exact make and model of your laptop.
...well if that would explain a lot. And my frustration would be appropriately redirected to ASUS for false advertising--especially considering the time I've spent troubleshooting a nonexistent gpu.
lspci:
Code:
00:00.0 Host bridge: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor DRAM Controller (rev 06)
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor PCI Express x16 Controller (rev 06)
00:02.0 VGA compatible controller: Intel Corporation 4th Gen Core Processor Integrated Graphics Controller (rev 06)
00:03.0 Audio device: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller (rev 06)
00:14.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB xHCI (rev 05)
00:16.0 Communication controller: Intel Corporation 8 Series/C220 Series Chipset Family MEI Controller #1 (rev 04)
00:1a.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB EHCI #2 (rev 05)
00:1b.0 Audio device: Intel Corporation 8 Series/C220 Series Chipset High Definition Audio Controller (rev 05)
00:1c.0 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #1 (rev d5)
00:1c.1 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #2 (rev d5)
00:1c.2 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #3 (rev d5)
00:1c.3 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #4 (rev d5)
00:1d.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB EHCI #1 (rev 05)
00:1f.0 ISA bridge: Intel Corporation HM86 Express LPC Controller (rev 05)
00:1f.2 SATA controller: Intel Corporation 8 Series/C220 Series Chipset Family 6-port SATA Controller 1 [AHCI mode] (rev 05)
00:1f.3 SMBus: Intel Corporation 8 Series/C220 Series Chipset Family SMBus Controller (rev 05)
01:00.0 3D controller: NVIDIA Corporation Device 139b (rev a2)
04:00.0 Network controller: Intel Corporation Wireless 7260 (rev bb)
05:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. Device 5287 (rev 01)
05:00.1 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 12)
ok, your last output proved that there is currently no driver assigned to that nvidia thing there (whatever it is - it doesn't even say graphics controller, only 3d controller).
I looked into hybrid graphics and came across a few of the many tutorials I had already tried. In particular, I recall finding a thread that said to install from the automated "additional drivers" gui so I get Nvidia Prime. So I tried it. I got a subset of the same problems I always get:
"GLX not found" upon opening parole
nonfunctional nvidia settings.
So I uninstalled it, and haven't touched anything since.
I checked out the link you gave in your last post and it looks like the same stuff I've seen before. Should I file a bug report for my laptop? Assuming these articles only fail to work for me, this looks like some kind of incompatibility with ASUS. This is the second ASUS laptop for which I've been utterly unable to get my graphics card(s) working. If nothing else, it might be worth warning future linux users of the dangers of ASUS laptops.
I just wish there was a comprehensive guide on Ubuntu's website rather than a seemingly infinite number of potential solutions on different forums. </end rant>
Anyway, this is the output from lspci -k | grep -iA10 vga
@Habitual just tried your solution. Got the usual error.
Code:
aeftimia@HAL:~$ parole
Xlib: extension "GLX" missing on display ":0.0".
libEGL warning: DRI2: failed to authenticate
(parole:1844): GLib-CRITICAL **: g_strsplit: assertion 'string != NULL' failed
(parole:1844): Clutter-CRITICAL **: Unable to initialize Clutter: The OpenGL version could not be determined
Segmentation fault (core dumped)
Also,
Code:
aeftimia@HAL:~$ sudo dpkg -l nvidia* | grep ii
ii nvidia-340 340.76-0ubuntu2 amd64 NVIDIA binary driver - version 340.76
ii nvidia-opencl-icd-340 340.76-0ubuntu2 amd64 NVIDIA OpenCL ICD
ii nvidia-prime 0.8.1 amd64 Tools to enable NVIDIA's Prime
ii nvidia-settings 352.09-0ubuntu0~xedgers15.04.1 amd64 Tool for configuring the NVIDIA graphics driver
Now I'm going to uninstall that Nvidia driver I just installed so I can open parole again.
Yes you have a "hybrid graphics" intel/nvidia setup, and also with a very new nvidia chip (hence the code number rather than a proper description).
On Debian, the bumblebee project provides packages to support that (as nvidia seems less than interested in properly supporting it's linux using customers) - on ubuntu, no clue sorry.
A newer kernel/xorg stack will probably support your chip better, but you'll still need bumblebee or equivalent to handle the "dynamic switching".
Probably better avoided if you are buying new hardware...
on my system, nvidia-340xx is the legacy branch, which basically means "older devices".
i find that weird if compared to the last post (very new nvidia).
while i don't have a solution, i would recommend doing it manually and not trusting those gui tools.
The gui tool listed 346, 349, and 352. I had already tried installing plenty of stuff from that gui tool as well as manually from command line as well as manually from Nvidia's website, so I just tried following Habitual's advice to the letter just in case there was something special about 340.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.