I currently see that I have two Linux kernels installed (5.15.0-105-generic and 5.15.0-102-generic). Due to issues with sleep mode, I was testing the 5.15.0-102-generic kernel, and I noticed that the Nvidia graphics driver does not work there. However, it works in 5.15.0-105-generic.
How can that be? Does the Nvidia driver only works together with the most recent Linux kernel on my system?
Maybe I need to reinstall (or reconfigure?) the Nvidia driver for the older kernel? How?
Can I have multiple Nvidia graphics drivers installed at the same time? (Just like I have multiple Linux kernels installed at the same time.)
Edit I now manually did sudo apt install linux-modules-nvidia-545-5.15.0-102-generic. That seems to have solved it. But was that correct? Will apt autoremove still remove this automatically correctly when I don't need it anymore? If not, how can I change it?