[SOLVED] Black screen after suspend with eGPU (linux)

Hello,

I’m trying to use my eGPU with my framework laptop, I’m able to boot and use the eGPU, but if I suspend (systemctl suspend) I’m unable to resume, I get a frozen black screen with a white underscore, I’m unable to use the keyboard and I’m forced to shut down the computer and boot without the eGPU.

journalctl outputs :

juin 05 16:51:03 laptop coolercontrold[1965]: System is going to sleep
juin 05 16:51:03 laptop NetworkManager[1879]: <info>  [1717599063.4231] manager: sleep: sleep requested (sleeping: no  enabled: yes)
juin 05 16:51:03 laptop ModemManager[1960]: <info>  [sleep-monitor-systemd] system is about to suspend
juin 05 16:51:03 laptop NetworkManager[1879]: <info>  [1717599063.4236] device (enxa0cec8f6b723): state change: unavailable -> unmanaged (reason 'sleeping', sys-iface-state: 'managed')
juin 05 16:51:03 laptop NetworkManager[1879]: <info>  [1717599063.4386] device (A4:D9:31:DA:ED:AC): state change: disconnected -> unmanaged (reason 'sleeping', sys-iface-state: 'managed')
juin 05 16:51:03 laptop NetworkManager[1879]: <info>  [1717599063.4388] device (F8:0F:F9:E1:51:97): state change: disconnected -> unmanaged (reason 'sleeping', sys-iface-state: 'managed')
juin 05 16:51:03 laptop NetworkManager[1879]: <info>  [1717599063.4389] device (p2p-dev-wlp170s0): state change: disconnected -> unmanaged (reason 'sleeping', sys-iface-state: 'managed')
juin 05 16:51:03 laptop NetworkManager[1879]: <info>  [1717599063.4391] manager: NetworkManager state is now ASLEEP
juin 05 16:51:03 laptop NetworkManager[1879]: <info>  [1717599063.4392] device (wlp170s0): state change: activated -> deactivating (reason 'sleeping', sys-iface-state: 'managed')
juin 05 16:51:03 laptop dbus-daemon[1875]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-dispatcher.service' requested by ':1.9' (uid=0>
juin 05 16:51:03 laptop systemd[1]: Starting Network Manager Script Dispatcher Service...
juin 05 16:51:03 laptop dbus-daemon[1875]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
juin 05 16:51:03 laptop systemd[1]: Started Network Manager Script Dispatcher Service.
juin 05 16:51:03 laptop kernel: wlp170s0: deauthenticating from a4:08:f5:c6:6f:bf by local choice (Reason: 3=DEAUTH_LEAVING)
juin 05 16:51:03 laptop wpa_supplicant[1918]: wlp170s0: CTRL-EVENT-DISCONNECTED bssid=a4:08:f5:c6:6f:bf reason=3 locally_generated=1
juin 05 16:51:03 laptop wpa_supplicant[1918]: wlp170s0: CTRL-EVENT-DSCP-POLICY clear_all
juin 05 16:51:03 laptop NetworkManager[1879]: <info>  [1717599063.5885] device (wlp170s0): supplicant interface state: completed -> disconnected
juin 05 16:51:03 laptop NetworkManager[1879]: <info>  [1717599063.5886] device (wlp170s0): state change: deactivating -> disconnected (reason 'sleeping', sys-iface-state: 'managed')
juin 05 16:51:03 laptop avahi-daemon[1870]: Withdrawing address record for fe80::bbc2:c34e:5865:3d4a on wlp170s0.
juin 05 16:51:03 laptop avahi-daemon[1870]: Leaving mDNS multicast group on interface wlp170s0.IPv6 with address fe80::bbc2:c34e:5865:3d4a.
juin 05 16:51:03 laptop avahi-daemon[1870]: Interface wlp170s0.IPv6 no longer relevant for mDNS.
juin 05 16:51:03 laptop NetworkManager[1879]: <info>  [1717599063.6120] dhcp4 (wlp170s0): canceled DHCP transaction
juin 05 16:51:03 laptop NetworkManager[1879]: <info>  [1717599063.6120] dhcp4 (wlp170s0): activation: beginning transaction (timeout in 45 seconds)
juin 05 16:51:03 laptop NetworkManager[1879]: <info>  [1717599063.6121] dhcp4 (wlp170s0): state changed no lease
juin 05 16:51:03 laptop avahi-daemon[1870]: Withdrawing address record for 192.168.0.21 on wlp170s0.
juin 05 16:51:03 laptop avahi-daemon[1870]: Leaving mDNS multicast group on interface wlp170s0.IPv4 with address 192.168.0.21.
juin 05 16:51:03 laptop avahi-daemon[1870]: Interface wlp170s0.IPv4 no longer relevant for mDNS.
juin 05 16:51:03 laptop systemd-resolved[1703]: wlp170s0: Bus client set default route setting: no
juin 05 16:51:03 laptop systemd-resolved[1703]: wlp170s0: Bus client reset DNS server list.
juin 05 16:51:03 laptop blueman-tray[9153]: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed
juin 05 16:51:03 laptop NetworkManager[1879]: <info>  [1717599063.6408] device (wlp170s0): state change: disconnected -> unmanaged (reason 'sleeping', sys-iface-state: 'managed')
juin 05 16:51:03 laptop wpa_supplicant[1918]: p2p-dev-wlp170s: CTRL-EVENT-DSCP-POLICY clear_all
juin 05 16:51:03 laptop wpa_supplicant[1918]: p2p-dev-wlp170s: CTRL-EVENT-DSCP-POLICY clear_all
juin 05 16:51:03 laptop wpa_supplicant[1918]: nl80211: deinit ifname=p2p-dev-wlp170s disabled_11b_rates=0
juin 05 16:51:03 laptop kernel: warning: `iwconfig' uses wireless extensions which will stop working for Wi-Fi 7 hardware; use nl80211
juin 05 16:51:03 laptop gnome-shell[8513]: An active wireless connection, in infrastructure mode, involves no access point?
juin 05 16:51:03 laptop wpa_supplicant[1918]: wlp170s0: CTRL-EVENT-DSCP-POLICY clear_all
juin 05 16:51:03 laptop wpa_supplicant[1918]: wlp170s0: CTRL-EVENT-DSCP-POLICY clear_all
juin 05 16:51:03 laptop wpa_supplicant[1918]: nl80211: deinit ifname=wlp170s0 disabled_11b_rates=0
juin 05 16:51:04 laptop systemd[1]: Reached target Sleep.
juin 05 16:51:04 laptop systemd[1]: Starting Record successful boot for GRUB...
juin 05 16:51:04 laptop systemd[1]: Starting NVIDIA system suspend actions...
juin 05 16:51:04 laptop suspend[12343]: nvidia-suspend.service
juin 05 16:51:04 laptop logger[12343]: <13>Jun  5 16:51:04 suspend: nvidia-suspend.service
juin 05 16:51:04 laptop systemd[1]: grub-common.service: Deactivated successfully.
juin 05 16:51:04 laptop systemd[1]: Finished Record successful boot for GRUB.
juin 05 16:51:04 laptop systemd[1]: Starting GRUB failed boot detection...
juin 05 16:51:04 laptop kernel: rfkill: input handler enabled
juin 05 16:51:04 laptop systemd[1]: grub-initrd-fallback.service: Deactivated successfully.
juin 05 16:51:04 laptop systemd[1]: Finished GRUB failed boot detection.
juin 05 16:51:04 laptop systemd[1]: nvidia-suspend.service: Deactivated successfully.
juin 05 16:51:04 laptop systemd[1]: Finished NVIDIA system suspend actions.
juin 05 16:51:04 laptop systemd[1]: Starting System Suspend...
juin 05 16:51:04 laptop kernel: PM: Image not found (code -16)
juin 05 16:51:04 laptop systemd-sleep[12360]: Entering sleep state 'suspend'...
juin 05 16:51:04 laptop kernel: PM: suspend entry (deep)
juin 05 16:51:04 laptop kernel: Filesystems sync: 0.017 seconds

Unfortunately no more logs are written during the resume attempt and the black screen, the next logs are written after the force shutdown/reboot without eGPU.

/etc/default/grub contains :

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nvme.noacpi=1 i915.enable_psr=1 usbcore.autosuspend=-1 rdblacklist=nouveau nouveau.modeset=0 nvidia_drm.modeset=1 nouveau.blacklist=1"

Config:
11th gen famework 13
Ubuntu 22.04
Kernel: 6.5.0-35-generic
Bios version: 03.19
Wayland
Nvidia 3060 with Razer Core X enclosure
nvidia-driver-535

I have tried:
reinstalling the nvidia driver
different version of the nvidia driver
disabling the nvidia services (nvidia-hibernate, nvidia-resume, nvidia-suspend)
using lightDM instead of GDM3

I don’t have any more ideas…

Can you help me read the logs and understand the issue ?

Thanks :slight_smile:

Hi @ultralevure ,

Can you try and check with Ubuntu 24 live? See if same symptoms appear?
also reconfirm if sleep still works when eGPU is not attached.

Hello,

Thank you for your answer, I’ve been able to make resume work by removing mem_sleep_default=deep from GRUB_CMDLINE_LINUX_DEFAULT.

1 Like

Thanks for the update @ultralevure, marking thread as solved :slight_smile: