Black screen after waking up from suspension or hibernation

Hi,

I’ve been using NixOS unstable for some time, but recently I found that my laptop can’t wake up from suspension or hibernation any more. It could wake up occasionally but most of time it just showed a black screen. The nixos-unstable before August worked fine so it should be an issue introduced only recently.

When the computer freezes after wake-up, the keyboard is not working (including Caps Lock). The only thing I can do is to press the power button and then I’m able to see the shutdown on the screen. I tried to locate the error but there’s no relevant logs, as shown below:

# suspend
Sep 24 21:02:48 pc systemd[1]: systemd-hostnamed.service: Deactivated successfully.
Sep 24 21:03:00 pc kernel: NOHZ tick-stop error: local softirq work is pending, handler #08!!!
# after pressing the power button
Sep 24 21:05:16 pc systemd-logind[1239]: Power key pressed short.
Sep 24 21:05:16 pc systemd-logind[1239]: Powering off...
Sep 24 21:05:16 pc systemd-logind[1239]: System is powering down.

I didn’t find any relevant information regarding the error on the second line, and there are no other errors before I press the power button. So I’m confused how to find the cause for the black screen.

I would appreciate any help on this issue.

Thanks

Seems that after updating nixpkgs in October, this issue is gone. Not sure what causes the freezing. Closing this issue now.