display manager fails to load after installing nvidia drivers via zypper

# zypper addrepo --refresh https://download.nvidia.com/opensuse/tumbleweed NVIDIA
# zypper inr -r NVIDIA

It automatically offered two G05 packages, which I installed. I rebooted and it stated that the display manager failed to load, and that I might want to check

systemctl status display-manager.service

I was not enlightened by doing so.

I then uninstalled the two packages and rebooted, only to be met with the same error. Fortunately, I had already set myself up to install “the hard way” before trying this, so I installed the official driver using their .run file, rebooted, and the display manager loaded.

This is on a fresh (as of today) install of Tumbleweed. Nvidia GTX 750.

It automatically offered two G05 packages,

So please post:

zypper se -si nvidia
zypper lr -d

I uninstalled them with zypper and then deleted the repo; however, I just input the first two mentioned commands again to get the package names for you

nvidia-gfxG05-kmp-default nvidia-glG05

zypper se -si nvidia shows nothing; however, when I look in the yast2 software manager it shows that they are installed. :open_mouth:

Actually it shows the following are installed for that repo:

  • nvidia-computeG05
  • nvidia-gfxG05-kmp-default
  • nvidia-glG05
  • x11-video-nvidiaG05

The extra two I never saw installed.

Ah OK, I didn’t fully follow the instructions on the wiki… lol. But then they are a bit odd.
Why am I doing zypper inr -r NVIDIA and having those two packages pulled in first, before the actual driver?
Amusingly, I was the one to add the subsequent command, which I failed to execute.
I’m guessing we can just skip the zypper inr -r NVIDIA, since zypper in x11-video-nvidiaG05 pulls the same two packages in.
Perhaps the original instructions that simply added the repo followed by zypper inr actually pulled everything in.
The problem with that is that it will pull in all the other recommended packages that you might have passed on.

Anyhow, the fact that I uninstalled the two packages with zypper, and they still show up along with two others in yast2 is a bit odd. I guess I’ll try deleting them there.

I’ll do some testing tomorrow and report back.

yast2 was showing the packages as pre-selected for installation – not that they were installed. :X

Anyhow, I’ll retry the installation again tomorrow and report back.

Post:

zypper se -si nvidia
zypper lr -d

You can do it by copy/paste and using the Code-Tag Button # in the Editor here.

I don’t know — does installing/updating the NVidia packages with zypper also update the contents of your initrd? If not, use

dracut --force

as root to make an initrd with the updated NVidia components.

I had repeatedly gotten a black screen and NVidia error messages with dmesg whenever I tested their new drivers and forgot to update my initrd with dracut. Cheers!

(I also had to add my standard user to the »video« group once for the Nvidia-Xorg component to work, but this thankfully seems to have become a thing of the past — or a PEBCAK on my side.)

Sauerland, I wasn’t clear before: I figured out the problem: I only ran zypper inr -r NVIDIA, which only installed the two aforementioned packages. This step is apparently pointless, since running zypper in x11-video-nvidiaG05 (what I failed to do) pulls the same two packages in, and everything else that is required. And yes, unix111, that does update the initrd via zypper.

I uninstalled the driver loaded “the hard way” and ran the aforementioned command, and everything works as expected.

zypper se -si nvidia


S  | Name                      | Type    | Version             | Arch   | Repository
---+---------------------------+---------+---------------------+--------+-----------
i  | nvidia-computeG05         | package | 418.56-9.1          | x86_64 | NVIDIA    
i  | nvidia-gfxG05-kmp-default | package | 418.56_k5.0.7_1-9.7 | x86_64 | NVIDIA    
i  | nvidia-glG05              | package | 418.56-9.1          | x86_64 | NVIDIA    
i+ | x11-video-nvidiaG05       | package | 418.56-9.1          | x86_64 | NVIDIA   

rpm -qa --last | less

suse-prime-0.5-2.1.noarch                     Sun Apr 28 09:47:00 2019
x11-video-nvidiaG05-418.56-9.1.x86_64         Sun Apr 28 09:46:59 2019
nvidia-computeG05-418.56-9.1.x86_64           Sun Apr 28 09:46:54 2019
nvidia-glG05-418.56-9.1.x86_64                Sun Apr 28 09:46:52 2019
nvidia-gfxG05-kmp-default-418.56_k5.0.7_1-9.7.x86_64 Sun Apr 28 09:45:14 2019
x11-tools-0.1-210.1.noarch                    Sun Apr 28 09:45:13 2019
libxcb1-32bit-1.13-2.3.x86_64                 Sun Apr 28 09:45:13 2019
libglvnd-32bit-1.1.1-1.1.x86_64               Sun Apr 28 09:45:13 2019
libXext6-32bit-1.3.4-1.1.x86_64               Sun Apr 28 09:45:13 2019
libXau6-32bit-1.0.9-1.1.x86_64                Sun Apr 28 09:45:13 2019
libX11-6-32bit-1.6.7-1.2.x86_64               Sun Apr 28 09:45:13 2019
glibc-32bit-2.29-5.1.x86_64                   Sun Apr 28 09:45:13 2019
Mesa-libGLESv2-2-19.0.2-218.1.x86_64          Sun Apr 28 09:45:13 2019
Mesa-libGLESv1_CM1-19.0.2-218.1.x86_64        Sun Apr 28 09:45:13 2019

In short, the proper instructions on Tumbleweed for GeForce 600 series and newer GPUs are:

# zypper addrepo --refresh https://download.nvidia.com/opensuse/tumbleweed NVIDIA
# zypper in x11-video-nvidiaG05