Laptop suspend fails

I’m using nixos-unstable on an XPS 15. Suspending used to work, but broke at some point. Unfortunately I don’t suspend often and I don’t currently have a good way to reproduce the issue, so it’s hard to narrow down when it started failing.

The systemctl logs are a bit overwhelming, perhaps someone can help me diagnose?

Nov 07 08:43:59 rigter systemd-logind[1264]: Lid closed.
Nov 07 08:43:59 rigter systemd-logind[1264]: Suspending...
Nov 07 08:43:59 rigter systemd[1]: Starting Pre-Sleep Actions...
Nov 07 08:43:59 rigter systemd[1]: pre-sleep.service: Succeeded.
Nov 07 08:43:59 rigter systemd[1]: Started Pre-Sleep Actions.
Nov 07 08:43:59 rigter systemd[1]: Reached target Sleep.
Nov 07 08:43:59 rigter systemd[1]: Starting Suspend...
Nov 07 08:43:59 rigter systemd-sleep[31288]: Suspending system...
Nov 07 08:43:59 rigter kernel: PM: suspend entry (s2idle)
Nov 07 08:43:59 rigter kernel: Filesystems sync: 0.003 seconds
Nov 07 08:44:37 rigter kernel: Freezing user space processes ... (elapsed 0.001 seconds) done.
Nov 07 08:44:37 rigter kernel: OOM killer disabled.
Nov 07 08:44:37 rigter kernel: Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
Nov 07 08:44:37 rigter kernel: printk: Suspending console(s) (use no_console_suspend to debug)
Nov 07 08:44:37 rigter kernel: wlp59s0: deauthenticating from 38:78:62:bc:44:76 by local choice (Reason: 3=DEAUTH_LEAVING)
Nov 07 08:44:37 rigter kernel: psmouse serio1: Failed to disable mouse on isa0060/serio1
Nov 07 08:44:37 rigter kernel: ACPI: button: The lid device is not compliant to SW_LID.
Nov 07 08:44:37 rigter kernel: nouveau 0000:01:00.0: Refused to change power state, currently in D3
Nov 07 08:44:37 rigter kernel: iwlwifi 0000:3b:00.0: Applying debug destination EXTERNAL_DRAM
Nov 07 08:44:37 rigter kernel: iwlwifi 0000:3b:00.0: FW already configured (0) - re-configuring
Nov 07 08:44:37 rigter kernel: OOM killer enabled.
Nov 07 08:44:37 rigter kernel: Restarting tasks ... done.
Nov 07 08:44:37 rigter wpa_supplicant[1293]: wlp59s0: CTRL-EVENT-DISCONNECTED bssid=38:78:62:bc:44:76 reason=3 locally_generated=1
Nov 07 08:44:37 rigter wpa_supplicant[1293]: dbus: wpa_dbus_property_changed: no property SessionLength in object /fi/w1/wpa_supplicant1/Interfaces/0
Nov 07 08:44:37 rigter wpa_supplicant[1293]: wlp59s0: CTRL-EVENT-REGDOM-CHANGE init=DRIVER type=WORLD
Nov 07 08:44:37 rigter dhcpcd[1510]: wlp59s0: carrier lost
Nov 07 08:44:37 rigter NetworkManager[1177]: <warn>  [1573112677.8644] sup-iface[0x162d0f0,wlp59s0]: connection disconnected (reason -3)
Nov 07 08:44:37 rigter dhcpcd[1510]: wlp59s0: deleting address fe80::de71:96ff:fecd:2fd5
Nov 07 08:44:37 rigter dhcpcd[1510]: wlp59s0: deleting route to 192.168.43.0/24
Nov 07 08:44:37 rigter dhcpcd[1510]: wlp59s0: deleting default route via 192.168.43.235
Nov 07 08:44:37 rigter systemd-sleep[31288]: System resumed.
Nov 07 08:44:37 rigter kernel: PM: suspend exit
Nov 07 08:44:37 rigter systemd[1]: systemd-suspend.service: Succeeded.
Nov 07 08:44:37 rigter systemd[1]: Started Suspend.
Nov 07 08:44:37 rigter systemd[1]: Stopped target Sleep.
Nov 07 08:44:37 rigter systemd[1]: Reached target Suspend.
Nov 07 08:44:37 rigter systemd[1]: Starting Post-Resume Actions...
Nov 07 08:44:37 rigter systemd[1]: Stopped target Suspend.
Nov 07 08:44:37 rigter systemd-logind[1264]: Operation 'sleep' finished.
Nov 07 08:44:37 rigter systemd[1]: Reloading DHCP Client.
Nov 07 08:44:37 rigter nscd[31118]: 31118 monitored file `/etc/resolv.conf` was written to
Nov 07 08:44:37 rigter dhcpcd[31435]: read_config: fopen `/etc/dhcpcd.conf': No such file or directory
Nov 07 08:44:37 rigter dhcpcd[31435]: read_config: fopen `/etc/dhcpcd.conf': No such file or directory
Nov 07 08:44:37 rigter dhcpcd[31435]: sending signal HUP to pid 1510
Nov 07 08:44:37 rigter dhcpcd[31435]: sending signal HUP to pid 1510
Nov 07 08:44:37 rigter systemd[1]: Reloaded DHCP Client.
Nov 07 08:44:37 rigter dhcpcd[1510]: received SIGHUP, rebinding
Nov 07 08:44:37 rigter systemd[1]: post-resume.service: Succeeded.
Nov 07 08:44:37 rigter systemd[1]: Started Post-Resume Actions.
Nov 07 08:44:37 rigter systemd[1]: Reached target Post-Resume Actions.
Nov 07 08:44:37 rigter systemd[1]: Stopped target Post-Resume Actions.

