Black login screen with Nvidia 396.37

Hello,

I have updated my Nvidia drivers from version 390 to version 396, and since the update, the X11 user login screen that normally appears after booting is just a black screen with a responsible pointer. However, if the user password is entered, the login proceeds as normal and the desktop is fully functional. It seems that the login page is functional, but it is simply not displayed.

I have been looking around and have been unable to fix this issue. I found a couple of mentions of this being a bug in some of nvidias previous driver versions, in some other linux distros as well, but no reports of this problem in openSUSE Leap 42.3 using the v396 drivers.

Specifically, the problem originated when I upgraded the following Nvidia packages,

nvidia-computeG04 nvidia-gfxG04-kmp-default nvidia-glG04 X11-video-nvidiaG04

to from the version 390.77 provided by the vendor build.suse.de/Proprietary:X11:Drivers , to the version 396.37 from the developer.download.nvidia.com/compute/cuda/repos/opensuse423/x86_64 vendor, which was a .rpm downloaded from nvidia following their instructions to install Cuda 9.2 on openSUSE Leap 42.3.

My hardware specs, and some hopefully useful log info:
sudo hwinfo --gfxcard

20: PCI 100.0: 0300 VGA compatible controller (VGA)             
  [Created at pci.378]
  Unique ID: VCu0.J+rsLf3fx_F
  Parent ID: vSkL.YMNCGLpyVo7
  SysFS ID: /devices/pci0000:00/0000:00:01.0/0000:01:00.0
  SysFS BusID: 0000:01:00.0
  Hardware Class: graphics card
  Model: "nVidia GM107GL [Quadro K620]"
  Vendor: pci 0x10de "nVidia Corporation"
  Device: pci 0x13bb "GM107GL [Quadro K620]"
  SubVendor: pci 0x10de "nVidia Corporation"
  SubDevice: pci 0x1098 
  Revision: 0xa2
  Driver: "nvidia"
  Driver Modules: "nvidia"
  Memory Range: 0xf6000000-0xf6ffffff (rw,non-prefetchable)
  Memory Range: 0xe0000000-0xefffffff (ro,non-prefetchable)
  Memory Range: 0xf0000000-0xf1ffffff (ro,non-prefetchable)
  I/O Ports: 0xe000-0xefff (rw)
  Memory Range: 0xf7000000-0xf707ffff (ro,non-prefetchable,disabled)
  IRQ: 127 (91393 events)
  I/O Ports: 0x3c0-0x3df (rw)
  Module Alias: "pci:v000010DEd000013BBsv000010DEsd00001098bc03sc00i00"
  Driver Info #0:
    Driver Status: nouveau is not active
    Driver Activation Cmd: "modprobe nouveau"
  Driver Info #1:
    Driver Status: nvidia_drm is active
    Driver Activation Cmd: "modprobe nvidia_drm"
  Driver Info #2:
    Driver Status: nvidia is active
    Driver Activation Cmd: "modprobe nvidia"
  Config Status: cfg=no, avail=yes, need=no, active=unknown
  Attached to: #8 (PCI bridge)

Primary display adapter: #20

sudo lsmod | grep nvidia

nvidia_drm             49152  5 
nvidia_modeset       1093632  15 nvidia_drm
nvidia_uvm            831488  2 
nvidia              14053376  688 nvidia_modeset,nvidia_uvm
ipmi_msghandler        53248  2 ipmi_devintf,nvidia
drm_kms_helper        155648  1 nvidia_drm
drm                   397312  8 drm_kms_helper,nvidia_drm

