when my nixos laptop goes to sleep it freezes when i wake it up

it is not because of the window manager (i tried without anything running, just the tty)

somehow rolling back didn't fix it

there is just a blinking white cursor (underscore) and nothing will start up again

anyone also has this issue

pls send help

when my laptop isn't fully working it stresses me way more than it should

Reply to this note

Please Login to reply.

Discussion

I am assuming if you hard reset it by holding the power button it boots with no issue.

I am also assuming that whenyoru put your device to sleep, you close the lid.

In this scenario it would be your lid switch handle that usually is configured via logind to automatically sleep when closed. However it may be set to hibernate instead

OR

Your device goes to sleep without closing the lid. Usually it should just wake up. However something messed up with how it "calls" the sleep sequence in someplacelike systemd might be helpful, To see if your device is hibernating (and failing) instead run "journalctl -eu systemd-hibernate" to see logs including those from prior boots.

I would move on from here looking into exactly how the sleep functionality worked and see how its fucked