Suspend fails using NVIDIA graphics

Hi!
I am having difficulties resuming my Dell XPS 15 9570 laptop from sleep when using NVIDIA graphics. The screen shows an underscore character on the screen (like in text mode), and nothing else.
I have a dual-graphics laptop with the latest stable Manjaro with KDE and 5.4.33-3 kernel. I use optimus-manager to switch the graphics between NVIDIA and Intel, and sleep works perfectly using Intel.

Here is what I think might help from Xorg.log, but I could not figure out what to do next.

[ 35253.858] (==) modeset(G0): Using gamma correction (1.0, 1.0, 1.0)
[ 35253.858] (==) modeset(G0): DPI set to (96, 96)
[ 35253.858] (II) Loading sub module "fb"
[ 35253.858] (II) LoadModule: "fb"
[ 35253.858] (II) Loading /usr/lib/xorg/modules/libfb.so
[ 35253.858] (II) Module fb: vendor="X.Org Foundation"
[ 35253.858] 	compiled for 1.20.8, module version = 1.0.0
[ 35253.858] 	ABI class: X.Org ANSI C Emulation, version 0.4
[ 35253.858] (II) NVIDIA: Using 24576.00 MB of virtual memory for indirect memory
[ 35253.858] (II) NVIDIA:     access.
[ 35256.860] (EE) NVIDIA(GPU-0): Failed to initialize DMA.
[ 35260.863] (EE) NVIDIA(0): Failed to allocate push buffer
[ 35260.864] (EE) 
Fatal server error:
[ 35260.864] (EE) AddScreen/ScreenInit failed for driver 0
[ 35260.864] (EE) 
[ 35260.864] (EE) 
Please consult the The X.Org Foundation support 
	 at http://wiki.x.org
 for help. 
[ 35260.864] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[ 35260.864] (EE) 
[ 35260.883] (EE) Server terminated with error (1). Closing log file.

from journalctl:


