Unable to install bumblebee on laptop running leap 15.1

Hello.
I use to use a script i wrote in 2017
bumblebee install : https://paste.opensuse.org/78380357

I have update the same laptop with leap 15.1 and run the same script to install bumblebee.
The problem arise when the program try to comment out some line in /etc/ld.so.conf.d/nvidia-gfxG*.conf because that file is not installed.

Is there any difference in the install procedure of bumblebee between leap 42.3 and leap 15.1

The script has been modified to install nvidia driver from the right repos :

zypper addrepo --refresh http://http.download.nvidia.com/opensuse/leap/15.1 NVIDIA
zypper install-new-recommends

Note 1 :
There are errors during mkinitrd :

/usr/lib/dracut/modules.d/90kernel-modules/module-setup.sh: line 46: xhci-hcd: command not found

note 2 :
I have run my script twice, so it is normal that zypper found package already installed.

Note 3 :
The full screen log of my current install is here : https://paste.opensuse.org/97945139

Note 4 :
At this point, i have not already reboot the computer.

Any help is welcome.

Leap 15 supports client side GLVND so there is no need to mess with library links. This makes ld.so override redundant.

Hi,

Just one comment on that script.

cat /etc/modprobe.d/99-local.conf | grep -c "blacklist nouveau"

is the same as

grep -c "blacklist nouveau" /etc/modprobe.d/99-local.conf

So piping cat to grep is not needed in most cases. Just saying.

Noted.
Thank you very much.

I don’t understand what you mean.
What is GLVND ???

This makes ld.so override redundant.
???
What relationship with
/etc/ld.so.conf.d/nvidia-gfxG*.conf

Which suppose to be modified as said in an recent SDB:BUMBLEBEE

Leap releases

Make sure all lines in /etc/ld.so.conf.d/nvidia-gfxG*.conf are commented out. The nvidia installer should detect optimus hardware and do it automatically, but it’s better to be safe.

Any help is welcome

It is framework that enables applications to automatically chose correct OpenGL implementation matching X11 server.

Which suppose to be modified as said in an recent SDB:BUMBLEBEE

So this SDB is incorrect for Leap 15.

I replied to your question “if there is difference between Leap 42 and 15”. Yes, there is. Now you have great opportunity to correct this SDB based on your experience so that future users won’t fall into the same trap.

In think that my problem come from the driver provided by Opensuse. I must dig further.
My laptop hardware does not support a Nvidia proprietary driver fmore recent than 390.116.
Opensuse propose 390.129 and seems not working on my laptop.

Is there any chance to find a COMPUTEG04-390.116, gfxG04-kmp-default-390.116, glG04-390.116, x11-video-nvidiaG04-390.116 package on opensuse repos?

Any help is welcome

OK.
Thank you very much.

Any idea ?

Hi
Your log shows running the old kernel (4.12.14-lp151.28.16-default) hence the error as it’s trying to install the nvidia drivers for the new kernel (4.12.14-lp151.28.20-default).

You need to update first, reboot to the new kernel and then install so it matches the running kernel.

OK. I try that.
Thank you very much.

hello.
Before reinstalling I would like to clean every things.
I cannot remove completely opensuse nvidia driver.
Would you have a look at my today’s post :
https://forums.opensuse.org/showthread.php/537956-Unable-to-remove-opensuse-nvidia-driver?p=2917769#post2917769