Nikooo777
when life gives me lemons, I rtv
Staff member
Head Admin
Administrator
EliteHunterz Clan Member
Donator
How Battlefield 6 beta broke my Ubuntu NVIDIA driver (and how I fixed it)
I dual-boot Windows and Ubuntu. I normally keep Secure Boot off, but I had to re-enable it in BIOS to play the Battlefield 6 beta (thanks, anti-cheat). Windows was happy… Ubuntu, not so much.
I booted into Ubuntu and only 1 of my 3 monitors lit up.
Also,
What actually happened
With Secure Boot on, Linux only loads kernel modules signed with a trusted key. The NVIDIA driver is a DKMS module and wasn’t signed with any enrolled key, so the kernel refused to load it.
Fix: create/enroll a MOK (Machine Owner Key) and let DKMS sign the NVIDIA module.
The quick fix that worked
During this, I got a blue “Configuring Secure Boot” dialog. I chose Yes to enroll a new key and set a temporary password.
Boom, driver loaded and all three monitors came back.
If you don’t get the blue prompt
Force it:
Enroll a new MOK, reboot to the blue screen, complete enrollment, then:
Takeaways
Now BF6 runs on Windows, and Ubuntu’s happy again. Balance restored.
I dual-boot Windows and Ubuntu. I normally keep Secure Boot off, but I had to re-enable it in BIOS to play the Battlefield 6 beta (thanks, anti-cheat). Windows was happy… Ubuntu, not so much.
I booted into Ubuntu and only 1 of my 3 monitors lit up.
nvidia-smi
failed with “couldn’t communicate with the NVIDIA driver,” and modprobe nvidia
gave:
Code:
modprobe: ERROR: could not insert 'nvidia': Key was rejected by service
Also,
/var/lib/shim-signed/mok/MOK.der
didn’t exist.What actually happened
With Secure Boot on, Linux only loads kernel modules signed with a trusted key. The NVIDIA driver is a DKMS module and wasn’t signed with any enrolled key, so the kernel refused to load it.
Fix: create/enroll a MOK (Machine Owner Key) and let DKMS sign the NVIDIA module.
The quick fix that worked
- Make sure the tools are present and trigger the signing prompt:
Code:
sudo apt update
sudo apt install -y shim-signed dkms
sudo apt install --reinstall -y nvidia-dkms-575 nvidia-driver-575
- Reboot and finish MOK enrollment (the blue screen before GRUB):
Code:
Enroll MOK -> Continue -> Yes -> enter the password -> Reboot
- Back in Ubuntu, I nudged DKMS just in case and verified:
Code:
sudo dpkg-reconfigure nvidia-dkms-575
sudo modprobe nvidia
nvidia-smi
Boom, driver loaded and all three monitors came back.
If you don’t get the blue prompt
Force it:
Code:
sudo dpkg-reconfigure shim-signed
Code:
sudo dpkg-reconfigure nvidia-dkms-575
Takeaways
- Re-enabling Secure Boot can silently break proprietary DKMS modules (like NVIDIA).
- Symptoms: only some displays,
nvidia-smi
fails, “Key was rejected by service
” onmodprobe
. - Solution: enroll a MOK and let DKMS sign the module, or disable Secure Boot (but some anti-cheat will complain).
Now BF6 runs on Windows, and Ubuntu’s happy again. Balance restored.