Yesterday, I did a fresh install of OpenSUSE Tumbleweed on my NVidia-powered machine (GeForce GTX 1060 6gb). When installing, I enabled Secure Boot.
By default, the distribution comes with nouveau drivers, and the process of installing official NVidia drivers is outlined here: https://en.opensuse.org/SDB:NVIDIA_drivers
I successfully added openSUSE-repos-Tumbleweed-NVIDIA as per the guide; first oddity is that by default it shipped with openSUSE-repos-MicroOS-NVIDIA, which got uninstalled as a conflicting package, despite this being Tumbleweed. (I later tried to rollback and do these steps with openSUSE-repos-MicroOS-NVIDIA installed instead, to no avail)
Next, as per the guide, I tried to do zypper install-new-recommends. After installation, I rebooted the machine. Upon login, resolution was forced to low.
inxi -G
has shown N/A in the driver field.
I’ve rolled back via snapper rollback
, confirmed that nouveau drivers are back in place (resolution was back to normal, inxi -G
has shown nouveau
), and tried to install nvidia-video-G6 using YaST. It has automatically installed all dependencies as well.
Upon login, I faced the same issue - resolution degradation and N/A in the driver field.
Troubleshooting for this issue has shown that secure boot may not allow these drivers to be launched without importing the respective key, as listed in the same Nvidia drivers article. However, the file that needs to be imported is not at the suggested location (/usr/share/nvidia-pubkeys/); in fact, /usr/share only had nvidia folder, which didn’t seem to contain any keys.
As a workaround, I attempted to disable secure boot by entering:
mokutil --disable-validation
. A menu appeared on reboot, through which I disabled secure boot. Further launches had “launching in insecure mode” notice.
mokutil --sb-state
output is SecureBoot disabled
.
Then, I tried to install the driver again, as described above. Still no luck, and same issue.
So, what else could be the issue and what do I do about it next? Thank you in advance for any replies!
Solution that worked: instead of going for install-new-recommends, install the following package:
nvidia-driver-G06-kmp-meta
It should be available by default, but if not, add the respective repository by using this command:
zypper addrepo https://download.nvidia.com/opensuse/tumbleweed/
Thanks to Björn Tantau! The comment with the solution: https://swg-empire.de/comment/7201260
First you should see if the nvidia module is loaded
lsmod | grep nvidia
If not, try to load it.
sudo modprobe nvidia
If it’s still not loaded after that check
dmesg
for errors.sudo modprobe nvidia
gives the following output:modprobe: ERROR: could not insert 'nvidia': No such device
dmesg gives the following:
[ 56.697148] [ T2989] NVRM: The NVIDIA GPU 0000:27:00.0 (PCI ID: 10de:1c03) NVRM: installed in this system is not supported by open NVRM: nvidia.ko because it does not include the required GPU NVRM: System Processor (GSP). NVRM: Please see the 'Open Linux Kernel Modules' and 'GSP NVRM: Firmware' sections in the driver README, available on NVRM: the Linux graphics driver download page at NVRM: www.nvidia.com. [ 56.702043] [ T2989] nvidia 0000:27:00.0: probe with driver nvidia failed with error -1 [ 56.702102] [ T2989] NVRM: The NVIDIA probe routine failed for 1 device(s). [ 56.702104] [ T2989] NVRM: None of the NVIDIA devices were initialized. [ 56.702837] [ T2989] nvidia-nvlink: Unregistered Nvlink Core, major device number 238
Guess it won’t work with my card? Gonna read through that (quite massive) readme, it seems…
P.S. Looks like everything pre-Turing does not support open drivers, and OpenSUSE did not communicate it well. Looking into ways to install proprietary driver.
P.P.S. Wait, it gets worse! The main way to install the proprietary driver is through install-new-recommends, BUT this installs open drivers on unsupported cards! This may be a good reason for a bug report once I figure the rest out.
nvidia-driver-G06-kmp-meta
should be the package to install. It should pull in the gl and video packages.It worked!
Thank you a lot. Now it works properly, and inxi outputs nvidia driver.
Marking as solved.