System Info
• OS: Zorin 18
• Current kernel: 6.14.0-33-generic (confirmed via uname -r)
• GPU setup: Intel i915 (integrated) + NVIDIA discrete (dual-GPU)
• NVIDIA driver installed: nvidia-driver-590-open (version 590.48.01)
• nvidia-prime: installed (v0.8.17.2)
Background / What I Did
I previously blacklisted my NVIDIA driver so that i915 would become the active GPU. I wasn't aware of i915's limitations at the time. Now I have an ongoing Machine Learning project that requires NVIDIA GPU compute (CUDA), so I need to switch back.
Steps I Was Advised to Take
Step 1 — Remove the blacklist file:
sudo rm /etc/modprobe.d/blacklist-nvidia.conf
Step 2 — Switch to NVIDIA via prime-select:
sudo prime-select nvidia
Step 3 — Rebuild initramfs:
sudo update-initramfs -u
Step 4 — Reboot.
My Concern — Kernel Mismatcch
When I ran dpkg -l | grep nvidia, I noticed the pre-built NVIDIA kernel modules are built for kernels 6.17.0-14 and 6.17.0-19 — but my currently running kernel is 6.14.0-33-generic. There is no nvidia module listed for 6.14.0-33.
I also noticed that nvidia-dkms-590-open has an 'rc' status (removed, config files remain), meaning DKMS is not currently present to rebuild the module automatically.
My fear: switching to NVIDIA and rebooting into kernel 6.14.0-33 will result in a black screen because no NVIDIA module exists for that kernel version.
My Questions
-
Is my kernel mismatch concern valid? Will I get a black screen on reboot?
-
Should I reinstall nvidia-dkms-590-open FIRST before doing the 4-step switch?
sudo apt install nvidia-dkms-590-open -
After DKMS is reinstalled, how do I verify it built the module for 6.14.0-33 before rebooting?
ls /lib/modules/$(uname -r)/updates/dkms/ | grep nvidia -
Is there any other trapp or pre-condition I should be aware of before proceeding?