I’ll pass this on. I don’t have a best solution to this problem myself, just an awareness that we currently don’t do this very consistently or well. In fact I saw these kernel packages in testing repo, tested them myself, and moved them to updates repo myself without ever thinking about this. But I don’t have nvidia hardware so it is easy for me to forget this aspect.
I’ve asked before and will again for us to come up with some kind of “system” or organization to seeing to it the tool-chain and kernel module packages that are kernel version specific like nvidia get dealt with consistently. I don’t expect nvidia packages to be available as soon as we release a new kernel package but would like to see these available on a timely basis without people with nvidia hardware having to ask every time.
Yes, I confirm nvidia 415 compiled just fine with kernel 4.19. Thanks
TPG,
I think you might not find dkms logs for the old nvidia interesting any longer since new nvidia 415 is working fine but, just in case, here is it, dkms_make.log.txt (16,4 KB)
@MauRice thanks for reporting and confirming. If you have logs showing the first dkms module install that would show where they were installed and be a big help to developers. It is much easier for devs to fix things like this if they have logs showing the problem.
@adelson.oliveira if you could confirm (with the dkms logs) whether the modules are being installed in the correct folder or not that would be a big help to QA. If there is a problem I’m sure we can get @crisb to fix.
In the log files no mention of installing the kernel module.
I thinks dkms forget it to install it proper.
I started update with lernel 4.17.11 …
DKMS build the nVidia module 390.87 for both kernels.
But only installed for the 4.17.11 kernel.
I could test new kernel against bbswitch and nvidia in a dual graphics laptop. This laptop doesn’t have nvidia as its main graphic card. To check for nvidia functioning I have to have bbswitch working.
I confirm that building bbswitch and nvidia went fine although a warning was issue on “diretory or file not found”. I also confirm that some nvidia modules were not put on the kernel’s tree and I also don’t know if they were sent elsewhere.
What I think it should had happened:
Building process should generate nvidia-drm.ko nvidia-long-lived.ko nvidia-modeset.ko nvidia-uvm.ko
from their source versions, and move these modules to the directory /lib/modules/4.19.3-desktop-2omv/kernel/drivers/char/drm.
But, instead, these modules are found in a gzipped form at /var/lib/dkms/nvidia-long-lived/kernel-4.19.3-desktop-2omv-x86_64/module
and have not been moved to the kernel tree.
The same happened to bbswitch and I could not use optirun to test nvidia after manually placing the nvidia and bbswitch modules where they are supposed to be.
An attempt to use dkms to build bbswitch anyway yielded:
# dkms remove bbswitch/0.8.6 --all
Error! There are no instances of module: bbswitch
0.8.6 located in the DKMS tree.
# dkms install -m bbswitch -v 0.8.6
Error! Could not find module source directory.
Directory: /usr/src/bbswitch-0.8.6 does not exist.
In above, I think building process should look at /var/lib/dkms/bbswitch/0.8-6/source/
for the bbswitch.c source file…
Yes, sorry for this mistake, everything works fine with bbswitch 0.86-6 and nvidia 390.87-1 after dkms install.
As Maurice said, during kernel installation nvidia and bbswitch modules did not appeared at proper places. Only after manually installing with dkms install things went fine.