also:

Nov 11 09:53:09 rigter systemd-logind[1267]: Lid closed.
Nov 11 09:53:09 rigter systemd-logind[1267]: Suspending...
Nov 11 09:53:09 rigter systemd[1]: Starting Pre-Sleep Actions...
Nov 11 09:53:09 rigter systemd[1]: pre-sleep.service: Succeeded.
Nov 11 09:53:09 rigter systemd[1]: Started Pre-Sleep Actions.
Nov 11 09:53:09 rigter systemd[1]: Reached target Sleep.
Nov 11 09:53:09 rigter systemd[1]: Starting Suspend...
Nov 11 09:53:09 rigter systemd-sleep[8554]: Suspending system...
Nov 11 09:53:09 rigter kernel: PM: suspend entry (s2idle)
Nov 11 09:53:53 rigter kernel: Filesystems sync: 0.002 seconds
Nov 11 09:53:53 rigter kernel: Freezing user space processes ... (elapsed 0.001 seconds) done.
Nov 11 09:53:53 rigter kernel: OOM killer disabled.
Nov 11 09:53:53 rigter kernel: Freezing remaining freezable tasks ... (elapsed 0.000 seconds) done.
Nov 11 09:53:53 rigter kernel: printk: Suspending console(s) (use no_console_suspend to debug)
Nov 11 09:53:53 rigter kernel: wlp59s0: deauthenticating from 00:24:a8:b9:ca:c0 by local choice (Reason: 3=DEAUTH_LEAVING)
Nov 11 09:53:53 rigter kernel: iwlwifi 0000:3b:00.0: iwl_trans_send_cmd bad state = 0
Nov 11 09:53:53 rigter kernel: psmouse serio1: Failed to disable mouse on isa0060/serio1
Nov 11 09:53:53 rigter kernel: ACPI: button: The lid device is not compliant to SW_LID.
Nov 11 09:53:53 rigter kernel: pcieport 0000:03:01.0: pciehp: pcie_do_write_cmd: no response from device
Nov 11 09:53:53 rigter kernel: iwlwifi 0000:3b:00.0: Applying debug destination EXTERNAL_DRAM
Nov 11 09:53:53 rigter kernel: iwlwifi 0000:3b:00.0: FW already configured (0) - re-configuring
Nov 11 09:53:53 rigter kernel: ata3: SATA link down (SStatus 4 SControl 300)
Nov 11 09:53:53 rigter kernel: OOM killer enabled.
Nov 11 09:53:53 rigter kernel: Restarting tasks ... done.
Nov 11 09:53:53 rigter dhcpcd[1497]: wlp59s0: carrier lost
Nov 11 09:53:53 rigter wpa_supplicant[1295]: wlp59s0: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=0 noise=9999 txrate=0
Nov 11 09:53:53 rigter wpa_supplicant[1295]: wlp59s0: CTRL-EVENT-DISCONNECTED bssid=00:24:a8:b9:ca:c0 reason=3 locally_generated=1
Nov 11 09:53:53 rigter wpa_supplicant[1295]: dbus: wpa_dbus_property_changed: no property SessionLength in object /fi/w1/wpa_supplicant1/Interfaces/0
Nov 11 09:53:53 rigter wpa_supplicant[1295]: wlp59s0: CTRL-EVENT-REGDOM-CHANGE init=DRIVER type=WORLD
Nov 11 09:53:53 rigter NetworkManager[1179]: <warn>  [1573462433.1582] sup-iface[0x91d8f0,wlp59s0]: connection disconnected (reason -3)
Nov 11 09:53:53 rigter dhcpcd[1497]: wlp59s0: deleting route to 10.87.0.0/22
Nov 11 09:53:53 rigter dhcpcd[1497]: wlp59s0: deleting default route via 10.87.0.1
Nov 11 09:53:53 rigter nscd[8367]: 8367 monitored file `/etc/resolv.conf` was written to
Nov 11 09:53:53 rigter systemd[1]: Stopping Name Service Cache Daemon...
Nov 11 09:53:53 rigter systemd[1]: nscd.service: Succeeded.
Nov 11 09:53:53 rigter systemd[1]: Stopped Name Service Cache Daemon.
Nov 11 09:53:53 rigter systemd[1]: nscd.service: Consumed 12ms CPU time, received 448B IP traffic, sent 1.0K IP traffic.
Nov 11 09:53:53 rigter systemd[1]: Starting Name Service Cache Daemon...
Nov 11 09:53:53 rigter nscd[8683]: 8683 monitoring file `/etc/passwd` (1)
Nov 11 09:53:53 rigter nscd[8683]: 8683 monitoring directory `/etc` (2)
Nov 11 09:53:53 rigter nscd[8683]: 8683 monitoring file `/etc/group` (3)
Nov 11 09:53:53 rigter nscd[8683]: 8683 monitoring directory `/etc` (2)
Nov 11 09:53:53 rigter nscd[8683]: 8683 monitoring file `/etc/hosts` (4)
Nov 11 09:53:53 rigter nscd[8683]: 8683 monitoring directory `/etc` (2)
Nov 11 09:53:53 rigter nscd[8683]: 8683 monitoring file `/etc/resolv.conf` (5)
Nov 11 09:53:53 rigter nscd[8683]: 8683 monitoring directory `/etc` (2)
Nov 11 09:53:53 rigter nscd[8683]: 8683 monitoring file `/etc/services` (6)
Nov 11 09:53:53 rigter nscd[8683]: 8683 monitoring directory `/etc` (2)
Nov 11 09:53:53 rigter nscd[8683]: 8683 disabled inotify-based monitoring for file `/etc/netgroup': No such file or directory
Nov 11 09:53:53 rigter nscd[8683]: 8683 stat failed for file `/etc/netgroup'; will try again later: No such file or directory
Nov 11 09:53:53 rigter systemd[1]: Started Name Service Cache Daemon.
Nov 11 09:53:53 rigter systemd-sleep[8554]: System resumed.
Nov 11 09:53:53 rigter systemd[1]: systemd-suspend.service: Succeeded.
Nov 11 09:53:53 rigter kernel: PM: suspend exit
Nov 11 09:53:53 rigter systemd[1]: Started Suspend.
Nov 11 09:53:53 rigter systemd[1]: Stopped target Sleep.
Nov 11 09:53:53 rigter systemd[1]: Reached target Suspend.
Nov 11 09:53:53 rigter systemd[1]: Starting Post-Resume Actions...
Nov 11 09:53:53 rigter systemd[1]: Stopped target Suspend.
Nov 11 09:53:53 rigter systemd-logind[1267]: Operation 'sleep' finished.
Nov 11 09:53:53 rigter systemd[1]: Reloading DHCP Client.
Nov 11 09:53:53 rigter nscd[8683]: 8683 monitored file `/etc/resolv.conf` was written to
Nov 11 09:53:53 rigter systemd[1]: Stopping Name Service Cache Daemon...
Nov 11 09:53:53 rigter systemd[1]: nscd.service: Succeeded.
Nov 11 09:53:53 rigter systemd[1]: Stopped Name Service Cache Daemon.
Nov 11 09:53:53 rigter systemd[1]: Starting Name Service Cache Daemon...
Nov 11 09:53:53 rigter dhcpcd[8724]: read_config: fopen `/etc/dhcpcd.conf': No such file or directory
Nov 11 09:53:53 rigter dhcpcd[8724]: sending signal HUP to pid 1497
Nov 11 09:53:53 rigter dhcpcd[8724]: read_config: fopen `/etc/dhcpcd.conf': No such file or directory
Nov 11 09:53:53 rigter systemd[1]: Reloaded DHCP Client.
Nov 11 09:53:53 rigter dhcpcd[8724]: sending signal HUP to pid 1497
Nov 11 09:53:53 rigter dhcpcd[1497]: received SIGHUP, rebinding
Nov 11 09:53:53 rigter nscd[8740]: 8740 monitoring file `/etc/passwd` (1)
Nov 11 09:53:53 rigter nscd[8740]: 8740 monitoring directory `/etc` (2)
Nov 11 09:53:53 rigter nscd[8740]: 8740 monitoring file `/etc/group` (3)
Nov 11 09:53:53 rigter nscd[8740]: 8740 monitoring directory `/etc` (2)
Nov 11 09:53:53 rigter nscd[8740]: 8740 monitoring file `/etc/hosts` (4)
Nov 11 09:53:53 rigter nscd[8740]: 8740 monitoring directory `/etc` (2)
Nov 11 09:53:53 rigter nscd[8740]: 8740 monitoring file `/etc/resolv.conf` (5)
Nov 11 09:53:53 rigter nscd[8740]: 8740 monitoring directory `/etc` (2)
Nov 11 09:53:53 rigter nscd[8740]: 8740 monitoring file `/etc/services` (6)
Nov 11 09:53:53 rigter nscd[8740]: 8740 monitoring directory `/etc` (2)
Nov 11 09:53:53 rigter nscd[8740]: 8740 disabled inotify-based monitoring for file `/etc/netgroup': No such file or directory
Nov 11 09:53:53 rigter nscd[8740]: 8740 stat failed for file `/etc/netgroup'; will try again later: No such file or directory
Nov 11 09:53:53 rigter systemd[1]: post-resume.service: Succeeded.
Nov 11 09:53:53 rigter systemd[1]: Started Post-Resume Actions.
Nov 11 09:53:53 rigter systemd[1]: Reached target Post-Resume Actions.
Nov 11 09:53:53 rigter systemd[1]: Stopped target Post-Resume Actions.
Nov 11 09:53:53 rigter dbus-daemon[1122]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-disp>
Nov 11 09:53:53 rigter systemd[1]: Starting Network Manager Script Dispatcher Service...
Nov 11 09:53:53 rigter wpa_supplicant[1295]: nl80211: deinit ifname=p2p-dev-wlp59s0 disabled_11b_rates=0
Nov 11 09:53:53 rigter systemd[1]: Started Name Service Cache Daemon.
Nov 11 09:53:53 rigter dbus-daemon[1122]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
Nov 11 09:53:53 rigter systemd[1]: Started Network Manager Script Dispatcher Service.
Nov 11 09:53:53 rigter wpa_supplicant[1295]: nl80211: deinit ifname=wlp59s0 disabled_11b_rates=0
Nov 11 09:53:53 rigter kernel: iwlwifi 0000:3b:00.0: Applying debug destination EXTERNAL_DRAM
Nov 11 09:53:53 rigter kernel: iwlwifi 0000:3b:00.0: FW already configured (0) - re-configuring
Nov 11 09:53:53 rigter dhcpcd[1497]: wlp59s0: waiting for carrier
Nov 11 09:53:53 rigter NetworkManager[1179]: <warn>  [1573462433.5049] platform-linux: do-change-link[2]: failure changing link: failure 16 (Device or res>
Nov 11 09:53:53 rigter NetworkManager[1179]: <warn>  [1573462433.5050] device (wlp59s0): set-hw-addr: failed to set MAC address to 02:81:31:70:DA:38 (scan>
Nov 11 09:53:53 rigter dhcpcd[1497]: docker0: waiting for carrier
Nov 11 09:54:03 rigter systemd[1]: NetworkManager-dispatcher.service: Succeeded.
Nov 11 09:54:10 rigter kbfsfuse[1368]: 2019-11-11T09:54:10.288521+01:00 ▶ [INFO kbfs mdserver_remote.go:362] 064 Ping timeout but not reinitializing
Nov 11 09:54:12 rigter nscd[8740]: 8740 checking for monitored file `/etc/netgroup': No such file or directory
Nov 11 09:54:17 rigter systemd-logind[1267]: Suspending...
Nov 11 09:54:17 rigter systemd[1]: Starting Pre-Sleep Actions...
Nov 11 09:54:17 rigter systemd[1]: pre-sleep.service: Succeeded.
Nov 11 09:54:17 rigter systemd[1]: Started Pre-Sleep Actions.
Nov 11 09:54:17 rigter systemd[1]: Reached target Sleep.
Nov 11 09:54:17 rigter systemd[1]: Starting Suspend...
Nov 11 09:54:17 rigter systemd-sleep[8775]: Suspending system...
Nov 11 09:54:17 rigter kernel: PM: suspend entry (s2idle)
Nov 11 09:56:03 rigter kernel: Filesystems sync: 0.002 seconds
Nov 11 09:56:03 rigter kernel: Freezing user space processes ... (elapsed 0.001 seconds) done.
Nov 11 09:56:03 rigter kernel: OOM killer disabled.
Nov 11 09:56:03 rigter kernel: Freezing remaining freezable tasks ... (elapsed 0.000 seconds) done.
Nov 11 09:56:03 rigter kernel: printk: Suspending console(s) (use no_console_suspend to debug)
Nov 11 09:56:03 rigter kernel: pcieport 0000:03:01.0: pciehp: pcie_do_write_cmd: no response from device
Nov 11 09:56:03 rigter kernel: iwlwifi 0000:3b:00.0: Applying debug destination EXTERNAL_DRAM
Nov 11 09:56:03 rigter kernel: iwlwifi 0000:3b:00.0: FW already configured (0) - re-configuring
Nov 11 09:56:03 rigter kernel: ata3: SATA link down (SStatus 4 SControl 300)
Nov 11 09:56:03 rigter kernel: OOM killer enabled.
Nov 11 09:56:03 rigter wpa_supplicant[1295]: wlp59s0: CTRL-EVENT-REGDOM-CHANGE init=DRIVER type=WORLD
Nov 11 09:56:03 rigter kernel: Restarting tasks ... done.
Nov 11 09:56:03 rigter systemd-sleep[8775]: System resumed.
Nov 11 09:56:03 rigter kernel: PM: suspend exit
Nov 11 09:56:03 rigter systemd[1]: systemd-suspend.service: Succeeded.
Nov 11 09:56:03 rigter systemd[1]: Started Suspend.
Nov 11 09:56:03 rigter systemd[1]: Stopped target Sleep.
Nov 11 09:56:03 rigter systemd[1]: Reached target Suspend.
Nov 11 09:56:03 rigter systemd[1]: Starting Post-Resume Actions...
Nov 11 09:56:03 rigter systemd[1]: Stopped target Suspend.
Nov 11 09:56:03 rigter systemd-logind[1267]: Operation 'sleep' finished.
Nov 11 09:56:03 rigter wpa_supplicant[1295]: nl80211: deinit ifname=p2p-dev-wlp59s0 disabled_11b_rates=0
Nov 11 09:56:03 rigter systemd[1]: Reloading DHCP Client.
Nov 11 09:56:03 rigter dhcpcd[8820]: read_config: fopen `/etc/dhcpcd.conf': No such file or directory
Nov 11 09:56:03 rigter dhcpcd[8820]: sending signal HUP to pid 1497
Nov 11 09:56:03 rigter systemd[1]: Reloaded DHCP Client.
Nov 11 09:56:03 rigter dhcpcd[8820]: read_config: fopen `/etc/dhcpcd.conf': No such file or directory
Nov 11 09:56:03 rigter dhcpcd[8820]: sending signal HUP to pid 1497
Nov 11 09:56:03 rigter dhcpcd[1497]: received SIGHUP, rebinding
Nov 11 09:56:03 rigter systemd[1]: post-resume.service: Succeeded.
Nov 11 09:56:03 rigter systemd[1]: Started Post-Resume Actions.
Nov 11 09:56:03 rigter systemd[1]: Reached target Post-Resume Actions.
Nov 11 09:56:03 rigter systemd[1]: Stopped target Post-Resume Actions.
Nov 11 09:56:03 rigter dhcpcd[1497]: wlp59s0: waiting for carrier
Nov 11 09:56:03 rigter dhcpcd[1497]: docker0: waiting for carrier
Nov 11 09:56:03 rigter wpa_supplicant[1295]: nl80211: deinit ifname=wlp59s0 disabled_11b_rates=0
Nov 11 09:56:06 rigter wpa_supplicant[1295]: wlp59s0: SME: Trying to authenticate with 00:24:a8:b9:ca:c0 (SSID='WiFi in de trein' freq=2412 MHz)
Nov 11 09:56:06 rigter kernel: wlp59s0: authenticate with 00:24:a8:b9:ca:c0
Nov 11 09:56:06 rigter kernel: wlp59s0: send auth to 00:24:a8:b9:ca:c0 (try 1/3)
Nov 11 09:56:06 rigter wpa_supplicant[1295]: wlp59s0: Trying to associate with 00:24:a8:b9:ca:c0 (SSID='WiFi in de trein' freq=2412 MHz)
Nov 11 09:56:06 rigter kernel: wlp59s0: authenticated
Nov 11 09:56:06 rigter kernel: wlp59s0: associate with 00:24:a8:b9:ca:c0 (try 1/3)
Nov 11 09:56:06 rigter kernel: wlp59s0: RX AssocResp from 00:24:a8:b9:ca:c0 (capab=0x821 status=0 aid=4)
Nov 11 09:56:06 rigter wpa_supplicant[1295]: wlp59s0: Associated with 00:24:a8:b9:ca:c0
Nov 11 09:56:06 rigter kernel: wlp59s0: associated
Nov 11 09:56:06 rigter kernel: IPv6: ADDRCONF(NETDEV_CHANGE): wlp59s0: link becomes ready
Nov 11 09:56:06 rigter wpa_supplicant[1295]: wlp59s0: CTRL-EVENT-CONNECTED - Connection to 00:24:a8:b9:ca:c0 completed [id=0 id_str=]
Nov 11 09:56:06 rigter dhcpcd[1497]: wlp59s0: carrier acquired
Nov 11 09:56:06 rigter wpa_supplicant[1295]: wlp59s0: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
Nov 11 09:56:06 rigter dhcpcd[1497]: wlp59s0: IAID 96:cd:2f:d5
Nov 11 09:56:06 rigter dhcpcd[1497]: wlp59s0: adding address fe80::de71:96ff:fecd:2fd5
Nov 11 09:56:07 rigter wpa_supplicant[1295]: wlp59s0: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=-74 noise=9999 txrate=18000
Nov 11 09:56:07 rigter dhcpcd[1497]: wlp59s0: soliciting an IPv6 router
Nov 11 09:56:07 rigter dhcpcd[1497]: wlp59s0: rebinding lease of 10.87.0.223
Nov 11 09:56:07 rigter dhcpcd[1497]: wlp59s0: probing address 10.87.0.223/22
Nov 11 09:56:09 rigter dbus-daemon[1122]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-disp>
Nov 11 09:56:09 rigter systemd[1]: Starting Network Manager Script Dispatcher Service...
Nov 11 09:56:09 rigter dbus-daemon[1122]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
Nov 11 09:56:09 rigter systemd[1]: Started Network Manager Script Dispatcher Service.
Nov 11 09:56:09 rigter nscd[8740]: 8740 monitored file `/etc/resolv.conf` was written to
Nov 11 09:56:09 rigter systemd[1]: Stopping Name Service Cache Daemon...
Nov 11 09:56:09 rigter systemd[1]: nscd.service: Succeeded.
Nov 11 09:56:09 rigter systemd[1]: Stopped Name Service Cache Daemon.
Nov 11 09:56:09 rigter systemd[1]: nscd.service: Consumed 15ms CPU time, received 0B IP traffic, sent 8.0K IP traffic.
Nov 11 09:56:09 rigter systemd[1]: Starting Name Service Cache Daemon...

I’ve seen similar issues recently with my XPS 15 on 19.09, did you upgrade your kernel?

I don’t have a XPS but I have a Latitude 5401, you’ve updated the firmware as well? According to the Arch Wiki the suspend also doesn’t go into the correct sleep state on newer Dells, so I’ve had to do some changes to the machine in my configuration.nix file, though this AFAIK means it hibernates instead of suspends. I haven’t had any issues with it yet on 19.09:

boot.kernelParams = [
  "mem_sleep_default=deep"
];
services.fwupd.enable = true;

Yes, I’m on 5.3.8 #1-NixOS

Not yet, thanks for the pointer! Added those, let’s see how this goes.

One other thing I noticed, which might be related or not, is that ‘sudo halt’ shuts down the system but does not power it off. That’s not as much of a problem though.

Also, to actually update the firmware you have to run fwupdmgr update (I always run fwupdmgr get-updates first but not sure if it is actually required).

1 Like

It seems like this did the trick! This might be wishful thinking, but non-suspended battery life seems much improved as well!

1 Like

Haven’t seen any problems since, thanks @sondr3!