Skip to content

cosmic-comp crashes on suspend #2412

@busvw

Description

@busvw

System info:

OS: Pop!_OS 24.04 LTS x86_64
Host: Dell XPS 15 9560
Kernel: Linux 6.18.7-76061807-generic
CPU: Intel(R) Core(TM) i7-7700HQ (8) @ 3.80 GHz
GPU 1: NVIDIA GeForce GTX 1050 Mobile [Discrete]
GPU 2: Intel HD Graphics 630 @ 1.10 GHz [Integrated]
NVIDIA Driver: 580.159.03

Description:

When the laptop is unplugged from power and the lid is closed the system crashes. When the lid is opened on the laptop is boots up as if it was shutdown. If the laptop is plugged in and the lid is closed the system suspends and resumes as expected.

Steps to reproduce:

  1. Power is unplugged and laptop is running on battery.
  2. Close the lid of the laptop (this normally suspends the system)
  3. After being idle, open the lid.
  4. System boots up as if it had been shutdown (expected result is that it resumes from suspend)

journalctl

May 26 08:41:48 pop-os systemd-logind[880]: Lid closed.
May 26 08:41:48 pop-os systemd-logind[880]: Suspending...
May 26 08:41:48 pop-os ModemManager[1028]: <msg> [sleep-monitor-systemd] system is about to suspend
May 26 08:41:48 pop-os NetworkManager[838]: <info>  [1779806508.0191] manager: sleep: sleep requested (sleeping: no  enabled: yes)
May 26 08:41:48 pop-os NetworkManager[838]: <info>  [1779806508.0192] device (p2p-dev-wlp2s0): state change: disconnected -> unmanaged (reason 'sleeping', sys-iface-state: 'managed')
May 26 08:41:48 pop-os NetworkManager[838]: <info>  [1779806508.0197] manager: NetworkManager state is now ASLEEP
May 26 08:41:48 pop-os NetworkManager[838]: <info>  [1779806508.0198] device (wlp2s0): state change: activated -> deactivating (reason 'sleeping', sys-iface-state: 'managed')
May 26 08:41:48 pop-os dbus-broker[837]: A security policy denied :1.101 to send method call /org/freedesktop/NetworkManager/Settings:org.freedesktop.NetworkManager.Settings.LoadConnections>
May 26 08:41:48 pop-os systemd[1]: Starting NetworkManager-dispatcher.service - Network Manager Script Dispatcher Service...
May 26 08:41:48 pop-os systemd[1]: Started NetworkManager-dispatcher.service - Network Manager Script Dispatcher Service.
May 26 08:41:48 pop-os kernel: wlp2s0: deauthenticating from 04:42:1a:b6:ba:a4 by local choice (Reason: 3=DEAUTH_LEAVING)
May 26 08:41:51 pop-os kernel: ath10k_pci 0000:02:00.0: failed to install key for vdev 0 peer 04:42:1a:b6:ba:a4: -110
May 26 08:41:51 pop-os kernel: wlp2s0: failed to remove key (0, 04:42:1a:b6:ba:a4) from hardware (-110)
May 26 08:41:51 pop-os wpa_supplicant[887]: wlp2s0: CTRL-EVENT-DISCONNECTED bssid=04:42:1a:b6:ba:a4 reason=3 locally_generated=1
May 26 08:41:51 pop-os wpa_supplicant[887]: wlp2s0: CTRL-EVENT-DSCP-POLICY clear_all
May 26 08:41:51 pop-os NetworkManager[838]: <info>  [1779806511.1713] device (wlp2s0): supplicant interface state: completed -> disconnected
May 26 08:41:51 pop-os NetworkManager[838]: <info>  [1779806511.1721] device (wlp2s0): state change: deactivating -> disconnected (reason 'sleeping', sys-iface-state: 'managed')
May 26 08:41:51 pop-os NetworkManager[838]: <info>  [1779806511.1726] dhcp4 (wlp2s0): canceled DHCP transaction
May 26 08:41:51 pop-os NetworkManager[838]: <info>  [1779806511.1726] dhcp4 (wlp2s0): activation: beginning transaction (timeout in 45 seconds)
May 26 08:41:51 pop-os NetworkManager[838]: <info>  [1779806511.1727] dhcp4 (wlp2s0): state changed no lease
May 26 08:41:51 pop-os wpa_supplicant[887]: wlp2s0: CTRL-EVENT-REGDOM-CHANGE init=CORE type=WORLD
May 26 08:41:51 pop-os avahi-daemon[841]: Withdrawing address record for fe80::73e9:c8c2:27dd:8a24 on wlp2s0.
May 26 08:41:51 pop-os avahi-daemon[841]: Leaving mDNS multicast group on interface wlp2s0.IPv6 with address fe80::73e9:c8c2:27dd:8a24.
May 26 08:41:51 pop-os avahi-daemon[841]: Interface wlp2s0.IPv6 no longer relevant for mDNS.
May 26 08:41:51 pop-os avahi-daemon[841]: Withdrawing address record for 192.168.50.134 on wlp2s0.
May 26 08:41:51 pop-os systemd-resolved[622]: wlp2s0: Bus client set default route setting: no
May 26 08:41:51 pop-os avahi-daemon[841]: Leaving mDNS multicast group on interface wlp2s0.IPv4 with address 192.168.50.134.
May 26 08:41:51 pop-os avahi-daemon[841]: Interface wlp2s0.IPv4 no longer relevant for mDNS.
May 26 08:41:51 pop-os systemd-resolved[622]: wlp2s0: Bus client reset DNS server list.
May 26 08:41:51 pop-os dbus-broker[837]: A security policy denied :1.101 to send method call /org/freedesktop/NetworkManager/Settings:org.freedesktop.NetworkManager.Settings.LoadConnections>
May 26 08:41:51 pop-os NetworkManager[838]: <info>  [1779806511.2152] device (wlp2s0): state change: disconnected -> unmanaged (reason 'sleeping', sys-iface-state: 'managed')
May 26 08:41:51 pop-os chronyd[1478]: Source 91.189.91.157 offline
May 26 08:41:51 pop-os chronyd[1478]: Source 3.220.42.39 offline
May 26 08:41:51 pop-os chronyd[1478]: Source 66.118.229.14 offline
May 26 08:41:51 pop-os chronyd[1478]: Source 15.237.97.214 offline
May 26 08:41:51 pop-os chronyd[1478]: Source 185.125.190.58 offline
May 26 08:41:51 pop-os chronyd[1478]: Source 185.234.20.134 offline
May 26 08:41:51 pop-os chronyd[1478]: Source 185.125.190.57 offline
May 26 08:41:51 pop-os chronyd[1478]: Source 23.168.24.210 offline
May 26 08:41:51 pop-os chronyd[1478]: Source 3.134.129.152 offline
May 26 08:41:51 pop-os chronyd[1478]: Source 72.14.182.49 offline
May 26 08:41:51 pop-os chronyd[1478]: Source 185.125.190.56 offline
May 26 08:41:51 pop-os chronyd[1478]: Source 18.228.202.30 offline
May 26 08:41:51 pop-os chronyd[1478]: Can't synchronise: no selectable sources
May 26 08:41:51 pop-os chronyd[1478]: Source 52.10.183.132 offline
May 26 08:41:51 pop-os wpa_supplicant[887]: p2p-dev-wlp2s0: CTRL-EVENT-DSCP-POLICY clear_all
May 26 08:41:51 pop-os wpa_supplicant[887]: p2p-dev-wlp2s0: CTRL-EVENT-DSCP-POLICY clear_all
May 26 08:41:51 pop-os wpa_supplicant[887]: nl80211: deinit ifname=p2p-dev-wlp2s0 disabled_11b_rates=0
May 26 08:41:51 pop-os systemd[1]: Reached target sleep.target - Sleep.
May 26 08:41:51 pop-os systemd[1]: Starting nvidia-suspend.service - NVIDIA system suspend actions...
May 26 08:41:51 pop-os suspend[28437]: nvidia-suspend.service
May 26 08:41:51 pop-os logger[28437]: <13>May 26 08:41:51 suspend: nvidia-suspend.service
May 26 08:41:51 pop-os wpa_supplicant[887]: wlp2s0: CTRL-EVENT-DSCP-POLICY clear_all
May 26 08:41:51 pop-os wpa_supplicant[887]: wlp2s0: CTRL-EVENT-DSCP-POLICY clear_all
May 26 08:41:51 pop-os wpa_supplicant[887]: nl80211: deinit ifname=wlp2s0 disabled_11b_rates=0
May 26 08:41:51 pop-os bluetoothd[842]: Endpoint unregistered: sender=:1.74 path=/MediaEndpoint/A2DPSource/ldac
May 26 08:41:51 pop-os bluetoothd[842]: Endpoint unregistered: sender=:1.74 path=/MediaEndpoint/A2DPSink/aptx_hd
May 26 08:41:51 pop-os bluetoothd[842]: Endpoint unregistered: sender=:1.74 path=/MediaEndpoint/A2DPSource/aptx_hd
May 26 08:41:51 pop-os bluetoothd[842]: Endpoint unregistered: sender=:1.74 path=/MediaEndpoint/A2DPSink/aptx
May 26 08:41:51 pop-os bluetoothd[842]: Endpoint unregistered: sender=:1.74 path=/MediaEndpoint/A2DPSource/aptx
May 26 08:41:51 pop-os bluetoothd[842]: Endpoint unregistered: sender=:1.74 path=/MediaEndpoint/A2DPSink/opus_g
May 26 08:41:51 pop-os bluetoothd[842]: Endpoint unregistered: sender=:1.74 path=/MediaEndpoint/A2DPSource/opus_g
May 26 08:41:51 pop-os bluetoothd[842]: Endpoint unregistered: sender=:1.74 path=/MediaEndpoint/A2DPSink/sbc
May 26 08:41:51 pop-os bluetoothd[842]: Endpoint unregistered: sender=:1.74 path=/MediaEndpoint/A2DPSource/sbc
May 26 08:41:51 pop-os bluetoothd[842]: Endpoint unregistered: sender=:1.74 path=/MediaEndpoint/A2DPSource/aptx_ll_1
May 26 08:41:51 pop-os bluetoothd[842]: Endpoint unregistered: sender=:1.74 path=/MediaEndpoint/A2DPSource/aptx_ll_0
May 26 08:41:51 pop-os bluetoothd[842]: Endpoint unregistered: sender=:1.74 path=/MediaEndpoint/A2DPSource/aptx_ll_duplex_1
May 26 08:41:51 pop-os bluetoothd[842]: Endpoint unregistered: sender=:1.74 path=/MediaEndpoint/A2DPSource/aptx_ll_duplex_0
May 26 08:41:51 pop-os bluetoothd[842]: Endpoint unregistered: sender=:1.74 path=/MediaEndpoint/A2DPSource/faststream
May 26 08:41:51 pop-os bluetoothd[842]: Endpoint unregistered: sender=:1.74 path=/MediaEndpoint/A2DPSource/faststream_duplex
May 26 08:41:51 pop-os bluetoothd[842]: Endpoint unregistered: sender=:1.74 path=/MediaEndpoint/A2DPSink/opus_05
May 26 08:41:51 pop-os bluetoothd[842]: Endpoint unregistered: sender=:1.74 path=/MediaEndpoint/A2DPSource/opus_05
May 26 08:41:51 pop-os bluetoothd[842]: Endpoint unregistered: sender=:1.74 path=/MediaEndpoint/A2DPSink/opus_05_duplex
May 26 08:41:51 pop-os bluetoothd[842]: Endpoint unregistered: sender=:1.74 path=/MediaEndpoint/A2DPSource/opus_05_duplex
May 26 08:41:51 pop-os systemd[1]: nvidia-suspend.service: Deactivated successfully.
May 26 08:41:51 pop-os systemd[1]: Finished nvidia-suspend.service - NVIDIA system suspend actions.
May 26 08:41:51 pop-os systemd[1]: Starting systemd-suspend.service - System Suspend...
May 26 08:41:51 pop-os cosmic-comp[2288]: Failed to submit rendering: Failed to submit result for display

                                          Caused by:
                                              0: The underlying drm surface encountered an error: DRM access error: Page flip commit failed on device `Some("/dev/dri/card0")` (Permission de>
                                              1: DRM access error: Page flip commit failed on device `Some("/dev/dri/card0")` (Permission denied (os error 13))
                                              2: Permission denied (os error 13)
May 26 08:41:51 pop-os cosmic-comp[2288]: Unable to clear state: DRM access error: Failed to commit on clear_state on device `Some("/dev/dri/card0")` (Permission denied (os error 13))
May 26 08:41:51 pop-os rfkill[28477]: block set for type bluetooth
May 26 08:41:51 pop-os systemd-sleep[28464]: Performing sleep operation 'suspend'...
May 26 08:41:51 pop-os kernel: PM: suspend entry (deep)
May 26 08:41:51 pop-os systemd[1]: Starting systemd-rfkill.service - Load/Save RF Kill Switch Status...
May 26 08:41:51 pop-os systemd[1]: Started systemd-rfkill.service - Load/Save RF Kill Switch Status.

This may be related to:

[BUG] cosmic-comp does not handle PrepareForSleep D-Bus signal — causes NVIDIA suspend failures and 60s freeze timeout #2078

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions