Does kernel-4.16 + nvidia-396.24 work or not?

Hello,

All updates to OMV LX 3.03 till July, 17, 2018.

Sorry for long posts! Looking for help and answers.

I’ve reported problems to have bbswitch and nvidia working with kernel-4.16 at

https://forum3.openmandriva.org/t/old-problem-is-back-nvidia-and-bbswitch-are-gone/1862

New nvidia 396.24 was said to work fine with kernel 4.16 at

https://forum3.openmandriva.org/t/nvidia-drivers/1890/11

However, I had problems to build nvidia 396.24 with kernel 4.16 in my desktop. For some unknown reason the build of nvidia was possible when I uninstalled many old kernels. See

https://forum3.openmandriva.org/t/desktop-died/1962

My desktop is OK now, nvidia is loaded and working fine with kernel 4.16.

This made me try bbswitch again in my laptop. After experimenting a lot, I’ve noticed that
# modprobe nvidia-current nvidia-uvm
modprobe: ERROR: could not insert 'nvidia_current': No such device
even with nvidia installed in the laptop(???). See:

# find . -name nvidia*
./4.15.18-desktop-1omv/kernel/drivers/net/ethernet/nvidia
./4.15.18-desktop-1omv/kernel/drivers/video/fbdev/nvidia
./4.15.18-desktop-1omv/kernel/drivers/video/fbdev/nvidia/nvidiafb.ko.xz
./4.16.13-desktop-1omv/kernel/drivers/net/ethernet/nvidia
./4.16.13-desktop-1omv/kernel/drivers/char/drm/nvidia-current.ko
./4.16.13-desktop-1omv/kernel/drivers/char/drm/nvidia-uvm.ko
./4.16.13-desktop-1omv/kernel/drivers/char/drm/nvidia-drm.ko
./4.16.13-desktop-1omv/kernel/drivers/char/drm/nvidia-modeset.ko
./4.16.13-desktop-1omv/kernel/drivers/video/fbdev/nvidia
./4.16.13-desktop-1omv/kernel/drivers/video/fbdev/nvidia/nvidiafb.ko.gz

Although it had build (testing repos nvidia 396.24 drivers) in kernel 4.16 it was not seen in the kernel tree!

Then I decided to remove old kernel and remove and install nvidia again (as it helped in the desktop!):

# dkms remove nvidia-modeset/396.24-1 --all

and,

# dkms install -m nvidia-current -v 396.24-1

Creating symlink /var/lib/dkms/nvidia-current/396.24-1/source ->
/usr/src/nvidia-current-396.24-1

DKMS: add completed.

Kernel preparation unnecessary for this kernel. Skipping...

Building module:
cleaning build area...
'make' CC=gcc CXX=g++ SYSSRC=/lib/modules/4.16.13-desktop-1omv/build modules -j8...............................
Error! Build of nvidia.ko.gz failed for: 4.16.13-desktop-1omv (x86_64)
Consult the make.log in the build directory
/var/lib/dkms/nvidia-current/396.24-1/build/ for more information.

So, please! Why nvidia no longer build with kernel 4.16 as it did a few weeks ago?

The file make.log has no clear error message as that available at

https://forum3.openmandriva.org/t/desktop-died/1962

Errata: Copy/paste error. I’ve removed nvidia drivers with,

dkms remove nvidia-current/396.24-1 --all

I’ve been going forth and back with these problems of bbswitch and nvidia. The last thing to say is that after removing all nvidia packages and reinstalling them, nvidia 396.24-1 again built fine with kernel 4.16. I just would like to know what am I doing wrong …

If something works or not is determined by users in this case those with nVidia hardware.

Your problems may to be result of trying to combine something that does work (nvidia-current) with something that doesn’t work (bbswitch). I don’t know what it will take to get bbswitch working again. I know Colin is not available right now. It may not be fixed to until Lx 4 is released. Is there a specific bug report for bbswitch? It needs to be separated from nvidia drivers as far as bug reports. Or maybe there is something incorrect in the nvidia-current package code.