GeForce GTX 1650 card DisplayPort issue

Hi there,

I just bought brand new Lenovo Legion Y540 (with GeForce GTX 1650 graphic card). I installed Ubuntu 18.04 and attached one external display on HDMI port and another one on DisplayPort. Whenever I try to reboot with monitor which is attached through DisplayPort the boot sequence stops. Booting Ubuntu without DisplayPort attached (and afterwards attaching that second monitor) works just fine.

Can you help me out?
Thanks in advance.
nvidia-bug-report.log.gz (1.08 MB)

Does the login screen appear?

Only if I detach the DisplayPort before the booting up and reatach it once the boot sequence finishes. If I leave it attached the boot sequence does not get to the login screen.

Can you ssh into the system when started with the displayport attached and create a new nvidia-bug-report.log in that state?

You should also check for a bios update.

I’ll see if that’s possible.

Regarding the bios update: are you referring to the motherboard’s bios or the graphic’s bios (I’ve heard that nowadays there is such a thing)?

System bios. On notebooks, the vbios is embedded in the system bios thus not separately flashable.

I’ve flashed BIOS with the latest version (BHCN32WW) but the issue still persists.
nvidia-bug-report.log.gz (1.15 MB)

Please remove /etc/X11/xorg.conf, then try again.
Which external monitor exhibits this, Samsung or LG? Both are actually connected over hdmi, are you using an adapter cable?

Deleted xorg.conf file. No change.
Should I restore it?