Apr 20 22:00:29 aron-xps systemd[1]: Stopped target Suspend.
Apr 20 22:00:34 aron-xps sddm[1419]: Failed to read display number from pipe
Apr 20 22:00:34 aron-xps audit[1419]: ANOM_ABEND auid=4294967295 uid=0 gid=0 ses=4294967295 subj==unconfined pid=1419 comm="sddm" exe="/usr/bin/sddm" sig=6 res=1
Apr 20 22:00:34 aron-xps kernel: kauditd_printk_skb: 7 callbacks suppressed
Apr 20 22:00:34 aron-xps kernel: audit: type=1701 audit(1587412834.439:185): auid=4294967295 uid=0 gid=0 ses=4294967295 subj==unconfined pid=1419 comm="sddm" exe="/usr/bin/sddm" sig=6 res=1
Apr 20 22:00:34 aron-xps kernel: audit: type=1130 audit(1587412834.442:186): pid=1 uid=0 auid=4294967295 ses=4294967295 subj==unconfined msg='unit=systemd-coredump@0-119916-0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Apr 20 22:00:34 aron-xps audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj==unconfined msg='unit=systemd-coredump@0-119916-0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Apr 20 22:00:34 aron-xps sddm[1419]: Display server failed to start. Exiting
Apr 20 22:00:34 aron-xps systemd[1]: Created slice system-systemd\x2dcoredump.slice.
Apr 20 22:00:34 aron-xps systemd[1]: Started Process Core Dump (PID 119916/UID 0).
Apr 20 22:00:34 aron-xps systemd[1]: sddm.service: Main process exited, code=dumped, status=6/ABRT
Apr 20 22:00:34 aron-xps systemd-coredump[119919]: Process 1419 (sddm) of user 0 dumped core.
                                                   
                                                   Stack trace of thread 1419:
                                                   #0  0x00007fc4b244dce5 raise (libc.so.6 + 0x3bce5)
                                                   #1  0x00007fc4b2437857 abort (libc.so.6 + 0x25857)
                                                   #2  0x00007fc4b286b938 _ZNK14QMessageLogger5fatalEPKcz (libQt5Core.so.5 + 0x8e938)
                                                   #3  0x0000562124f75fff n/a (sddm + 0x28fff)
                                                   #4  0x0000562124fba4df _ZN4SDDM4Seat13createDisplayEi (sddm + 0x6d4df)
                                                   #5  0x0000562124fba6f1 _ZN4SDDM4SeatC2ERK7QStringP7QObject (sddm + 0x6d6f1)
                                                   #6  0x0000562124fbc451 _ZN4SDDM11SeatManager10createSeatERK7QString (sddm + 0x6f451)
                                                   #7  0x0000562124fbd2b3 n/a (sddm + 0x702b3)
                                                   #8  0x00007fc4b2ab7cde n/a (libQt5Core.so.5 + 0x2dacde)
                                                   #9  0x0000562124fbb4f0 _ZN4SDDM10LogindSeat19canGraphicalChangedEb (sddm + 0x6e4f0)
                                                   #10 0x0000562124fbb7ff n/a (sddm + 0x6e7ff)
                                                   #11 0x00007fc4b2ab7cde n/a (libQt5Core.so.5 + 0x2dacde)
                                                   #12 0x00007fc4b3473de0 _ZN23QDBusPendingCallWatcher8finishedEPS_ (libQt5DBus.so.5 + 0x79de0)
                                                   #13 0x00007fc4b3473ee1 n/a (libQt5DBus.so.5 + 0x79ee1)
                                                   #14 0x00007fc4b2aafada _ZN7QObject5eventEP6QEvent (libQt5Core.so.5 + 0x2d2ada)
                                                   #15 0x00007fc4b2a824d0 _ZN16QCoreApplication15notifyInternal2EP7QObjectP6QEvent (libQt5Core.so.5 + 0x2a54d0)
                                                   #16 0x00007fc4b2a84d56 _ZN23QCoreApplicationPrivate16sendPostedEventsEP7QObjectiP11QThreadData (libQt5Core.so.5 + 0x2a7d56)
                                                   #17 0x00007fc4b2adb244 n/a (libQt5Core.so.5 + 0x2fe244)
                                                   #18 0x00007fc4b16346be g_main_context_dispatch (libglib-2.0.so.0 + 0x6b6be)
                                                   #19 0x00007fc4b1636531 n/a (libglib-2.0.so.0 + 0x6d531)
                                                   #20 0x00007fc4b1636571 g_main_context_iteration (libglib-2.0.so.0 + 0x6d571)
                                                   #21 0x00007fc4b2ada890 _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt5Core.so.5 + 0x2fd890)
                                                   #22 0x00007fc4b2a8105c _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt5Core.so.5 + 0x2a405c)
                                                   #23 0x00007fc4b2a89066 _ZN16QCoreApplication4execEv (libQt5Core.so.5 + 0x2ac066)
                                                   #24 0x0000562124f797e1 main (sddm + 0x2c7e1)
                                                   #25 0x00007fc4b2439023 __libc_start_main (libc.so.6 + 0x27023)
                                                   #26 0x0000562124f79aee _start (sddm + 0x2caee)
                                                   
                                                   Stack trace of thread 1427:
                                                   #0  0x00007fc4b2506abf __poll (libc.so.6 + 0xf4abf)
                                                   #1  0x00007fc4b16364a0 n/a (libglib-2.0.so.0 + 0x6d4a0)
                                                   #2  0x00007fc4b1636571 g_main_context_iteration (libglib-2.0.so.0 + 0x6d571)
                                                   #3  0x00007fc4b2ada890 _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt5Core.so.5 + 0x2fd890)
                                                   #4  0x00007fc4b2a8105c _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt5Core.so.5 + 0x2a405c)
                                                   #5  0x00007fc4b28a5c62 _ZN7QThread4execEv (libQt5Core.so.5 + 0xc8c62)
                                                   #6  0x00007fc4b340fb28 n/a (libQt5DBus.so.5 + 0x15b28)
                                                   #7  0x00007fc4b28a6dd6 n/a (libQt5Core.so.5 + 0xc9dd6)
                                                   #8  0x00007fc4b23f946f start_thread (libpthread.so.0 + 0x946f)
                                                   #9  0x00007fc4b25113d3 __clone (libc.so.6 + 0xff3d3)
Apr 20 22:00:34 aron-xps systemd[1]: systemd-coredump@0-119916-0.service: Succeeded.
Apr 20 22:00:34 aron-xps kernel: audit: type=1131 audit(1587412834.761:187): pid=1 uid=0 auid=4294967295 ses=4294967295 subj==unconfined msg='unit=systemd-coredump@0-119916-0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Apr 20 22:00:34 aron-xps audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 subj==unconfined msg='unit=systemd-coredump@0-119916-0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Apr 20 22:01:01 aron-xps CROND[119929]: (root) CMD (run-parts /etc/cron.hourly)
Apr 20 22:02:02 aron-xps systemd-logind[119789]: Power key pressed.

Thanks in advance for help!
Aron

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.

Forum kindly sponsored by