NixOS freeze on systemd suspend

Hi!

Im running Hyprland on NixOS on my laptop with systemd-boot and greetd to start the session automatically. I use swaylock-effects. (i tried sddm to solve this problem but it didn’t fix it so i removed it)

The problem in question is that my laptop freezes when i run systemctl suspend. The laptop sleeps like usual (aka the same config on Arch), but when i wake it up it is totally unresponsive. I can see my lock screen but I cannot move the mouse or enter my password. The screen becomes black if I try to switch TTYs.

My dotfiles are on github if it can help.

1 Like

Does journalctl --boot -1 give any logs if you reboot after such a freeze?

There’s not much…
I also found out that the time isnt moving on the lockscreen as well.

jan 19 16:38:18 Hermes systemd-logind[919]: The system will suspend now!
jan 19 16:38:18 Hermes wpa_supplicant[989]: p2p-dev-wlp0s20: CTRL-EVENT-DSCP-POLICY clear_all
jan 19 16:38:18 Hermes wpa_supplicant[989]: p2p-dev-wlp0s20: CTRL-EVENT-DSCP-POLICY clear_all
jan 19 16:38:18 Hermes wpa_supplicant[989]: nl80211: deinit ifname=p2p-dev-wlp0s20 disabled_11b_rates=0
jan 19 16:38:18 Hermes wpa_supplicant[989]: wlp0s20f3: CTRL-EVENT-DSCP-POLICY clear_all
jan 19 16:38:18 Hermes wpa_supplicant[989]: wlp0s20f3: CTRL-EVENT-DSCP-POLICY clear_all
jan 19 16:38:18 Hermes wpa_supplicant[989]: nl80211: deinit ifname=wlp0s20f3 disabled_11b_rates=0
jan 19 16:38:18 Hermes systemd[1]: Starting Pre-Sleep Actions...
jan 19 16:38:18 Hermes systemd[1]: pre-sleep.service: Deactivated successfully.
jan 19 16:38:18 Hermes systemd[1]: Finished Pre-Sleep Actions.
jan 19 16:38:18 Hermes systemd[1]: Reached target Sleep.
jan 19 16:38:18 Hermes systemd[1]: Starting System Suspend...
jan 19 16:38:18 Hermes systemd-sleep[2900]: Entering sleep state 'suspend'...
jan 19 16:38:18 Hermes kernel: PM: suspend entry (s2idle)
lines 1689-1733/1733 (END)

Hi @Guibi
I’m facing same issue. Were you able to fix it?