#SecureBoot causing Nvidia drivers to fail to load

1 messages · Page 1 of 1 (latest)

uneven dragon
#

Hello all. I recently got gifted battlefield 6 and as you may know it requires secureboot turned on. I just got win11 set up on a separate drive but now my linux mint gives me a "efis stub warning" when booting into it from grub and running on the fallback default display drivers instead of the 580 nvidia drivers that were previously working prior to turning off csm and turning on secureboot. Obviously the easiest solution would be to turn off secureboot, but i wanna be able to freely switch between linux and windows-for-battlefield 6 without having to do that. A quick search online shows a lot of conflicting answers to linux mints compatibility with secureboot.

SPECS
Linux Mint 22.1 cinnamon
B550 aorus elite ax v2
Amd ryzen 5 5600x
Nvidia RTX 4070

uneven dragon
#

Alright, after doing a bit more research it seems the reason the nvidia drivers arent loading is due to them being unsigned (whatever that means) and the way to fix that is pointing towards something called MOK

uneven dragon
#

I really need help from someone who knows more about this

stable fog
#

nvidia drivers suck with secure boot

#

you have to enroll secure boot support

#

i think

#

From what i understood you just need to run sudo update-secureboot-policy --enroll-key

uneven dragon
#

yep, thats exactly what i did! just came back here to paste that solution in case anyone also was in a similar situation as me

frozen wren
#
mokutil --list-enrolled
sudo mokutil --test-key /var/lib/shim-signed/mok/MOK.der
sudo mokutil --enable-validation``` 
at some point it will ask you to create a password, remember it and when you reboot and enable Secure Boot, you will likely need to choose enroll MOK option and enter the same password
#

then from there, choose reboot in the MOK bluescreen and you're all set.

#

confirm once back in desktop with:

inxi -G```
ionic pewter
#

hello,

I have kind of same issue but it still does not work after doing lots of stuff

mint 22.2 cinnamon , 6.4.8
kernel 6.14.0--33-generic

CPU AMD 3600X
GPU Nvidia TU104 (RTL 2070 Super)
Display server: X11

it's a very fresh install so I wouldnt really mind doing it again.

history :

  1. setup BIOS to enable secure boot
    install windows 11, install & play BF6
    install linux mint on another hard drive

  2. install through Drivers Manager GUI the nvidia drivers
    -> 2nd screen does not work anymore, main screen is not recognize ; steam installed, Among Us runs at like 15fps...

  3. uninstalled them
    https://hatchjs.com/uninstall-nvidia-driver-linux/

  4. followed this link to install them
    https://askubuntu.com/a/1049479
    step 6. fails

  5. I did

sudo mokutil -i /var/lib/shim-signed/mok/MOK.der
mokutil --list-enrolled
sudo mokutil --test-key /var/lib/shim-signed/mok/MOK.der
sudo mokutil --enable-validation

too

then retried 4).6. , still fails.

What did I miss?

I used the 580.95.05 driver.

Learn how to uninstall Nvidia drivers on Linux with this step-by-step guide. Includes instructions for all major Linux distributions, as well as tips for troubleshooting common problems.

uneven dragon