NVIDIA – New Driver, Supposed to Fix Kernel 4.20 Issues – but Doesn’t?
NVIDIA have released driver 415.22, which is supposed to fix compile problems with Kernel 4.20. Details are here: https://www.nvidia.com/Download/driverResults.aspx/141072/en-us
Unfortunately, this still fails to compile (tested with 4.20-rc5):
................................ CC [M] /home/rgadsdon/kernel/NVIDIA-Linux-x86_64-415.22/kernel/nvidia/linux_nvswitch.o /home/rgadsdon/kernel/NVIDIA-Linux-x86_64-415.22/kernel/nvidia/linux_nvswitch.c: In function ‘nvswitch_os_snprintf_time’: /home/rgadsdon/kernel/NVIDIA-Linux-x86_64-415.22/kernel/nvidia/linux_nvswitch.c:1585:5: error: implicit declaration of function ‘time_to_tm’; did you mean ‘time64_to_tm’? [-Werror=implicit-function-declaration] time_to_tm(time_nsec / NVSWITCH_NSEC_PER_SEC, 0, &t); ^~~~~~~~~~ time64_to_tm cc1: some warnings being treated as errors make[3]: *** [/usr/src/linux-4.20-rc5/scripts/Makefile.build:292: /home/rgadsdon/kernel/NVIDIA-Linux-x86_64-415.22/kernel/nvidia/linux_nvswitch.o] Error 1 make[2]: *** [/usr/src/linux-4.20-rc5/Makefile:1565: _module_/home/rgadsdon/kernel/NVIDIA-Linux-x86_64-415.22/kernel] Error 2 make[2]: Leaving directory '/usr/src/linux-4.20-rc5' make[1]: *** [Makefile:152: sub-make] Error 2 make[1]: Leaving directory '/usr/src/linux-4.20-rc5' make: *** [Makefile:79: modules] Error 2
It would appear that one of the compile issues has been fixed, but the remaining error/s have been ignored?
Robert Gadsdon. December 7th, 2018.
The previous patch still works as-is with 415-22.
The patch works and driver (415.22) seems to install – I get a confirmation – but on booting I get a blank screen. So forget about my original comment above.
I track this page because I use both NVIDIA and VMware.
I’m running Fedora 28 and everytime I try a 4.19.x kernel, it fails to find the NVIDIA drivers and I have to fall back to kernel 4.18.16.
The latest NVIDIA driver, 4.15.22, fixed a problem of hanging on power down, so it shuts down properly again but kernel 4.19 still doesn’t find NVIDIA.
I’m stumped?
I got it working, although I think I’m still missing something.
It turned out that the dkms nvidia driver was not auto building for the new 4.19 kernel. I resolved it by manually invoking it.
After booting into the 4.19 kernel with “nouveau fallback”, “ls -lh /var/lib/dkms/nvidia/” showed no nvidia directory for kernel 4.19.
Running “sudo dkms install nvidia/415.22” installed the missing driver for kernel 4.19.
REBOOT correctly built and Nvidia now works on 4.19