If that’s the case do you happen to know where I find the key to add it with mokutil or something? I can only get the driver working if I disable Secure Boot.
Thanks, so I was prompted to add the MOK for OpenSuse but reinstalling:
sudo zypper in -f nvidia-open-driver-G06-signed-cuda-kmp-default
did not trigger another prompt on the following reboot. Nor does the /usr/share/nvidia-pubkeys directory exist which is what’s described in the documentation.
I double-checked and secure boot is indeed enabled which seems to be a prerequisite for the key to be added, according to the docs. I don’t see any .der files except the OpenSuse shim one:
fd -e der
usr/share/efi/x86_64/shim-opensuse.der
If it helps:
ls -al /etc/uefi/certs/
total 12
drwxr-xr-x. 1 root root 108 Jan 25 16:27 ./
drwxr-xr-x. 1 root root 10 May 4 2021 ../
-rw-r--r--. 1 root root 1177 May 4 2021 1F673297-kmp.crt
-rw-r--r--. 1 root root 1144 Dec 1 11:14 4659838C-shim-opensuse.crt
-rw-r--r--. 1 root root 1177 Jan 18 10:01 F8CEAA94.crt
This doesn’t look like a MOK issue. On hybrid systems the AMD iGPU drives the display, and the NVIDIA GPU is often powered down by default.
Try invoking __NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia glxinfo | grep vendor or __NV_PRIME_RENDER_OFFLOAD=1 nvidia-smi
to test offload. If that wakes the NVIDIA GPU up and shows output, then the driver is installed and working as expected.
AFAIU, this isn’t essential for a working desktop, but if you want the nvidia module to load at boot, add nvidia-drm.modeset=1 to your GRUB kernel parameters, rebuild the initramfs with sudo dracut -f
and then reboot.
Bizarre, I had this whole message written up because I had it configured as you describe but it only worked when secure boot was disabled. So I reenabled secure boot and it didn’t even work anymore there. I uninstalled and reinstalled all the nvidia packages and it seems to be ok now even with secure boot enabled. Thanks for your help!