Thanks for the kind words and help @malcolmlewis and @johannesrs. It’s solved! What I did after this message was:
sudo zypper rm nvidia-compute-G06 nvidia-compute-G06-32bit nvidia-compute-utils-G06 nvidia-driver-G06-kmp-default nvidia-drivers-G06 nvidia-gl-G06 nvidia-gl-G06-32bit nvidia-utils-G06 nvidia-video-G06 nvidia-video-G06-32bit- Reboot
sudo zypper in nvidia-compute-G06 nvidia-compute-G06-32bit nvidia-compute-utils-G06 nvidia-driver-G06-kmp-default nvidia-drivers-G06 nvidia-gl-G06 nvidia-gl-G06-32bit nvidia-utils-G06 nvidia-video-G06 nvidia-video-G06-32bit- Reboot
- While rebooting the MOK screen showed up again. I followed the steps of the tutorial there (select “Enroll MOK”, then “Continue”, then “Yes”. Use your root password (US keyboard layout!) when prompted for a password.)
When the system had booted I started nvidia-settings and got no worrying errors.
nvidia-settings
(process:11000): Gtk-WARNING **: 15:13:04.411: Locale not supported by C library.
Using the fallback 'C' locale.
(nvidia-settings:11000): dbind-WARNING **: 15:13:04.455: AT-SPI: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files
(nvidia-settings:11000): GLib-GObject-CRITICAL **: 15:13:04.486: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
Whether it was the MOK or the reinstallation of every nvidia package I had, I do not know. Here’s what’s in /etc/modprobe.d/nvidia.conf(which I created):
blacklist nouveau
Run sudo dracut -f after editing.
In /etc/default/grub I have:
GRUB_CMDLINE_LINUX_DEFAULT="splash=silent quiet security=apparmor mitigations=auto nouveau.modeset=0 modprobe.blacklist=nouveau rd.driver.blacklist=nouveau nvidia-drm.modeset=1 nosimplefb=1"
Run grub2-mkconfig -o /boot/grub2/grub.cfg after editing.
I would do these edits to /etc/default/grub and /etc/modprobe.d/nvidia.conf before installing all the NVIDIA packages.
After all this I ran sudo flatpak upgrade and the Flatpak NVIDIA things got automatically installed. When I opened darktable and Dolphin Emulator the 970M was accessible.