On GeForce 940MX found embedded in Asus X705UQ, the system appears to hang during resume after S3 suspend. Testing with driver version 387.34.
At this point the screen is black, but the computer is responsive over ssh.
There are no error messages shown in dmesg. Xorg is using 100% CPU. Backtrace at this point is:
#0 0x00007ff9d6029262 in ?? () from /usr/lib64/xorg/modules/drivers/nvidia_drv.so
#1 0x00007ff9d602ddf9 in ?? () from /usr/lib64/xorg/modules/drivers/nvidia_drv.so
#2 0x00007ff9d602d389 in ?? () from /usr/lib64/xorg/modules/drivers/nvidia_drv.so
#3 0x00007ff9d5fc2b21 in ?? () from /usr/lib64/xorg/modules/drivers/nvidia_drv.so
#4 0x00007ff9d5ffe230 in ?? () from /usr/lib64/xorg/modules/drivers/nvidia_drv.so
#5 0x00007ff9d5fcdba1 in ?? () from /usr/lib64/xorg/modules/drivers/nvidia_drv.so
#6 0x00007ff9d6536fd1 in ?? () from /usr/lib64/xorg/modules/drivers/nvidia_drv.so
#7 0x000000000265a070 in ?? ()
#8 0x0000000001e899f0 in ?? ()
#9 0x000000000272cdd0 in ?? ()
#10 0x000000000047f80e in CMapEnterVT ()
#11 0x000000000048a98c in xf86XVEnterVT ()
#12 0x0000000000477dd0 in xf86VTEnter ()
#13 0x000000000049cb98 in systemd_logind_vtenter ()
#14 0x000000000049ceb5 in message_filter ()
#15 0x00007ff9de1201ad in dbus_connection_dispatch () from /lib64/libdbus-1.so.3
#16 0x00007ff9de1205c8 in _dbus_connection_read_write_dispatch () from /lib64/libdbus-1.so.3
#17 0x0000000000496981 in socket_handler ()
#18 0x000000000059df41 in ospoll_wait ()
#19 0x0000000000596f9b in WaitForSomething ()
#20 0x0000000000435603 in Dispatch ()
#21 0x00000000004398a0 in dix_main ()
Interestingly if I VT switch away from X before S3 suspend, I can suspend from there, and it will also resume fine to that state. However upon then changing VT back to X, the hang state occurs and I can’t recover.
None of the usual suspects found in the acpidump.
See if this is reproducible by using bbswitch:
Stop X
unload nvidia modules
load bbswitch
turn off nvidia gpu using bbswitch
turn on nvidia gpu using bbswitch
use cat /proc/acpi/bbswitch to see if it is really on
load nvidia modules
start X
So I do not seem to be facing that issue. Also nouveau can suspend/resume just fine. The issue only happens when using the official nvidia driver.
I added acpi.aml_debug_output=1 and acpi.debug_layer=0x10000000 acpi.debug_level=0xffffffff but “dmesg | grep -i ‘ACPI DEBUG’” output is empty, so it doesn’t look like any debug statements are being hit here.
Ok. So it’s open to know whether the X or the kernel driver is hanging. Did you try
stop X
suspend
resume
start X
?
If that works, does starting acpid help?
Suspend/resume was fine. Then on starting X again, the kernel logged errors:
[ 108.102157] NVRM: RmInitAdapter failed! (0x26:0xffff:1114)
[ 108.102186] NVRM: rm_init_adapter failed for device bearing minor number 0
[ 108.259364] NVRM: RmInitAdapter failed! (0x26:0xffff:1114)
[ 108.259390] NVRM: rm_init_adapter failed for device bearing minor number 0
[ 108.409171] NVRM: RmInitAdapter failed! (0x26:0xffff:1114)
[ 108.409222] NVRM: rm_init_adapter failed for device bearing minor number 0
[ 108.558814] NVRM: RmInitAdapter failed! (0x26:0xffff:1114)
[ 108.558843] NVRM: rm_init_adapter failed for device bearing minor number 0
[ 108.709373] NVRM: RmInitAdapter failed! (0x26:0xffff:1114)
[ 108.709498] NVRM: rm_init_adapter failed for device bearing minor number 0
[ 108.858905] NVRM: RmInitAdapter failed! (0x26:0xffff:1114)
[ 108.858934] NVRM: rm_init_adapter failed for device bearing minor number 0
and X failed to launch with these errors:
[ 328.964] (EE) NVIDIA(GPU-0): Failed to initialize the NVIDIA GPU at PCI:1:0:0. Please
[ 328.964] (EE) NVIDIA(GPU-0): check your system's kernel log for additional error
[ 328.964] (EE) NVIDIA(GPU-0): messages and refer to Chapter 8: Common Problems in the
[ 328.964] (EE) NVIDIA(GPU-0): README for additional information.
[ 328.964] (EE) NVIDIA(GPU-0): Failed to initialize the NVIDIA graphics device!
[ 328.964] (EE) NVIDIA(0): Failing initialization of X screen 0
If testing acpid is still relevant, can you specify at which point in the test sequence I should start it?
Another idea, tried
pcie_port_pm=off
kernel parameter?
Looks like the ASUS/940MX combo has regularly problems waking up again telling by the threads in this forum.
Same thin. The most weirdest thing is that I can put my laptop to suspend mode two to five times before t hangs. I am pretty sure the only problem is software skips the part where to turn the screen (lights) on. Everything else works fine even when the screen is blank.
Hi all. I have same issue too. I have Asus laptop N705UN-GC113T with hibrid graphics intel i7-8550U and Nvidia MX150 (based on 940MX).
It seems to be or, if i use intel gpu (laptop suspend and succsessful resume) But on nvidia a have a troble: after resume i have black screen with this str "[ … ] NVRAM: Xid (PCI: … ): 32 etc, computer is full freeze, not answer any command and virtual terminals (ctr + alt + f1) and my CPU is full load
uname -r
4.13.0-43-generic
lsb_release -a
No LSB modules are available.
Distributor ID: elementary
Description: elementary OS 0.4.1 Loki
Release: 0.4.1
Codename: loki
Nvidia driver
nvidia-396 - NVIDIA binary driver - version 396.24