Nvidia 384 and 390 is not building DKMS for Linux 4.15 below

384.11 is not working for 4.14 , i know it is not compatible with 4.15.

390.25 is not working for 4.14 or below. It only works with 4.15.

But PrimeSync is broken on 4.15.

Real mess.

What exact version of 4.14 are you using? At least 4.14.11 and 4.14.15 are known to be broken due to bugs introduced with meltdown/spectre mitigation patches in kernel and gcc.
I’m running 4.14.18+390.25 and it works.

if it’s just a problem of dkms not kicking in, use
sudo /usr/lib/dkms/dkms_autoinstaller start
to rebuild the modules for currently running kernel.

4.14.9 and 4.14.13 was the kernels.

They’re giving DKMS apport error. And because of this system says “Nvidia Prime is not supported by your hardware” because it can’t relate the driver and system.

Could be specific to dual gpu combinations. Intel HD 630 ( i7 7700 HQ) and GTX 1050.

The dkms apport error should point you to a build.log, attach that.
Maybe there’s just the kernel headers missing for the kernel, check with
sudo dpkg-query -l linux-headers* |grep ii

Might also be the gcc spectre patch, then you’ll need to use a kernel 4.14.16 and up.

Output is like this.

ii  linux-headers-4.14.9-041409          4.14.9-041409.201712251541 all          Header files related to Linux kernel version 4.14.9
ii  linux-headers-4.14.9-041409-generic  4.14.9-041409.201712251541 amd64        Linux kernel headers for version 4.14.9 on 64 bit x86 SMP
ii  linux-headers-4.15.3-041503          4.15.3-041503.201802120730 all          Header files related to Linux kernel version 4.15.3
ii  linux-headers-4.15.3-041503-generic  4.15.3-041503.201802120730 amd64        Linux kernel headers for version 4.15.3 on 64 bit x86 SMP

I deleted 4.14.13 before opening this topic on my trial session , because 4.14.9 was the last known 384.111 working kernel of mine. So i thought that problem is for only 4.14.13 but turned out it isn’t.