1

I'm using a lenovo ideapad 700 (i5-6300HQ and GTX 950M), optimus based(?) laptop.

My goal would be to use the GPU for openCL or CUDA computing mainly, so using the GPU to display games/desktop isn't a priority at all(still would be nice though).

The problem is, I can't get past installing the nvidia drivers properly. It installs with no issues, however it simply just isn't used.

After installing lshw just says that it's using the nouveau driver, but when blacklisting (or modeset=0) it, the GPU will become unclaimed with no drivers.

I tried all kind of driver versions, even separately getting just the CUDA sdk, but it still relies on the driver.

Could anyone give me an installation method that works?

Also do I need to use bumblebee, if yes, can I access the GPU through it with openCL and CUDA tools directly?

I haven't tried installing bumblebee after I upgraded to 17.10, because it might not be stable, but if anyone could confirm that it works, I'd try it.

Update: I'm using the 4.14.10-* kernel atm, and DKMS will throw compile errors saying that the headers aren't supported.

Switching back to 4.13.* will solve the installation errors, but the driver will cause black screens and freezes, and a list of errors at boot.

tamasfe
  • 248
  • 2
  • 12

2 Answers2

2

I managed to temporarily "fix" it.

And my assumption after some testing is that there are 2 kinds of issues present:

First, newer 4.14.*+ kernels aren't supported by the nvidia drivers yet, so they will fail to install properly, however it isn't obvious.

This was rather hard to find out, as instead of big flashing "ERROR"s, and install failure, I got an install success saying the drivers were installed, with a well-hidden DKMS error. If I use the GUI installer, the error isn't even shown.

Anyway, the fix for this is to revert to an older kernel, pretty much straightforward.

Second, the new GDM3 has issues with nvidia drivers, and will fail to load properly.

A solution for this is to temporarily switch to lightDM, even though I prefer the look of GDM3 by a lot, having a functioning gpu is more important at the moment.

Overall:

I'm using a 4.13.10-* kernel, with an nvidia-384 driver, with no secure boot (no UEFI either), and just to be sure "nouveau.modeset=0" added to kernel parameters.

I haven't tried bumblebee, but I don't need it at the moment that much, and I'm happy that at least the drivers work.

I'm going to report both issues at launchpad, if they aren't reported yet.

update: There is an open bug for the nvidia drivers, apparently it's indeed Wayland related, so it's likely to be fixed in 18.04 (hopefully).

another update: It is actually enough to disable Wayland altogether in GDM3, the steps are described here: How to disable wayland in 17.10 in gdm3 login screen

tamasfe
  • 248
  • 2
  • 12
0

I have the same video card as you GTX 950M. I succeed by installing nvidia drivers from Proprietary GPU drivers PPA. I'm using kernel 4.13.0-25-generic in Ubuntu 17.10 with Gnome installed. Everything is running accordingly. No blank screen, none of the problems that you are describing right here.

sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update
sudo apt-get remove nvidia*
sudo apt-get install nvidia-384 nvidia-384-dev

Reboot after finishing the procedure.