My LG is using hdmi cabel with miniDisplayPort adapter (this one: https://www.konga.com/product/mini-display-port-to-hdmi-vga-dvi-adapter-cable-3327741)

Leave the xorg.conf out, it’s not necessary and rather interfering. Set monitor arrangement in gnome control center only.
In your last log, I didn’t see any boot with the LG attached, does the notebook even get to the point where the kernel boots?

That’s perhaps because I can not boot with LG attached over miniDisplayPort. That’s why I detach it and once I login to Ubuntu I reatach it.

Yes, I know. But where does it stop?

  • Turn off the notebook
  • attach the LG
  • turn on the notebook
  • wait some time
  • turn off the notebook
  • detach the LG
  • turn on the notebook
  • create a new nvidia-bug-report.log

Here’s the generated bug-report which I made following your steps.
nvidia-bug-report.log.gz (1.14 MB)

And here’s the one which I made SSH-ing to this laptop while it’s in a frozen state (booted up with both of the screens).
Thanks.
nvidia-bug-report.log.gz (1.13 MB)

Ok, the Xserver starts up, detects the monitor and then plain freezes without any error message on setting the mode. Doesn’t make things easier.
Does this also happen when you connect the samsung monitor to DP or only with the LG?
Does enabling CSM, if possible, in bios change anything?

Yup, it also happens when I switch the monitor connections (through DP and HDMI).
I don’t have CSM setting in the BIOS.

I actually missed the driver crashing when the DP monitor is connected:

[   13.256499] BUG: unable to handle kernel paging request at ffff9a06a54c88f0
[   13.256500] #PF error: [normal kernel read fault]
[   13.256501] PGD 127605067 P4D 127605067 PUD 0 
[   13.256502] Oops: 0000 [#1] SMP PTI
[   13.256504] CPU: 2 PID: 1397 Comm: Xorg Tainted: P           OE     5.0.0-36-generic #39~18.04.1-Ubuntu
[   13.256505] Hardware name: LENOVO 81SY/LNVNB161216, BIOS BHCN32WW 08/29/2019
[   13.256513] RIP: 0010:_nv002293kms+0x85/0x150 [nvidia_modeset]
[   13.256514] Code: c7 31 c9 c1 e7 02 a9 cc cc cc cc 0f 95 c1 31 d2 01 c9 a9 aa aa aa aa 0f 95 c2 44 09 ca 44 09 c2 09 fa 09 ca 89 d0 49 8d 3c 84 <44> 8b 87 ec 00 00 00 45 85 c0 74 0b 44 89 c0 0f 1f 40 00 d1 e8 75
[   13.256515] RSP: 0018:ffffb3bb02157860 EFLAGS: 00010246
[   13.256516] RAX: 00000000ffffffff RBX: ffff9a02a54a1008 RCX: 0000000000000000
[   13.256516] RDX: 00000000ffffffff RSI: ffff9a02a54a3008 RDI: ffff9a06a54c8804
[   13.256517] RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000001
[   13.256517] R10: 0000000000000002 R11: 0000000000000000 R12: ffff9a02a54c8808
[   13.256518] R13: ffffb3bb02157a28 R14: 0000000000000000 R15: ffff9a02a48a0008
[   13.256519] FS:  00007f3cf1fc8a80(0000) GS:ffff9a02cd880000(0000) knlGS:0000000000000000
[   13.256519] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[   13.256520] CR2: ffff9a06a54c88f0 CR3: 000000042b574006 CR4: 00000000003606e0
[   13.256520] Call Trace:
[   13.256529]  ? _nv000017kms+0x51c/0x74b [nvidia_modeset]
[   13.256612]  ? _nv020922rm+0x9/0x50 [nvidia]
[   13.256681]  ? os_release_spinlock+0x1a/0x20 [nvidia]
[   13.256746]  ? _nv008100rm+0x470/0x890 [nvidia]
[   13.256848]  ? _nv008182rm+0x4b/0xb0 [nvidia]
[   13.256951]  ? _nv034426rm+0x15/0x30 [nvidia]
[   13.256953]  ? up+0x32/0x50
[   13.257016]  ? os_release_semaphore+0xe/0x20 [nvidia]
[   13.257092]  ? _nv033265rm+0xa7/0xb0 [nvidia]
[   13.257166]  ? _nv008109rm+0x36b/0x400 [nvidia]
[   13.257230]  ? os_acquire_spinlock+0x12/0x20 [nvidia]
[   13.257293]  ? os_release_spinlock+0x1a/0x20 [nvidia]
[   13.257357]  ? _nv035878rm+0xac/0x170 [nvidia]
[   13.257367]  ? _nv002597kms+0x1e1e/0x1fe0 [nvidia_modeset]
[   13.257373]  ? _nv000474kms+0x50/0x50 [nvidia_modeset]
[   13.257379]  ? nvKmsIoctl+0x96/0x1d0 [nvidia_modeset]
[   13.257384]  ? nvkms_ioctl_common+0x42/0x80 [nvidia_modeset]
[   13.257390]  ? nvkms_ioctl+0xc7/0x100 [nvidia_modeset]
[   13.257452]  ? nvidia_frontend_unlocked_ioctl+0x42/0x50 [nvidia]
[   13.257453]  ? do_vfs_ioctl+0xa9/0x640
[   13.257455]  ? vfs_write+0x12e/0x1a0
[   13.257456]  ? ksys_ioctl+0x75/0x80
[   13.257457]  ? __x64_sys_ioctl+0x1a/0x20
[   13.257459]  ? do_syscall_64+0x5a/0x120
[   13.257460]  ? entry_SYSCALL_64_after_hwframe+0x44/0xa9
[   13.257461] Modules linked in: cmac bnep snd_hda_codec_hdmi nvidia_uvm(OE) hid_multitouch 8250_dw intel_rapl x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel arc4 kvm irqbypass nvidia_drm(POE) nvidia_modeset(POE) crct10dif_pclmul crc32_pclmul ghash_clmulni_intel snd_soc_skl snd_soc_hdac_hda snd_hda_ext_core snd_soc_skl_ipc aesni_intel snd_soc_sst_ipc snd_soc_sst_dsp aes_x86_64 snd_soc_acpi_intel_match crypto_simd snd_hda_codec_realtek snd_soc_acpi cryptd glue_helper snd_hda_codec_generic snd_soc_core nvidia(POE) ledtrig_audio snd_compress iwlmvm intel_cstate ac97_bus snd_pcm_dmaengine mac80211 intel_rapl_perf snd_hda_intel snd_hda_codec snd_seq_midi snd_seq_midi_event snd_hda_core intel_wmi_thunderbolt snd_rawmidi wmi_bmof serio_raw snd_hwdep snd_seq snd_pcm uvcvideo snd_seq_device btusb videobuf2_vmalloc snd_timer drm_kms_helper videobuf2_memops btrtl btbcm videobuf2_v4l2 iwlwifi videobuf2_common btintel snd drm videodev joydev bluetooth input_leds media ipmi_devintf idma64
[   13.257477]  ipmi_msghandler virt_dma fb_sys_fops cfg80211 ecdh_generic syscopyarea mei_me sysfillrect ucsi_acpi sysimgblt soundcore typec_ucsi mei typec processor_thermal_device intel_lpss_pci intel_pch_thermal intel_lpss intel_soc_dts_iosf ideapad_laptop sparse_keymap mac_hid int3403_thermal int340x_thermal_zone int3400_thermal acpi_thermal_rel acpi_pad acpi_tad sch_fq_codel parport_pc ppdev lp parport ip_tables x_tables autofs4 hid_microsoft ff_memless hid_generic usbhid nvme r8169 ahci i2c_hid nvme_core realtek libahci hid wmi pinctrl_cannonlake video pinctrl_intel
[   13.257489] CR2: ffff9a06a54c88f0
[   13.257490] ---[ end trace f3acec52abd09e5e ]---
[   13.257496] RIP: 0010:_nv002293kms+0x85/0x150 [nvidia_modeset]
[   13.257497] Code: c7 31 c9 c1 e7 02 a9 cc cc cc cc 0f 95 c1 31 d2 01 c9 a9 aa aa aa aa 0f 95 c2 44 09 ca 44 09 c2 09 fa 09 ca 89 d0 49 8d 3c 84 <44> 8b 87 ec 00 00 00 45 85 c0 74 0b 44 89 c0 0f 1f 40 00 d1 e8 75
[   13.257497] RSP: 0018:ffffb3bb02157860 EFLAGS: 00010246
[   13.257498] RAX: 00000000ffffffff RBX: ffff9a02a54a1008 RCX: 0000000000000000
[   13.257499] RDX: 00000000ffffffff RSI: ffff9a02a54a3008 RDI: ffff9a06a54c8804
[   13.257499] RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000001
[   13.257500] R10: 0000000000000002 R11: 0000000000000000 R12: ffff9a02a54c8808
[   13.257500] R13: ffffb3bb02157a28 R14: 0000000000000000 R15: ffff9a02a48a0008
[   13.257501] FS:  00007f3cf1fc8a80(0000) GS:ffff9a02cd880000(0000) knlGS:0000000000000000
[   13.257502] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[   13.257502] CR2: ffff9a06a54c88f0 CR3: 000000042b574006 CR4: 00000000003606e0

Please check if the kernel parameter
nvidia-drm.modeset=1
changes anything.

How/where should I update that?

https://askubuntu.com/questions/19486/how-do-i-add-a-kernel-boot-parameter