On a rather new piece of hardware - Asus Zenbook UX310UQK - equipped with the following components, NVIDIA driver runs well in the first place:
00:02.0 VGA compatible controller: Intel Corporation Device 5916 (rev 02)
01:00.0 3D controller: NVIDIA Corporation GM108M [GeForce 940MX] (rev a2)
Problem arises after a resume.
- If suspended from the X session, computer comes back with black screen and unresponsive to any keys (including CTRL-ALT-Fx virtual console switch). Log in via SSH was possible and showed the X server process at 100% CPU usage.
- If suspended from a text mode terminal, computer comes back okay and hangs only when trying to start X, same as before.
Relevant message from the X server appears to be
[ 469.734] (EE) NVIDIA(GPU-0): Failed to initialize the NVIDIA graphics device!
and from dmesg
[ 467.144163] ACPI Warning: \_SB.PCI0.RP01.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20160422/nsarguments-95)
[ 467.145835] NVRM: RmInitAdapter failed! (0x26:0xffff:1097)
[ 467.145871] NVRM: rm_init_adapter failed for device bearing minor number 0
[ 467.771783] sddm[5408]: segfault at 0 ip 00007fe4abbc2ad3 sp 00007ffd4ca42450 error 4 in libQt5Core.so.5.6.1[7fe4ab90a000+4c6000]
[ 469.913718] vgaarb: this pci device is not a vga device
This is with a 4.8.0-40-generic Ubuntu kernel and NVIDIA binary driver - version 378.13 from the graphics-drivers PPA. Before, I tried NVIDIA driver version 375.39 also from the PPA, and 367.57 from the Ubuntu repository. They all behaved the same.
nvidia-bug-report.log.gz (76 KB)