Installing Cuda with Bumblebee

I guess I am at the point where it is too messed up for me to handle.
First, I will try just to get bumblebee running…getting to cuda later.

Cheers

Did you read this thread?

https://forums.opensuse.org/showthread.php/512260-Leap-42-1-Optimus-system-with-nvidia-prime-instead-of-bumblebee

It takes a bit of script work but may be more what you want. It looks promising.

Indeed, looks promising.

I will check it, hopefully the next days. I will post the outcome here.

We will see about CUDA later.

Thanks for the link, cheers.

Hmmm, so this guy uses KDE+plasma. I installed the G04 Drivers and after a restart plasma immediately crashes. I will try with Gnome. But on this MSI Notebook installing is really painful:
-everytime on a restart the efi or what displays an additional partition on my usb
-the installer crashes on change of language or on scanning devices.
-etc
ohhh…man…will this ever end?..ok, let’s think positive.

my favourite on installation is:
messing up the efi partition so it becomes read only…hence I cannot install the boot loader.
…or does it just crash on installing the boot loader…in any case…uffff

 Hi, I am this guy ;-) and I hope you have not rebooted right after installing the G04 Nvidia drivers?    You will have to install the suse-prime-0.1-8.1.noarch.rpm package and adapt the configuration file  /etc/X11/xdm/Xsetup   before trying prime-select and before rebooting.      Rebooting your system with just the G04 driver installed will quite certainly mess up your system.   Installing bbswitch is only necessary, if you want to reduce power consumption when not using the Nvidia graphics.

Hi Brunolab,

cool to have a reply from “this guy”. Actually concerning restart I was sort of expecting this. As you may guess from my experience, I unfortunately restarted. And to be even more stupid I did this with the KDE installation and once more with Gnome. Frankly, the result looks very similar to what happened in Ubuntu i.e. sort of a login loop. So, with new motivation due to your reply, I will try again with KDE…or let me think…XFCE. (sidenote: I liked Gnome2 but really don’t get the point of the 3 interface…would probably even use XFCE) I also think the firmware of this MSI laptop is somewhat buggy still, which doesn’t make installing easier.

Cheers

…by the way, does that mean I configure and try/run prime-select before restart?

…maybe I should mention that I need to start with bootoption nomodeset…is that important?

Yes, as far as I remember, I did try prime-select before rebooting, but the important part is not to reboot before installing prime and modifying /etc/X11/xdm/Xsetup. I don’t know about nomodeset 's role in this play, but someone had much better performance under bumblebee without nomodeset and I never had to use the nomodeset option, neither with bumblebee nor with prime. Good luck!

Thanks, right now I try to reinstall…I am on approx try number 20…always crashes on bootloader install or bootloader not working, just now it crashed on x11 fonts…who knows why. This MSI laptop really *****! I keep trying, though.

Oh yeah…it finally works. I haven’t done the bbswitch part yet, but I am not worried about battery lifetime at the moment. What I can say is that it does not work with nomodeset. I had this set as the nouveau drivers crashed on this laptop and I could not boot at all. After installing the Nvidia drivers, this is not required any more. Initially, hence, I still had nomodeset, and the system hung on logout after prime-select nvidia. I had to go to console mode to put prime-select intel and restart, as a restart on nvidia did not work. After removing the nomodeset I can now logout and in with nvidia set. glxspheres goes nuts. Next step will be cuda…but…for now…

…thanks to all of you for all the help over this rather long time span…maybe I can come back to this when I dare to touch cuda with this running system.

(hence the title of the thread: I neither have bumblebee nor cuda at the moment…hehe)

Ok, so I just downloaded the newest cuda 7.5… trying to install it,
it requires:
deinstallation of all G04 drivers and
deinstallation of suse-prime

so…at the moment I cannot install cuda like this…

the trip continues…

…also looking back on the overall story, the nomodeset might actually have been a problem with the bumblebee installation.

nomode set forces use of fall back drivers. It should only be used in case of problems with main drivers to get a working system

If me I’d try using the new method that does not use bumblebee. Should be a better chance of cuda working on a Optimus system since it does not require the modifies nvidia-bumblebee driver

https://forums.opensuse.org/showthread.php/512260-Leap-42-1-Optimus-system-with-nvidia-prime-instead-of-bumblebee