cat /var/log/Xorg.0.log
[too long, moved to pastebin instead]](https://pastebin.com/zUEzapAk)

Full list of recently installed packages,
sudo rpm -qa --last | grep “31\sJul”

acpid-2.0.25-7.1.x86_64                       Tue 31 Jul 2018 11:05:25 CEST
cuda-tools-9-2-9.2.148-1.x86_64               Tue 31 Jul 2018 10:46:15 CEST
cuda-toolkit-9-2-9.2.148-1.x86_64             Tue 31 Jul 2018 10:46:15 CEST
cuda-documentation-9-2-9.2.148-1.x86_64       Tue 31 Jul 2018 10:46:15 CEST
cuda-9-2-9.2.148-1.x86_64                     Tue 31 Jul 2018 10:46:15 CEST
cuda-9.2.148-1.x86_64                         Tue 31 Jul 2018 10:46:15 CEST
cuda-samples-9-2-9.2.148-1.x86_64             Tue 31 Jul 2018 10:46:14 CEST
cuda-libraries-dev-9-2-9.2.148-1.x86_64       Tue 31 Jul 2018 10:46:14 CEST
cuda-demo-suite-9-2-9.2.148-1.x86_64          Tue 31 Jul 2018 10:46:14 CEST
cuda-command-line-tools-9-2-9.2.148-1.x86_64  Tue 31 Jul 2018 10:46:14 CEST
cuda-visual-tools-9-2-9.2.148-1.x86_64        Tue 31 Jul 2018 10:46:12 CEST
cuda-runtime-9-2-9.2.148-1.x86_64             Tue 31 Jul 2018 10:46:12 CEST
cuda-cupti-9-2-9.2.148-1.x86_64               Tue 31 Jul 2018 10:46:12 CEST
cuda-cublas-dev-9-2-9.2.148-1.x86_64          Tue 31 Jul 2018 10:46:12 CEST
cuda-compiler-9-2-9.2.148-1.x86_64            Tue 31 Jul 2018 10:46:12 CEST
cuda-libraries-9-2-9.2.148-1.x86_64           Tue 31 Jul 2018 10:46:11 CEST
cuda-cufft-dev-9-2-9.2.148-1.x86_64           Tue 31 Jul 2018 10:46:11 CEST
cuda-cudart-dev-9-2-9.2.148-1.x86_64          Tue 31 Jul 2018 10:46:11 CEST
cuda-gdb-9-2-9.2.148-1.x86_64                 Tue 31 Jul 2018 10:46:09 CEST
cuda-curand-dev-9-2-9.2.148-1.x86_64          Tue 31 Jul 2018 10:46:09 CEST
cuda-cusparse-dev-9-2-9.2.148-1.x86_64        Tue 31 Jul 2018 10:46:08 CEST
cuda-cusolver-dev-9-2-9.2.148-1.x86_64        Tue 31 Jul 2018 10:46:08 CEST
cuda-nvcc-9-2-9.2.148-1.x86_64                Tue 31 Jul 2018 10:46:06 CEST
cuda-npp-dev-9-2-9.2.148-1.x86_64             Tue 31 Jul 2018 10:46:06 CEST
cuda-nvvp-9-2-9.2.148-1.x86_64                Tue 31 Jul 2018 10:46:05 CEST
cuda-nvgraph-dev-9-2-9.2.148-1.x86_64         Tue 31 Jul 2018 10:46:04 CEST
cuda-nvrtc-dev-9-2-9.2.148-1.x86_64           Tue 31 Jul 2018 10:46:03 CEST
cuda-cublas-9-2-9.2.148-1.x86_64              Tue 31 Jul 2018 10:46:03 CEST
cuda-cufft-9-2-9.2.148-1.x86_64               Tue 31 Jul 2018 10:46:02 CEST
cuda-cudart-9-2-9.2.148-1.x86_64              Tue 31 Jul 2018 10:46:02 CEST
cuda-cusolver-9-2-9.2.148-1.x86_64            Tue 31 Jul 2018 10:46:01 CEST
cuda-curand-9-2-9.2.148-1.x86_64              Tue 31 Jul 2018 10:46:01 CEST
cuda-cuobjdump-9-2-9.2.148-1.x86_64           Tue 31 Jul 2018 10:46:01 CEST
cuda-cusparse-9-2-9.2.148-1.x86_64            Tue 31 Jul 2018 10:46:00 CEST
cuda-npp-9-2-9.2.148-1.x86_64                 Tue 31 Jul 2018 10:45:59 CEST
cuda-misc-headers-9-2-9.2.148-1.x86_64        Tue 31 Jul 2018 10:45:59 CEST
cuda-memcheck-9-2-9.2.148-1.x86_64            Tue 31 Jul 2018 10:45:59 CEST
cuda-gpu-library-advisor-9-2-9.2.148-1.x86_64 Tue 31 Jul 2018 10:45:59 CEST
cuda-driver-dev-9-2-9.2.148-1.x86_64          Tue 31 Jul 2018 10:45:59 CEST
cuda-nsight-9-2-9.2.148-1.x86_64              Tue 31 Jul 2018 10:45:58 CEST
cuda-nvgraph-9-2-9.2.148-1.x86_64             Tue 31 Jul 2018 10:45:56 CEST
cuda-nvdisasm-9-2-9.2.148-1.x86_64            Tue 31 Jul 2018 10:45:56 CEST
cuda-nvrtc-9-2-9.2.148-1.x86_64               Tue 31 Jul 2018 10:45:55 CEST
cuda-nvprune-9-2-9.2.148-1.x86_64             Tue 31 Jul 2018 10:45:55 CEST
cuda-nvprof-9-2-9.2.148-1.x86_64              Tue 31 Jul 2018 10:45:55 CEST
cuda-nvml-dev-9-2-9.2.148-1.x86_64            Tue 31 Jul 2018 10:45:55 CEST
cuda-nvtx-9-2-9.2.148-1.x86_64                Tue 31 Jul 2018 10:45:54 CEST
cuda-license-9-2-9.2.148-1.x86_64             Tue 31 Jul 2018 10:45:54 CEST
cuda-drivers-396.37-1.x86_64                  Tue 31 Jul 2018 10:45:54 CEST
x11-video-nvidiaG04-396.37-0.x86_64           Tue 31 Jul 2018 10:15:22 CEST
nvidia-computeG04-396.37-0.x86_64             Tue 31 Jul 2018 10:15:21 CEST
nvidia-glG04-396.37-0.x86_64                  Tue 31 Jul 2018 10:15:20 CEST
nvidia-gfxG04-kmp-default-396.37_k4.4.79_19-0.x86_64 Tue 31 Jul 2018 10:14:12 CEST
gpg-pubkey-7fa2af80-576db785                  Tue 31 Jul 2018 10:10:03 CEST
cuda-repo-opensuse423-9.2.148-1.x86_64        Tue 31 Jul 2018 10:04:27 CEST

I tried all suggestions I could find; added “nomodeset” to grub boot, also added a minimal /etc/X11/xorg.conf.d/20-nvidia.conf file to get rid of some Xorg.log warnings, but nothing helped solve the issue:


Section "Device"
        Identifier "Nvidia Card"
        Driver "nvidia"
        VendorName "NVIDIA Corporation"
        BoardName "GeForce GTX 1050 Ti"
        Option "ConnectToAcpid" "0"
EndSection

Is this a bug on Nvidia’s side, or do you know if there is any workaround possible?

Thanks

I forgot to add that after login, locking the screen (Ctrl+Alt+L) presents the user login screen as usual, so the problem occurs only directly after startup.

Post:

zypper lr -d
uname -a
/sbin/lspci -nnk | grep -EiA3 'vga|3d|display'

And you can not mix the Nvidia drivers from the homepage and Nvidia drivers from Repo at same time. You have to unistall them before you install the others…

Thanks for taking the time to reply.

zypper lr -d


Repository priorities are without effect. All enabled repositories share the same priority.

# | Alias                           | Name                              | Enabled | GPG Check | Refresh | Priority | Type   | URI                                                                        | Service
--+---------------------------------+-----------------------------------+---------+-----------+---------+----------+--------+----------------------------------------------------------------------------+--------
1 | NVIDIA                          | NVIDIA                            | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://download.nvidia.com/opensuse/leap/42.3                             |        
2 | cuda                            | cuda                              | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://developer.download.nvidia.com/compute/cuda/repos/opensuse423/x86_64 |        
3 | download.opensuse.org-non-oss   | Main Repository (NON-OSS)         | Yes     | (r ) Yes  | Yes     |   99     | yast2  | http://download.opensuse.org/distribution/leap/42.3/repo/non-oss/          |        
4 | download.opensuse.org-non-oss_1 | Update Repository (Non-Oss)       | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/42.3/non-oss/                     |        
5 | download.opensuse.org-oss       | Main Repository (OSS)             | Yes     | (r ) Yes  | Yes     |   99     | yast2  | http://download.opensuse.org/distribution/leap/42.3/repo/oss/              |        
6 | download.opensuse.org-oss_1     | Main Update Repository            | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/42.3/oss                          |        
7 | repo-source                     | openSUSE-Leap-42.3-Source         | Yes     | (r ) Yes  | Yes     |   99     | yast2  | http://download.opensuse.org/source/distribution/leap/42.3/repo/oss/       |        
8 | repo-source-non-oss             | openSUSE-Leap-42.3-Source-Non-Oss | Yes     | (r ) Yes  | Yes     |   99     | yast2  | http://download.opensuse.org/source/distribution/leap/42.3/repo/non-oss/   |        

uname -a

Linux b-103262 4.4.140-62-default #1 SMP Tue Jul 17 12:14:34 UTC 2018 (951943d) x86_64 x86_64 x86_64 GNU/Linux

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

00:16.3 Serial controller [0700]: Intel Corporation Sunrise Point-H KT Redirection [8086:a13d] (rev 31)
        Subsystem: Dell Device [1028:06b7]
        Kernel driver in use: serial
00:17.0 SATA controller [0106]: Intel Corporation Sunrise Point-H SATA controller [AHCI mode] [8086:a102] (rev 31)
--
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GM107GL [Quadro K620] [10de:13bb] (rev a2)
        Subsystem: NVIDIA Corporation Device [10de:1098]
        Kernel driver in use: nvidia
        Kernel modules: nouveau, nvidia_drm, nvidia

When I installed the drivers from the CUDA .rpm file, the system asked if I wanted to change vendor for these packages, and then updated them since their version numbers were incremented (390->396). I assumed that since this looked like a regular version upgrade I did not need to wipe the old drivers and install the new ones from scratch.

Thanks a lot