NVidia drivers

I upgraded to 15.3, and I do not boot to graphics mode.
I did this:
First add the repository: zypper addrepo -f https://download.nvidia.com/opensuse/leap/15.3 nvidia

The following command should automatically install the correct driver for your card:
zypper install-new-recommends --repo https://download.nvidia.com/opensuse/leap/15.3

When installation is done reboot the computer.
But nothing got installed.
Then I did zypper up
And NVidia drivers got installed.
After a reboot,
prime-select nvidia
failed and it restored Intel drivers:

# prime-select nvidia

ERROR: Unable to query GPU information

Reconfiguration failed
Restoring previous configuration: intel
 16:10:03 ] PCI BusID of NVIDIA card could not be detected!
 16:10:03 ] Reconfiguration failed
 16:10:03 ] Restoring previous configuration: intel
/var/log/prime-select.log lines 23-89/89 (END)

So I did prime-select unset and rebooted. I get graphics, but glacially slow.

prime-select get-current

No driver configured.

How do I get the NVidia drivers to work?

Post:

/sbin/lspci -nnk | grep -EiA3 'vga|3d|display'

So this is fixed. I tried uninstalling the drivers via
zypper rm x11-video-nvidiaG05
and something uninstalled.
I ran mkinitrd
But remotely, I opened yast2, and the NVidia drivers were there installed!
I clicked each one and got an accept prompt. Then they updated and

prime-select nvidia

nvidia driver already in use!
After a reboot, it worked.
Not sure what caused this.

Repo is https://download.nvidia.com/opensuse/leap/15.3/Check last slash…

Someone needs to fix 15. Graphics Drivers - Install Nvidia or ATI/AMD 3D Driver section 14

14.1.2 Install the Nvidia Driver in the Terminal
You can install the Nvidia driver in the terminal. By using this method you don’t need to know your graphics card model or series.

First add the repository: zypper addrepo -f Index of /opensuse/leap/15.3 nvidia

The following command should automatically install the correct driver for your card:
zypper install-new-recommends --repo Index of /opensuse/leap/15.3

When installation is done reboot the computer.

No need to fix, the repository is correctly added here with that command.
Something else went wrong on your first attempt.
Maybe you had to accept the repo’s signing key (… in YaST you got an accept prompt…) so maybe you had to issue a zypper command, for instance:

zypper se nvidia

to get that prompt.

I also can’t install the Nvidia drivers on my Lenovo laptop. I did have them installed and working under 15.2. Booting into 15.3 I do not boot into graphics mode. From the terminal, I removed the nvidia drivers and the system boots into nouveau. I tried both methods from https://opensuse-guide.org/3d.php and still cannot boot into graphics mode with the nvidia drivers. If I remember correctly, when I loaded 15.2 I simply booted into nouveau, installed the drivers from the repository and rebooted without a problem.

I don’t have Leap 15.3 installed on Nvidia HW so I cannot check directly, but just to rule out the obvious can you check the following?
1- Do you have Secure Boot enabled? If so switch it off.
2- Did you accept the new repo signing key, either at repo creation or when you issued the “install-new-recommends” command?
3- Did you rebuild the initrd? If not sure please issue (as superuser):

dracut --force

4- After the “install-new-recommends” command completed, are the correct packages actually installed? You can check with:

zypper se -i nvidia

5- After reboot, if you cannot boot into graphics mode, are nvidia kernel modules actually loaded? You can check with:

lsmod |grep nvidia

and you may check if something is wrong with a loaded module (version mismatch or???) for instance with:

modinfo nvidia-gfxG05-kmp-default

(And… hope that somebody who actually installed Nvidia drivers on 15.3 reads your post and can offer better help)

Current nVidia packages come with certificate used to sign drivers and should request certificate enrollment during installation. This requires reboot to actually enroll it (and MokManager screen is present for relatively short time so may be missed).

Thanks for the reply. I installed the repository first using Yast, so wasn’t asked about the key, though without a key, I believe Yast would have given me an error. Secure boot is off. I haven’t tried rebuilding initrd, but will follow your steps and see if that works.

I tried the steps. I also checked through Yast that the repository had a key. Zypper se -i nvidia showed that the correct packages were installed. Upon reboot, I did not get to the graphical interface. The lsmod command did not show any graphic modules loaded. The modinfo command confirmed that by returning that the nvidia module was not found. So, for some reason, the nvidia module is not being loaded. Is there a way to force this to load somehow?

Yes, my original problem is that I never got the license pop-ups to approve the drivers.
And it is a real pain that after any driver update, you must boot to text mode, login as root and run prime-select nvidia and then reboot.

To try and load a module you can issue:

modprobe nvidia

and see if any errors are returned.

BTW, my bad, the command:

modinfo nvidia-gfxG05-kmp-default

should return nothing, since it is the name of a package, not of the actual module.

modinfo nvidia

should return something though.

IIRC a reboot was not needed after a “prime-select” command, logout - login was enough the last time I tried (but frankly I don’t know if anything changed in Leap 15.3).

OK. I tried modprobe and prime select. However, modprobe can’t find the nvidia module despite the fact that it shows as loaded. However, there is a change. Now, when I boot, the system does come up in graphics mode after I loaded the nvidia software (which it never did before), but the graphics processor is now identified as llvmpipe.

Loaded module remains loaded if file it was loaded from is deleted; but modprobe looks for a file and if file was deleted modprobe obviously cannot find anything.

I’m sorry, I got confused. I meant the file is on the machine according to Zypper. The module is not loaded according to modinfo and modprobe cannot find the file.

Mysterious solution to the problem. Despite the fact that I had removed the Nvidia driver packages (I thought and Yast showed) and was running on Nouveau (definitely), the Software Updater decided to update the (non-existent??) Nvidia driver packages to 460.84. I rebooted, and now I am running on the Nvidia drivers with no problems. Could it be that the last iteration of the drivers was simply buggy and causing the issues I was having?

I don’t know, but there has been a similar suggestion here and a search for the 460 series on the Nvidia developer forum returns several threads, e.g. here

Maybe you did not uninstall ALL the NVIDIA packages??