I am running Linux 4.20-rc6 patched with the PCI_PREF_BASE_UPPER32 quirk from https://devtalk.nvidia.com/default/topic/1017185/linux/problem-with-resume-from-suspend-ubuntu-16-04-gt-940mx-/post/5288884/#5288884 and the Nvidia driver 415.23 on my ASUS GL504GM laptop with a GTX1060. I use PRIME display sink and synchronization to let the nvidia driver access the internal LVDS screen, too. Upon resuming from suspend, the KDE Plasma lockscreen takes a very long time to appear. Upon logging in, KDE complains that the compositor has crashed, and there is graphical corruption such as Imgur: The magic of the Internet
When an external display is connected to the HDMI output of the GTX1060, graphical corruption also appears. If I suspend and then resume again, Xorg flat-out crashes (all the opened applications are gone). The attached Xorg.0.log.old is the log from the crashed X server. It ends with an (EE) Backtrace: line, as the X server was apparently unable to even output a stacktrace.
The attached nvidia-bug-report-4.20.log.gz is the output of nvidia-bug-report.sh on my patched 4.20-rc6.
I can also reproduce the issue under the stock Arch Linux 4.19 kernel (setting acpi_osi=! acpi_osi=“Windows 2009” to work around PCIe issues makes no difference). The report right after the Xorg crash is attached as nvidia-bug-report-4.19.log.gz
Upon switching batch to the X session from the virtual terminal that I used to create the bug reports, I noticed the Xorg screen was all black save for the mouse pointer. I switched back to the vt and immediately created another bug report, attached as nvidia-bug-report-4.19-later As I noticed lots of nvidia-related in the dmesg output, I also attach it as Xorg-crash-dmesg
I am also experiencing similar crashes when I try to boot with an external display attached. In this case, the display manager gets in a “restart loop”, which makes creating a bug report fairly difficult.
As boot and sleep with an external display work in Windows, I’m quite sure that this is not caused by a hardware issue.
Is this an nvidia driver bug? How should I set up my machine so that it works with an external display and resuming?
nvidia-bug-report-4.19.log.gz (1 MB)
nvidia-bug-report-4.20.log.gz (1010 KB)
nvidia-bug-report-4.19-later.log.gz (1010 KB)
Xorg.0.log.old.txt (58.9 KB)
Xorg-crash-dmesg.txt (117 KB)