opensuse tumbleweed does not recognize displayport of hp zbook g2 laptop after installing nvidia dri

Hi All,

I have started using openSuse Tumbleweed a few months ago and I really like it but I also have an annoying issue with it. I have a HP ZBook G2 laptop with dual video card:


sudo hwinfo --gfxcard | egrep -i 'nvidia|intel'
  Model: "nVidia GK106GLM [Quadro K2100M]"
  Vendor: pci 0x10de "nVidia Corporation"
  Model: "Intel 4th Gen Core Processor Integrated Graphics Controller"
  Vendor: pci 0x8086 "Intel Corporation"

The laptop has 1 VGA, 1 Displayport and 1 Mini displayport output. If I am not installing the Nvidia driver then I can use both the VGA and the Displayport outputs. This is what xrands shows without installing the nvidia driver:


xrandr | egrep -v '^ '
Screen 0: minimum 320 x 200, current 5120 x 1276, maximum 16384 x 16384
eDP-1 connected primary 1920x1080+0+196 (normal left inverted right x axis y axis) 344mm x 194mm
VGA-1 connected 1280x1024+3840+0 (normal left inverted right x axis y axis) 338mm x 270mm
DP-1-1 disconnected (normal left inverted right x axis y axis)
DP-1-2 disconnected (normal left inverted right x axis y axis)
DP-1-3 connected 1920x1080+1920+0 (normal left inverted right x axis y axis) 480mm x 270mm

But if I install the nvidia driver either from nvidia repo or from the official site then after reboot opensuse does not recognize that I have displayports at all. Any idea how can I solve this (for example “hard coding” the existence of the displayports)?

My competence to help with this is limited, but I do note that the hwinfo command didn’t produce PCI IDs necessary to definitively identify the two video devices. Either of these two will do that:

lspci -nnk | grep -A3 VGA
inxi -Gxx

This looks like a question best presented to an NVidia forum, as I expect it’s most likely a bug in its proprietary driver. That said, which kernel is in use? If 5.5, does a 5.4 remain to try? If not, you might try installing 5.4.14 from the archive using:

sudo zypper in -f http://download.opensuse.org/history/20200205/tumbleweed/repo/oss/x86_64/kernel-default-5.4.14-2.1.x86_64.rpm

Is someone run into similar issue, then this solved me:

sudo /usr/sbin/prime-select nvidia