Old adapter support on latest kernels

Recently I have received an old laptop - Sony Vaio (over 10 years old). It has NVidia GF 410M. Since the linux runs on the machine quite well, I have tried to install nvidia driver there. But there is no way to install nv-390, because it is not compiling. Nothing surprising, because that legacy driver is not supporting the latest kernels. Is there any chance to change that? I can even offer a solution - if there will be a chance to publish it somewhere. I saw already such issue on ubuntu forums, so probably I’m not alone with that issue.

Always running the latest kernel on that machine would require constant user-patching the driver, this is not recomendable. Rather install soething like Ubuntu 22.04 and select the GA kernel (5.15). Then it should be possible to install the 390 driver fro repo or the graphics driver ppa.

But this in contrast will cut me off from all other tool / program updates and latest versions. I agree it might require some work every half of year (as new Ubuntu is released), but I can afford that. My question is - can I publish this somehow or I can do it for myself but there is no way to share that.

Actually, people used to do that here up until some years ago, either inline or a link to a github/gitlab repo. Don’t know why that stopped, I guess distros put more effort in this so interest declined.