System doesn't suspend automatically

i’m running nixos unstable and using gnome on a framework 13 w/ ryzen 5 340.

Sometimes after closing my laptop’s lid it doesn’t enter suspense, other times it works fine. Sometimes after opening the lid I can see that the power LED is on, but the screen doesn’t come on and external displays don’t work.

I’ve been having these issues for months on and off, so any advice would be greatly appreciated.
Thanks!

1 Like

I’ve just started to see some of the same issues on my Framework 13 with an AMD mainboard. I’m trying to track down the problem now, but it seems to me that it might be an issue with an expansion card. I see a bunch of lines of this in my journalctl

Mar 06 13:07:06 mirkwood kernel: xhci_hcd 0000:c1:00.3: Refused to change power state from D0 to D3hot

Running lspci -s 0000:c1:00.3 shows that it’s an AMD USB controller: c1:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Device 15b9

More than likely this seems to point to it being an issue with an expansion card. I only started having these issues after a recent update so maybe something changed in the last handful of months where one of the cards is no longer behaving and is causing the system to constantly wake back up. I’ll do some more testing and update this if I find anything new.

Exactly the same happens to me on a TongFang GX4 14” with AMD HX370.

I’ve tried playing with some of the kernel params and I haven’t seen it much more. But still not sure of the root cause.

If I see it again I’ll report back